diff --git a/.cloudbuild/library_generation/library_generation.Dockerfile b/.cloudbuild/library_generation/library_generation.Dockerfile index bc88f756f6..50a21ab53d 100644 --- a/.cloudbuild/library_generation/library_generation.Dockerfile +++ b/.cloudbuild/library_generation/library_generation.Dockerfile @@ -98,14 +98,6 @@ RUN source /src/library_generation/utils/utilities.sh \ # similar to protoc, we indicate grpc is available in the container via env vars ENV DOCKER_GRPC_LOCATION="/grpc/protoc-gen-grpc-java.exe" -# Here we transfer gapic-generator-java from the previous stage. -# Note that the destination is a well-known location that will be assumed at runtime -# We hard-code the location string to avoid making it configurable (via ARG) as -# well as to avoid it making it overridable at runtime (via ENV). -COPY --from=ggj-build "/sdk-platform-java/gapic-generator-java.jar" "${HOME}/.library_generation/gapic-generator-java.jar" -RUN chmod 755 "${HOME}/.library_generation/gapic-generator-java.jar" -ENV GAPIC_GENERATOR_LOCATION="${HOME}/.library_generation/gapic-generator-java.jar" - RUN python -m pip install --upgrade pip # install main scripts as a python package @@ -125,6 +117,14 @@ RUN owl-bot copy-code --version RUN chmod o+rx $(which owl-bot) RUN apk del -r npm && apk cache clean +# Here we transfer gapic-generator-java from the previous stage. +# Note that the destination is a well-known location that will be assumed at runtime +# We hard-code the location string to avoid making it configurable (via ARG) as +# well as to avoid it making it overridable at runtime (via ENV). +COPY --from=ggj-build "/sdk-platform-java/gapic-generator-java.jar" "${HOME}/.library_generation/gapic-generator-java.jar" +RUN chmod 755 "${HOME}/.library_generation/gapic-generator-java.jar" +ENV GAPIC_GENERATOR_LOCATION="${HOME}/.library_generation/gapic-generator-java.jar" + # download the Java formatter ADD https://maven-central.storage-download.googleapis.com/maven2/com/google/googlejavaformat/google-java-format/${JAVA_FORMAT_VERSION}/google-java-format-${JAVA_FORMAT_VERSION}-all-deps.jar \ "${HOME}"/.library_generation/google-java-format.jar diff --git a/.github/scripts/action.yaml b/.github/scripts/action.yaml index 5e8b55660f..f67f2a5229 100644 --- a/.github/scripts/action.yaml +++ b/.github/scripts/action.yaml @@ -30,6 +30,9 @@ inputs: image_tag: description: the tag of hermetic build image required: false + showcase_mode: + description: true if we need to download the showcase api definitions + required: false token: description: Personal Access Token required: true @@ -72,9 +75,11 @@ runs: bash hermetic_library_generation.sh \ --target_branch "${BASE_REF}" \ --current_branch "${HEAD_REF}" \ + --showcase_mode "${SHOWCASE_MODE}" \ --image_tag "${IMAGE_TAG}" env: BASE_REF: ${{ inputs.base_ref }} HEAD_REF: ${{ inputs.head_ref }} IMAGE_TAG: ${{ inputs.image_tag }} + SHOWCASE_MODE: ${{ inputs.showcase_mode }} GH_TOKEN: ${{ inputs.token }} diff --git a/.github/scripts/hermetic_library_generation.sh b/.github/scripts/hermetic_library_generation.sh index 3c2a7d0e47..47ca2c71ae 100755 --- a/.github/scripts/hermetic_library_generation.sh +++ b/.github/scripts/hermetic_library_generation.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -e +set -ex # This script should be run at the root of the repository. # This script is used to, when a pull request changes the generation # configuration (generation_config.yaml by default) or Dockerfile: @@ -25,6 +25,8 @@ set -e # 3. [optional] image_tag, the tag of gcr.io/cloud-devrel-public-resources/java-library-generation. # 4. [optional] generation_config, the path to the generation configuration, # the default value is generation_config.yaml in the repository root. +# 5. [optional] showcase_mode, true if we wish to download the showcase api +# definitions, which are necessary for generating the showcase library. while [[ $# -gt 0 ]]; do key="$1" case "${key}" in @@ -44,6 +46,10 @@ case "${key}" in generation_config="$2" shift ;; + --showcase_mode) + showcase_mode="$2" + shift + ;; *) echo "Invalid option: [$1]" exit 1 @@ -62,6 +68,10 @@ if [ -z "${current_branch}" ]; then exit 1 fi +if [ -z "${download_showcase}" ]; then + download_showcase="false" +fi + if [ -z "${generation_config}" ]; then generation_config=generation_config.yaml echo "Use default generation config: ${generation_config}" @@ -89,6 +99,12 @@ pushd "${api_def_dir}" git checkout "${googleapis_commitish}" popd +# we also setup showcase +if [[ "${showcase_mode}" == "true" ]]; then + source java-showcase/scripts/showcase_utilities.sh + append_showcase_to_api_defs "${api_def_dir}" +fi + # get changed library list. changed_libraries=$(python hermetic_build/common/cli/get_changed_libraries.py create \ --baseline-generation-config-path="${baseline_generation_config}" \ @@ -98,7 +114,6 @@ echo "Changed libraries are: ${changed_libraries:-"No changed library"}." # run hermetic code generation docker image. docker run \ --rm \ - --quiet \ -u "$(id -u):$(id -g)" \ -v "$(pwd):${workspace_name}" \ -v "${api_def_dir}:${workspace_name}/googleapis" \ diff --git a/.github/snippet-bot.yml b/.github/snippet-bot.yml index 84a9e461c2..90a0dd31b7 100644 --- a/.github/snippet-bot.yml +++ b/.github/snippet-bot.yml @@ -3,6 +3,6 @@ alwaysCreateStatusCheck: false ignoreFiles: - src/test/** - test/** - - showcase/** + - java-showcase/** - library_generation/owlbot/templates/java_library/samples/install-without-bom/pom.xml - library_generation/owlbot/synthtool/gcp/snippets.py diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1b4ae187b2..498bba38c1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -226,18 +226,18 @@ jobs: run: | mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip - name: Java Linter - working-directory: showcase + working-directory: java-showcase run: | mvn -B -ntp fmt:check - name: Showcase golden tests - working-directory: showcase + working-directory: java-showcase run: | mvn test \ -P enable-golden-tests \ --batch-mode \ --no-transfer-progress - name: Parse showcase version - working-directory: showcase/gapic-showcase + working-directory: java-showcase/gapic-showcase run: echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV" - name: Install showcase server run: | @@ -249,7 +249,7 @@ jobs: ./gapic-showcase run & cd - - name: Showcase integration tests - working-directory: showcase + working-directory: java-showcase run: | mvn verify \ -P enable-integration-tests \ @@ -282,7 +282,7 @@ jobs: run: mvn install -B -ntp -T 1C -DskipTests # Showcase golden test ensures that src changes are already reflected in the PR. - name: Clirr check - working-directory: showcase + working-directory: java-showcase run: | mvn versions:set -B -ntp -DnewVersion=local mvn clirr:check -B -ntp -Dclirr.skip=false -DcomparisonVersion=$SHOWCASE_CLIENT_VERSION diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 4eac9faded..c7b21d6dca 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -62,3 +62,4 @@ jobs: head_ref: ${{ github.head_ref }} image_tag: ${{ env.GENERATOR_VERSION }} token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} + showcase_mode: true diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml index 585893942e..e29b1baac6 100644 --- a/.github/workflows/sonar.yaml +++ b/.github/workflows/sonar.yaml @@ -33,10 +33,10 @@ jobs: - name: Install modules to local maven run: | mvn install -T 1C -DskipTests -ntp -B - cd showcase + cd java-showcase mvn install -T 1C -DskipTests -ntp -B - name: Parse showcase version - working-directory: showcase/gapic-showcase + working-directory: java-showcase/gapic-showcase run: echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV" - name: Install showcase server run: | diff --git a/.kokoro/presubmit/common_test.sh b/.kokoro/presubmit/common_test.sh index 6e7b8e130d..fcc9638eb7 100755 --- a/.kokoro/presubmit/common_test.sh +++ b/.kokoro/presubmit/common_test.sh @@ -22,7 +22,7 @@ cd target function test_find_all_poms_with_versioned_dependency { mkdir -p test_find_all_poms_with_dependency pushd test_find_all_poms_with_dependency - cp ../../showcase/gapic-showcase/pom.xml pom.xml + cp ../../java-showcase/gapic-showcase/pom.xml pom.xml find_all_poms_with_versioned_dependency 'truth' if [ "${#POMS[@]}" != 1 ]; then @@ -45,7 +45,7 @@ function test_find_all_poms_with_versioned_dependency { function test_update_pom_dependency { mkdir -p test_update_pom_dependency pushd test_update_pom_dependency - cp ../../showcase/gapic-showcase/pom.xml pom.xml + cp ../../java-showcase/gapic-showcase/pom.xml pom.xml update_pom_dependency . truth "99.88.77" @@ -66,7 +66,7 @@ EOF function test_parse_pom_version { mkdir -p test_parse_pom_version pushd test_parse_pom_version - cp ../../showcase/gapic-showcase/pom.xml pom.xml + cp ../../java-showcase/gapic-showcase/pom.xml pom.xml VERSION=$(parse_pom_version .) if [ "$VERSION" != "0.0.1-SNAPSHOT" ]; then diff --git a/.kokoro/presubmit/showcase-native.sh b/.kokoro/presubmit/showcase-native.sh index 4cd9fd6090..ad85d8dc6a 100644 --- a/.kokoro/presubmit/showcase-native.sh +++ b/.kokoro/presubmit/showcase-native.sh @@ -38,7 +38,7 @@ mvn install --projects '!gapic-generator-java' \ SHARED_DEPS_VERSION=$(parse_pom_version java-shared-dependencies) # Run showcase integration tests in GraalVM -pushd showcase/gapic-showcase +pushd java-showcase/gapic-showcase SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout) popd # Start showcase server @@ -52,7 +52,7 @@ tar -xf showcase-* popd # Run showcase tests with `native` profile -pushd showcase +pushd java-showcase mvn test -Pnative,-showcase \ -Denforcer.skip=true \ -Dcheckstyle.skip \ diff --git a/generation_config.yaml b/generation_config.yaml index 7c83d41f4d..c4f8bcfaee 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -3,6 +3,16 @@ googleapis_commitish: 27aa9d542f54ae1ea1277580550dd04aeb5b09f9 # java-{library.library_name} or java-{library.api-shortname} when # library.library_name is not defined. libraries: +- api_shortname: showcase + folder_name: showcase # prevents java-showcase + excluded_poms: gapic-showcase-bom + name_pretty: Showcase + api_description: Showcase module + product_documentation: https://cloud.google.com/dummy + distribution_name: com.google.cloud:gapic-showcase + library_type: OTHER + GAPICs: + - proto_path: schema/google/showcase/v1beta1 - api_shortname: common-protos name_pretty: Common Protos product_documentation: https://github.com/googleapis/api-common-protos diff --git a/hermetic_build/common/tests/resources/misc/BUILD_additional_protos_in_gapic.bazel b/hermetic_build/common/tests/resources/misc/BUILD_additional_protos_in_gapic.bazel new file mode 100644 index 0000000000..cb124dbbc7 --- /dev/null +++ b/hermetic_build/common/tests/resources/misc/BUILD_additional_protos_in_gapic.bazel @@ -0,0 +1,6 @@ +java_gapic_library( + deps = [ + "//google/cloud/location:location_java_proto", + "//google/iam/v1:iam_java_proto" + ], +) diff --git a/hermetic_build/common/tests/resources/misc/BUILD_target_with_nested_parenthesis.bazel b/hermetic_build/common/tests/resources/misc/BUILD_target_with_nested_parenthesis.bazel new file mode 100644 index 0000000000..49d7dba943 --- /dev/null +++ b/hermetic_build/common/tests/resources/misc/BUILD_target_with_nested_parenthesis.bazel @@ -0,0 +1,13 @@ +proto_library_with_info( + # this comment should not indicate an end of a pattern match ) + deps = [ + "//google/cloud/location:location_proto", + ] +) + +java_gapic_library( + # this comment should not indicate an end of a pattern match ) + deps = [ + "//google/iam/v1:iam_java_proto" + ], +) diff --git a/java-showcase/.OwlBot-hermetic.yaml b/java-showcase/.OwlBot-hermetic.yaml new file mode 100644 index 0000000000..65733a3c47 --- /dev/null +++ b/java-showcase/.OwlBot-hermetic.yaml @@ -0,0 +1,35 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.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. + + +deep-remove-regex: +- "/showcase/grpc-gapic-showcase-v1beta1/src" +- "/showcase/proto-gapic-showcase-v1beta1/src" +- "/showcase/gapic-showcase/src" +- "/showcase/samples/snippets/generated" + +deep-preserve-regex: +- "/showcase/gapic-showcase/src/test" + +deep-copy-regex: +- source: "/schema/google/showcase/(v.*)/.*-java/proto-.*/src" + dest: "/owl-bot-staging/showcase/$1/proto-gapic-showcase-$1/src" +- source: "/schema/google/showcase/(v.*)/.*-java/grpc-.*/src" + dest: "/owl-bot-staging/showcase/$1/grpc-gapic-showcase-$1/src" +- source: "/schema/google/showcase/(v.*)/.*-java/gapic-.*/src" + dest: "/owl-bot-staging/showcase/$1/gapic-showcase/src" +- source: "/schema/google/showcase/(v.*)/.*-java/samples/snippets/generated" + dest: "/owl-bot-staging/showcase/$1/samples/snippets/generated" + +api-name: showcase \ No newline at end of file diff --git a/java-showcase/.repo-metadata.json b/java-showcase/.repo-metadata.json new file mode 100644 index 0000000000..17f17c5d74 --- /dev/null +++ b/java-showcase/.repo-metadata.json @@ -0,0 +1,16 @@ +{ + "api_shortname": "showcase", + "name_pretty": "Showcase", + "product_documentation": "https://cloud.google.com/dummy", + "api_description": "Showcase module", + "client_documentation": "https://cloud.google.com/java/docs/reference/gapic-showcase/latest/overview", + "release_level": "preview", + "transport": "both", + "language": "java", + "repo": "googleapis/sdk-platform-java", + "repo_short": "java-showcase", + "distribution_name": "com.google.cloud:gapic-showcase", + "library_type": "OTHER", + "requires_billing": true, + "excluded_poms": "gapic-showcase-bom" +} \ No newline at end of file diff --git a/showcase/README.md b/java-showcase/README.md similarity index 84% rename from showcase/README.md rename to java-showcase/README.md index 536568e76b..1f4c968ad5 100644 --- a/showcase/README.md +++ b/java-showcase/README.md @@ -64,28 +64,32 @@ gapic-showcase run ## Running the Integration Tests Open a new terminal window in the root project directory. +This step does not require Docker. ```shell cd showcase -mvn verify -P enable-integration-tests -P enable-golden-tests +mvn verify -P enable-integration-tests ``` -Note: +## Running the Golden tests + +**NOTE** This requires Docker to be installed in your machine. +Open a new terminal window in the root project directory. + +```shell +cd java-showcase +mvn verify -P enable-golden-tests +``` -* `-P enable-golden-tests` is optional. These tests do not require a local server. ## Update the Golden Showcase Files +**NOTE** This requires Docker to be installed in your machine. Open a new terminal window in the root project directory. -Note that the underlying scripts will modify your `$HOME` folder by creating a -`.library_generation` folder. -This is the well-known location of the artifacts the generation scripts use. -For more details see the -[development guide](https://github.com/googleapis/sdk-platform-java/blob/main/library_generation/DEVELOPMENT.md#the-hermetic-builds-well-known-folder) ```shell # In repository's root directory mvn clean install -DskipTests -cd showcase +cd java-showcase mvn compile -P update ``` diff --git a/showcase/gapic-showcase-extended/proto/BUILD.bazel b/java-showcase/gapic-showcase-extended/proto/BUILD.bazel similarity index 100% rename from showcase/gapic-showcase-extended/proto/BUILD.bazel rename to java-showcase/gapic-showcase-extended/proto/BUILD.bazel diff --git a/showcase/gapic-showcase-extended/proto/wicked.proto b/java-showcase/gapic-showcase-extended/proto/wicked.proto similarity index 100% rename from showcase/gapic-showcase-extended/proto/wicked.proto rename to java-showcase/gapic-showcase-extended/proto/wicked.proto diff --git a/showcase/gapic-showcase/pom.xml b/java-showcase/gapic-showcase/pom.xml similarity index 96% rename from showcase/gapic-showcase/pom.xml rename to java-showcase/gapic-showcase/pom.xml index 2549eb199f..e182c93f14 100644 --- a/showcase/gapic-showcase/pom.xml +++ b/java-showcase/gapic-showcase/pom.xml @@ -1,7 +1,5 @@ - + 4.0.0 com.google.cloud gapic-showcase @@ -104,6 +102,7 @@ com.google.api.grpc grpc-google-common-protos + test com.google.api.grpc diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider1.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider1.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider1.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetEndpoint.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetEndpoint.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetEndpoint.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetEndpoint.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/AsyncGetEnum.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/AsyncGetEnum.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/AsyncGetEnum.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/AsyncGetEnum.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/SyncGetEnum.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/SyncGetEnum.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/SyncGetEnum.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/SyncGetEnum.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getiampolicy/AsyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getiampolicy/AsyncGetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getiampolicy/AsyncGetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getiampolicy/SyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getiampolicy/SyncGetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getiampolicy/SyncGetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getlocation/AsyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getlocation/AsyncGetLocation.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getlocation/AsyncGetLocation.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getlocation/AsyncGetLocation.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getlocation/SyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getlocation/SyncGetLocation.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getlocation/SyncGetLocation.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getlocation/SyncGetLocation.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocations.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocations.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocations.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocationsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocationsPaged.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocationsPaged.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/SyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/SyncListLocations.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/SyncListLocations.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/SyncListLocations.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/AsyncRepeatDataBody.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/AsyncRepeatDataBody.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/AsyncRepeatDataBody.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/AsyncRepeatDataBody.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/SyncRepeatDataBody.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/SyncRepeatDataBody.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/SyncRepeatDataBody.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/SyncRepeatDataBody.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/AsyncRepeatDataBodyInfo.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/AsyncRepeatDataBodyInfo.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/AsyncRepeatDataBodyInfo.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/AsyncRepeatDataBodyInfo.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/SyncRepeatDataBodyInfo.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/SyncRepeatDataBodyInfo.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/SyncRepeatDataBodyInfo.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/SyncRepeatDataBodyInfo.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/AsyncRepeatDataBodyPatch.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/AsyncRepeatDataBodyPatch.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/AsyncRepeatDataBodyPatch.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/AsyncRepeatDataBodyPatch.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/SyncRepeatDataBodyPatch.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/SyncRepeatDataBodyPatch.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/SyncRepeatDataBodyPatch.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/SyncRepeatDataBodyPatch.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/AsyncRepeatDataBodyPut.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/AsyncRepeatDataBodyPut.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/AsyncRepeatDataBodyPut.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/AsyncRepeatDataBodyPut.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/SyncRepeatDataBodyPut.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/SyncRepeatDataBodyPut.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/SyncRepeatDataBodyPut.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/SyncRepeatDataBodyPut.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/AsyncRepeatDataPathResource.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/AsyncRepeatDataPathResource.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/AsyncRepeatDataPathResource.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/AsyncRepeatDataPathResource.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/SyncRepeatDataPathResource.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/SyncRepeatDataPathResource.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/SyncRepeatDataPathResource.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/SyncRepeatDataPathResource.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/AsyncRepeatDataPathTrailingResource.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/AsyncRepeatDataPathTrailingResource.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/AsyncRepeatDataPathTrailingResource.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/AsyncRepeatDataPathTrailingResource.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/SyncRepeatDataPathTrailingResource.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/SyncRepeatDataPathTrailingResource.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/SyncRepeatDataPathTrailingResource.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/SyncRepeatDataPathTrailingResource.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/AsyncRepeatDataQuery.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/AsyncRepeatDataQuery.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/AsyncRepeatDataQuery.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/AsyncRepeatDataQuery.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/SyncRepeatDataQuery.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/SyncRepeatDataQuery.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/SyncRepeatDataQuery.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/SyncRepeatDataQuery.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/AsyncRepeatDataSimplePath.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/AsyncRepeatDataSimplePath.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/AsyncRepeatDataSimplePath.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/AsyncRepeatDataSimplePath.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/SyncRepeatDataSimplePath.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/SyncRepeatDataSimplePath.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/SyncRepeatDataSimplePath.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/SyncRepeatDataSimplePath.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/setiampolicy/AsyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/setiampolicy/AsyncSetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/setiampolicy/AsyncSetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/setiampolicy/SyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/setiampolicy/SyncSetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/setiampolicy/SyncSetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/testiampermissions/AsyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/testiampermissions/AsyncTestIamPermissions.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/testiampermissions/AsyncTestIamPermissions.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/testiampermissions/SyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/testiampermissions/SyncTestIamPermissions.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/testiampermissions/SyncTestIamPermissions.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/verifyenum/AsyncVerifyEnum.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/verifyenum/AsyncVerifyEnum.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/verifyenum/AsyncVerifyEnum.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/verifyenum/AsyncVerifyEnum.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/verifyenum/SyncVerifyEnum.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/verifyenum/SyncVerifyEnum.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/verifyenum/SyncVerifyEnum.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/verifyenum/SyncVerifyEnum.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliancesettings/repeatdatabody/SyncRepeatDataBody.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliancesettings/repeatdatabody/SyncRepeatDataBody.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliancesettings/repeatdatabody/SyncRepeatDataBody.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliancesettings/repeatdatabody/SyncRepeatDataBody.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/block/AsyncBlock.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/block/AsyncBlock.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/block/AsyncBlock.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/block/AsyncBlock.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/block/SyncBlock.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/block/SyncBlock.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/block/SyncBlock.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/block/SyncBlock.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/chat/AsyncChat.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/chat/AsyncChat.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/chat/AsyncChat.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/chat/AsyncChat.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/collect/AsyncCollect.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/collect/AsyncCollect.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/collect/AsyncCollect.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/collect/AsyncCollect.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider1.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider1.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider1.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetEndpoint.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetEndpoint.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetEndpoint.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetEndpoint.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/echo/AsyncEcho.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/echo/AsyncEcho.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/echo/AsyncEcho.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/echo/AsyncEcho.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/echo/SyncEcho.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/echo/SyncEcho.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/echo/SyncEcho.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/echo/SyncEcho.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getiampolicy/AsyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getiampolicy/AsyncGetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getiampolicy/AsyncGetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getiampolicy/SyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getiampolicy/SyncGetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getiampolicy/SyncGetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getlocation/AsyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getlocation/AsyncGetLocation.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getlocation/AsyncGetLocation.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getlocation/AsyncGetLocation.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getlocation/SyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getlocation/SyncGetLocation.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getlocation/SyncGetLocation.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getlocation/SyncGetLocation.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocations.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocations.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocations.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocationsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocationsPaged.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocationsPaged.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/SyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/SyncListLocations.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/SyncListLocations.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/SyncListLocations.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpand.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpand.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpand.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpand.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpandPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpandPaged.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpandPaged.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpandPaged.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/SyncPagedExpand.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/SyncPagedExpand.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/SyncPagedExpand.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/SyncPagedExpand.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/AsyncPagedExpandLegacy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/AsyncPagedExpandLegacy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/AsyncPagedExpandLegacy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/AsyncPagedExpandLegacy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/SyncPagedExpandLegacy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/SyncPagedExpandLegacy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/SyncPagedExpandLegacy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/SyncPagedExpandLegacy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMapped.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMapped.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMapped.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMapped.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMappedPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMappedPaged.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMappedPaged.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMappedPaged.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/SyncPagedExpandLegacyMapped.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/SyncPagedExpandLegacyMapped.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/SyncPagedExpandLegacyMapped.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/SyncPagedExpandLegacyMapped.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/setiampolicy/AsyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/setiampolicy/AsyncSetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/setiampolicy/AsyncSetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/setiampolicy/SyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/setiampolicy/SyncSetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/setiampolicy/SyncSetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/testiampermissions/AsyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/testiampermissions/AsyncTestIamPermissions.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/testiampermissions/AsyncTestIamPermissions.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/testiampermissions/SyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/testiampermissions/SyncTestIamPermissions.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/testiampermissions/SyncTestIamPermissions.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWait.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWait.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWait.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWait.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWaitLRO.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWaitLRO.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWaitLRO.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWaitLRO.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/SyncWait.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/SyncWait.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/SyncWait.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/SyncWait.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echosettings/echo/SyncEcho.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echosettings/echo/SyncEcho.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echosettings/echo/SyncEcho.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echosettings/echo/SyncEcho.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider1.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider1.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider1.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetEndpoint.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetEndpoint.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetEndpoint.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetEndpoint.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/AsyncCreateUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/AsyncCreateUser.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/AsyncCreateUser.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/AsyncCreateUser.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUser.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUser.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUser.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringStringIntStringBooleanDouble.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringStringIntStringBooleanDouble.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringStringIntStringBooleanDouble.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringStringIntStringBooleanDouble.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/AsyncDeleteUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/AsyncDeleteUser.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/AsyncDeleteUser.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/AsyncDeleteUser.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUser.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUser.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUser.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserUsername.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserUsername.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserUsername.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserUsername.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getiampolicy/AsyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getiampolicy/AsyncGetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getiampolicy/AsyncGetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getiampolicy/SyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getiampolicy/SyncGetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getiampolicy/SyncGetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getlocation/AsyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getlocation/AsyncGetLocation.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getlocation/AsyncGetLocation.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getlocation/AsyncGetLocation.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getlocation/SyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getlocation/SyncGetLocation.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getlocation/SyncGetLocation.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getlocation/SyncGetLocation.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/AsyncGetUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/AsyncGetUser.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/AsyncGetUser.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/AsyncGetUser.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUser.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUser.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUser.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserUsername.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserUsername.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserUsername.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserUsername.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocations.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocations.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocations.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocationsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocationsPaged.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocationsPaged.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/SyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/SyncListLocations.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/SyncListLocations.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/SyncListLocations.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsers.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsers.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsers.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsers.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsersPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsersPaged.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsersPaged.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsersPaged.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/SyncListUsers.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/SyncListUsers.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/SyncListUsers.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/SyncListUsers.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/setiampolicy/AsyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/setiampolicy/AsyncSetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/setiampolicy/AsyncSetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/setiampolicy/SyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/setiampolicy/SyncSetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/setiampolicy/SyncSetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/testiampermissions/AsyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/testiampermissions/AsyncTestIamPermissions.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/testiampermissions/AsyncTestIamPermissions.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/testiampermissions/SyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/testiampermissions/SyncTestIamPermissions.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/testiampermissions/SyncTestIamPermissions.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/updateuser/AsyncUpdateUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/updateuser/AsyncUpdateUser.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/updateuser/AsyncUpdateUser.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/updateuser/AsyncUpdateUser.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/updateuser/SyncUpdateUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/updateuser/SyncUpdateUser.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/updateuser/SyncUpdateUser.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/updateuser/SyncUpdateUser.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identitysettings/createuser/SyncCreateUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identitysettings/createuser/SyncCreateUser.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identitysettings/createuser/SyncCreateUser.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identitysettings/createuser/SyncCreateUser.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/connect/AsyncConnect.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/connect/AsyncConnect.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/connect/AsyncConnect.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/connect/AsyncConnect.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider1.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider1.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider1.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetEndpoint.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetEndpoint.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetEndpoint.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetEndpoint.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/AsyncCreateBlurb.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/AsyncCreateBlurb.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/AsyncCreateBlurb.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/AsyncCreateBlurb.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurb.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurb.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurb.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurb.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringBytestring.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringBytestring.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringBytestring.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringBytestring.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameBytestring.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameBytestring.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameBytestring.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameBytestring.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringBytestring.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringBytestring.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringBytestring.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringBytestring.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameBytestring.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameBytestring.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameBytestring.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameBytestring.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringBytestring.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringBytestring.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringBytestring.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringBytestring.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameBytestring.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameBytestring.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameBytestring.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameBytestring.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/AsyncCreateRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/AsyncCreateRoom.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/AsyncCreateRoom.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/AsyncCreateRoom.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoom.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoom.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoom.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoomStringString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoomStringString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoomStringString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoomStringString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/AsyncDeleteBlurb.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/AsyncDeleteBlurb.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/AsyncDeleteBlurb.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/AsyncDeleteBlurb.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurb.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurb.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurb.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurb.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbBlurbname.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbBlurbname.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbBlurbname.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbBlurbname.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/AsyncDeleteRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/AsyncDeleteRoom.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/AsyncDeleteRoom.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/AsyncDeleteRoom.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoom.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoom.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoom.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomRoomname.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomRoomname.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomRoomname.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomRoomname.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/AsyncGetBlurb.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/AsyncGetBlurb.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/AsyncGetBlurb.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/AsyncGetBlurb.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurb.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurb.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurb.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurb.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbBlurbname.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbBlurbname.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbBlurbname.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbBlurbname.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getiampolicy/AsyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getiampolicy/AsyncGetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getiampolicy/AsyncGetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getiampolicy/SyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getiampolicy/SyncGetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getiampolicy/SyncGetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getlocation/AsyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getlocation/AsyncGetLocation.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getlocation/AsyncGetLocation.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getlocation/AsyncGetLocation.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getlocation/SyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getlocation/SyncGetLocation.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getlocation/SyncGetLocation.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getlocation/SyncGetLocation.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/AsyncGetRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/AsyncGetRoom.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/AsyncGetRoom.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/AsyncGetRoom.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoom.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoom.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoom.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomRoomname.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomRoomname.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomRoomname.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomRoomname.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbs.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbs.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbs.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbs.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbsPaged.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbsPaged.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbsPaged.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbs.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbs.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbs.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbs.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsProfilename.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsProfilename.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsProfilename.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsProfilename.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsRoomname.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsRoomname.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsRoomname.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsRoomname.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocations.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocations.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocations.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocationsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocationsPaged.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocationsPaged.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/SyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/SyncListLocations.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/SyncListLocations.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/SyncListLocations.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRooms.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRooms.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRooms.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRooms.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRoomsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRoomsPaged.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRoomsPaged.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRoomsPaged.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/SyncListRooms.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/SyncListRooms.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/SyncListRooms.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/SyncListRooms.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbs.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbs.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbs.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbs.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbsLRO.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbsLRO.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbsLRO.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbsLRO.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbs.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbs.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbs.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbs.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsProfilenameString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsProfilenameString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsProfilenameString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsProfilenameString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsRoomnameString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsRoomnameString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsRoomnameString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsRoomnameString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsStringString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsStringString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsStringString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsStringString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/sendblurbs/AsyncSendBlurbs.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/sendblurbs/AsyncSendBlurbs.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/sendblurbs/AsyncSendBlurbs.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/sendblurbs/AsyncSendBlurbs.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/setiampolicy/AsyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/setiampolicy/AsyncSetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/setiampolicy/AsyncSetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/setiampolicy/SyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/setiampolicy/SyncSetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/setiampolicy/SyncSetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/streamblurbs/AsyncStreamBlurbs.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/streamblurbs/AsyncStreamBlurbs.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/streamblurbs/AsyncStreamBlurbs.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/streamblurbs/AsyncStreamBlurbs.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/testiampermissions/AsyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/testiampermissions/AsyncTestIamPermissions.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/testiampermissions/AsyncTestIamPermissions.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/testiampermissions/SyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/testiampermissions/SyncTestIamPermissions.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/testiampermissions/SyncTestIamPermissions.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateblurb/AsyncUpdateBlurb.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateblurb/AsyncUpdateBlurb.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateblurb/AsyncUpdateBlurb.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateblurb/AsyncUpdateBlurb.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateblurb/SyncUpdateBlurb.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateblurb/SyncUpdateBlurb.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateblurb/SyncUpdateBlurb.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateblurb/SyncUpdateBlurb.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateroom/AsyncUpdateRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateroom/AsyncUpdateRoom.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateroom/AsyncUpdateRoom.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateroom/AsyncUpdateRoom.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateroom/SyncUpdateRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateroom/SyncUpdateRoom.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateroom/SyncUpdateRoom.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateroom/SyncUpdateRoom.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messagingsettings/createroom/SyncCreateRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messagingsettings/createroom/SyncCreateRoom.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messagingsettings/createroom/SyncCreateRoom.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messagingsettings/createroom/SyncCreateRoom.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/AsyncAttemptSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/AsyncAttemptSequence.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/AsyncAttemptSequence.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/AsyncAttemptSequence.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequence.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequence.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequence.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceSequencename.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceSequencename.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceSequencename.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceSequencename.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptstreamingsequence/AsyncAttemptStreamingSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptstreamingsequence/AsyncAttemptStreamingSequence.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptstreamingsequence/AsyncAttemptStreamingSequence.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptstreamingsequence/AsyncAttemptStreamingSequence.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider1.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider1.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetEndpoint.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetEndpoint.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetEndpoint.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/AsyncCreateSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/AsyncCreateSequence.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/AsyncCreateSequence.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/AsyncCreateSequence.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequence.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequence.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequence.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequenceSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequenceSequence.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequenceSequence.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequenceSequence.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/AsyncCreateStreamingSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/AsyncCreateStreamingSequence.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/AsyncCreateStreamingSequence.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/AsyncCreateStreamingSequence.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequence.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequence.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequence.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequenceStreamingsequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequenceStreamingsequence.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequenceStreamingsequence.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequenceStreamingsequence.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getiampolicy/AsyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getiampolicy/AsyncGetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getiampolicy/AsyncGetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getiampolicy/SyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getiampolicy/SyncGetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getiampolicy/SyncGetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getlocation/AsyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getlocation/AsyncGetLocation.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getlocation/AsyncGetLocation.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getlocation/AsyncGetLocation.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getlocation/SyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getlocation/SyncGetLocation.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getlocation/SyncGetLocation.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getlocation/SyncGetLocation.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/AsyncGetSequenceReport.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/AsyncGetSequenceReport.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/AsyncGetSequenceReport.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/AsyncGetSequenceReport.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReport.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReport.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReport.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReport.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportSequencereportname.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportSequencereportname.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportSequencereportname.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportSequencereportname.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/AsyncGetStreamingSequenceReport.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/AsyncGetStreamingSequenceReport.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/AsyncGetStreamingSequenceReport.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/AsyncGetStreamingSequenceReport.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReport.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReport.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReport.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReport.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportStreamingsequencereportname.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportStreamingsequencereportname.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportStreamingsequencereportname.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportStreamingsequencereportname.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportString.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportString.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportString.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocations.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocations.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocations.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocationsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocationsPaged.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocationsPaged.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/SyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/SyncListLocations.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/SyncListLocations.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/SyncListLocations.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/setiampolicy/AsyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/setiampolicy/AsyncSetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/setiampolicy/AsyncSetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/setiampolicy/SyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/setiampolicy/SyncSetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/setiampolicy/SyncSetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/testiampermissions/AsyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/testiampermissions/AsyncTestIamPermissions.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/testiampermissions/AsyncTestIamPermissions.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/testiampermissions/SyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/testiampermissions/SyncTestIamPermissions.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/testiampermissions/SyncTestIamPermissions.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservicesettings/createsequence/SyncCreateSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservicesettings/createsequence/SyncCreateSequence.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservicesettings/createsequence/SyncCreateSequence.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservicesettings/createsequence/SyncCreateSequence.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/compliancestubsettings/repeatdatabody/SyncRepeatDataBody.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/compliancestubsettings/repeatdatabody/SyncRepeatDataBody.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/compliancestubsettings/repeatdatabody/SyncRepeatDataBody.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/compliancestubsettings/repeatdatabody/SyncRepeatDataBody.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/echostubsettings/echo/SyncEcho.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/echostubsettings/echo/SyncEcho.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/echostubsettings/echo/SyncEcho.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/echostubsettings/echo/SyncEcho.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/identitystubsettings/createuser/SyncCreateUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/identitystubsettings/createuser/SyncCreateUser.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/identitystubsettings/createuser/SyncCreateUser.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/identitystubsettings/createuser/SyncCreateUser.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/messagingstubsettings/createroom/SyncCreateRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/messagingstubsettings/createroom/SyncCreateRoom.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/messagingstubsettings/createroom/SyncCreateRoom.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/messagingstubsettings/createroom/SyncCreateRoom.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/sequenceservicestubsettings/createsequence/SyncCreateSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/sequenceservicestubsettings/createsequence/SyncCreateSequence.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/sequenceservicestubsettings/createsequence/SyncCreateSequence.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/sequenceservicestubsettings/createsequence/SyncCreateSequence.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/testingstubsettings/createsession/SyncCreateSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/testingstubsettings/createsession/SyncCreateSession.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/testingstubsettings/createsession/SyncCreateSession.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/testingstubsettings/createsession/SyncCreateSession.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider1.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider1.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider1.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetEndpoint.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetEndpoint.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetEndpoint.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetEndpoint.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/createsession/AsyncCreateSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/createsession/AsyncCreateSession.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/createsession/AsyncCreateSession.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/createsession/AsyncCreateSession.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/createsession/SyncCreateSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/createsession/SyncCreateSession.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/createsession/SyncCreateSession.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/createsession/SyncCreateSession.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletesession/AsyncDeleteSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletesession/AsyncDeleteSession.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletesession/AsyncDeleteSession.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletesession/AsyncDeleteSession.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletesession/SyncDeleteSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletesession/SyncDeleteSession.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletesession/SyncDeleteSession.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletesession/SyncDeleteSession.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletetest/AsyncDeleteTest.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletetest/AsyncDeleteTest.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletetest/AsyncDeleteTest.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletetest/AsyncDeleteTest.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletetest/SyncDeleteTest.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletetest/SyncDeleteTest.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletetest/SyncDeleteTest.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletetest/SyncDeleteTest.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getiampolicy/AsyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getiampolicy/AsyncGetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getiampolicy/AsyncGetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getiampolicy/SyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getiampolicy/SyncGetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getiampolicy/SyncGetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getlocation/AsyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getlocation/AsyncGetLocation.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getlocation/AsyncGetLocation.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getlocation/AsyncGetLocation.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getlocation/SyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getlocation/SyncGetLocation.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getlocation/SyncGetLocation.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getlocation/SyncGetLocation.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getsession/AsyncGetSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getsession/AsyncGetSession.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getsession/AsyncGetSession.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getsession/AsyncGetSession.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getsession/SyncGetSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getsession/SyncGetSession.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getsession/SyncGetSession.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getsession/SyncGetSession.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocations.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocations.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocations.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocationsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocationsPaged.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocationsPaged.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/SyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/SyncListLocations.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/SyncListLocations.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/SyncListLocations.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessions.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessions.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessions.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessionsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessionsPaged.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessionsPaged.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessionsPaged.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/SyncListSessions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/SyncListSessions.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/SyncListSessions.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/SyncListSessions.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTests.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTests.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTests.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTests.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTestsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTestsPaged.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTestsPaged.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTestsPaged.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/SyncListTests.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/SyncListTests.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/SyncListTests.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/SyncListTests.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/reportsession/AsyncReportSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/reportsession/AsyncReportSession.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/reportsession/AsyncReportSession.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/reportsession/AsyncReportSession.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/reportsession/SyncReportSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/reportsession/SyncReportSession.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/reportsession/SyncReportSession.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/reportsession/SyncReportSession.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/setiampolicy/AsyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/setiampolicy/AsyncSetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/setiampolicy/AsyncSetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/setiampolicy/SyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/setiampolicy/SyncSetIamPolicy.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/setiampolicy/SyncSetIamPolicy.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/testiampermissions/AsyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/testiampermissions/AsyncTestIamPermissions.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/testiampermissions/AsyncTestIamPermissions.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/testiampermissions/SyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/testiampermissions/SyncTestIamPermissions.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/testiampermissions/SyncTestIamPermissions.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/verifytest/AsyncVerifyTest.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/verifytest/AsyncVerifyTest.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/verifytest/AsyncVerifyTest.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/verifytest/AsyncVerifyTest.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/verifytest/SyncVerifyTest.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/verifytest/SyncVerifyTest.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/verifytest/SyncVerifyTest.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/verifytest/SyncVerifyTest.java diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testingsettings/createsession/SyncCreateSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testingsettings/createsession/SyncCreateSession.java similarity index 100% rename from showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testingsettings/createsession/SyncCreateSession.java rename to java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testingsettings/createsession/SyncCreateSession.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java similarity index 99% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java index 03533fd886..b96f3fcdbe 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.location.GetLocationRequest; diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java similarity index 99% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java index edfeebe920..72a5c6a44e 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java @@ -33,7 +33,6 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.location.GetLocationRequest; diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentityClient.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentityClient.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentityClient.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentityClient.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java similarity index 99% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java index 31275d5080..eb2dae0ce1 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.location.GetLocationRequest; diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java similarity index 99% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java index 0f93b42f8c..377a43a4c4 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java @@ -33,7 +33,6 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.location.GetLocationRequest; diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java similarity index 99% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java index 1e853a2aaf..67eefab806 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.location.GetLocationRequest; diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingClient.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingClient.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingClient.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingClient.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java similarity index 99% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java index b293e8a0c8..df199941fe 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java @@ -30,7 +30,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.location.GetLocationRequest; diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/gapic_metadata.json b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/gapic_metadata.json similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/gapic_metadata.json rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/gapic_metadata.json diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/package-info.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/package-info.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/package-info.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/package-info.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStub.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStub.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStub.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceCallableFactory.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceCallableFactory.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceCallableFactory.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java similarity index 99% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java index 1447a44829..82b27f82f4 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java @@ -43,7 +43,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoCallableFactory.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoCallableFactory.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoCallableFactory.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java similarity index 99% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java index 9341eca145..31d9558ef7 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java @@ -62,7 +62,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.UUID; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityCallableFactory.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityCallableFactory.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityCallableFactory.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java similarity index 99% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java index 02b8d12379..5e59ebe371 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java @@ -48,7 +48,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingCallableFactory.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingCallableFactory.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingCallableFactory.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java similarity index 99% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java index b36af2aa5d..ad600b7bbf 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java @@ -68,7 +68,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceCallableFactory.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceCallableFactory.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceCallableFactory.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java similarity index 99% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java index 839a9eda70..c9c16d1bfe 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java @@ -52,7 +52,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingCallableFactory.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingCallableFactory.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingCallableFactory.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingStub.java similarity index 99% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingStub.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingStub.java index deeb36d647..da7dd3d281 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingStub.java @@ -55,7 +55,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceCallableFactory.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceCallableFactory.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceCallableFactory.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceStub.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceStub.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceStub.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoCallableFactory.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoCallableFactory.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoCallableFactory.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java similarity index 99% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java index f322d718a2..8118816fdb 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java @@ -33,7 +33,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientStreamingCallable; diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityCallableFactory.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityCallableFactory.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityCallableFactory.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityStub.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityStub.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityStub.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingCallableFactory.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingCallableFactory.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingCallableFactory.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java similarity index 99% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java index 22e37860c7..cadaf57787 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java @@ -33,7 +33,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientStreamingCallable; diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceCallableFactory.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceCallableFactory.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceCallableFactory.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingCallableFactory.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingCallableFactory.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingCallableFactory.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingStub.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingStub.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingStub.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStub.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStub.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStub.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStub.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStub.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStub.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStub.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStub.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStub.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java similarity index 100% rename from showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java rename to java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java diff --git a/showcase/gapic-showcase/src/main/resources/META-INF/native-image/com.google.showcase.v1beta1/reflect-config.json b/java-showcase/gapic-showcase/src/main/resources/META-INF/native-image/com.google.showcase.v1beta1/reflect-config.json similarity index 100% rename from showcase/gapic-showcase/src/main/resources/META-INF/native-image/com.google.showcase.v1beta1/reflect-config.json rename to java-showcase/gapic-showcase/src/main/resources/META-INF/native-image/com.google.showcase.v1beta1/reflect-config.json diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/ComplianceClientHttpJsonTest.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/ComplianceClientHttpJsonTest.java similarity index 99% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/ComplianceClientHttpJsonTest.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/ComplianceClientHttpJsonTest.java index 706ab50b10..345817b5e5 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/ComplianceClientHttpJsonTest.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/ComplianceClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/ComplianceClientTest.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/ComplianceClientTest.java similarity index 99% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/ComplianceClientTest.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/ComplianceClientTest.java index e1a3d15c2c..8f76905d59 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/ComplianceClientTest.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/ComplianceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientHttpJsonTest.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientHttpJsonTest.java similarity index 91% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientHttpJsonTest.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientHttpJsonTest.java index 13e8c39eb7..a662b27670 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientHttpJsonTest.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -104,6 +104,8 @@ public void echoTest() throws Exception { EchoResponse.newBuilder() .setContent("content951530617") .setSeverity(Severity.forNumber(0)) + .setRequestId("requestId693933066") + .setOtherRequestId("otherRequestId1248995034") .build(); mockService.addResponse(expectedResponse); @@ -112,6 +114,8 @@ public void echoTest() throws Exception { .setSeverity(Severity.forNumber(0)) .setHeader("header-1221270899") .setOtherHeader("otherHeader-2026585667") + .setRequestId("requestId693933066") + .setOtherRequestId("otherRequestId1248995034") .build(); EchoResponse actualResponse = client.echo(request); @@ -145,6 +149,8 @@ public void echoExceptionTest() throws Exception { .setSeverity(Severity.forNumber(0)) .setHeader("header-1221270899") .setOtherHeader("otherHeader-2026585667") + .setRequestId("requestId693933066") + .setOtherRequestId("otherRequestId1248995034") .build(); client.echo(request); Assert.fail("No exception raised"); @@ -153,6 +159,59 @@ public void echoExceptionTest() throws Exception { } } + @Test + public void echoErrorDetailsTest() throws Exception { + EchoErrorDetailsResponse expectedResponse = + EchoErrorDetailsResponse.newBuilder() + .setSingleDetail(EchoErrorDetailsResponse.SingleDetail.newBuilder().build()) + .setMultipleDetails(EchoErrorDetailsResponse.MultipleDetails.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + EchoErrorDetailsRequest request = + EchoErrorDetailsRequest.newBuilder() + .setSingleDetailText("singleDetailText1774380934") + .addAllMultiDetailText(new ArrayList()) + .build(); + + EchoErrorDetailsResponse actualResponse = client.echoErrorDetails(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void echoErrorDetailsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EchoErrorDetailsRequest request = + EchoErrorDetailsRequest.newBuilder() + .setSingleDetailText("singleDetailText1774380934") + .addAllMultiDetailText(new ArrayList()) + .build(); + client.echoErrorDetails(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void expandTest() throws Exception {} diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientTest.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientTest.java similarity index 90% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientTest.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientTest.java index 7fdd669677..bcd44666ec 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientTest.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -120,6 +120,8 @@ public void echoTest() throws Exception { EchoResponse.newBuilder() .setContent("content951530617") .setSeverity(Severity.forNumber(0)) + .setRequestId("requestId693933066") + .setOtherRequestId("otherRequestId1248995034") .build(); mockEcho.addResponse(expectedResponse); @@ -128,6 +130,8 @@ public void echoTest() throws Exception { .setSeverity(Severity.forNumber(0)) .setHeader("header-1221270899") .setOtherHeader("otherHeader-2026585667") + .setRequestId("requestId693933066") + .setOtherRequestId("otherRequestId1248995034") .build(); EchoResponse actualResponse = client.echo(request); @@ -142,6 +146,8 @@ public void echoTest() throws Exception { Assert.assertEquals(request.getSeverity(), actualRequest.getSeverity()); Assert.assertEquals(request.getHeader(), actualRequest.getHeader()); Assert.assertEquals(request.getOtherHeader(), actualRequest.getOtherHeader()); + Assert.assertEquals(request.getRequestId(), actualRequest.getRequestId()); + Assert.assertEquals(request.getOtherRequestId(), actualRequest.getOtherRequestId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -159,6 +165,8 @@ public void echoExceptionTest() throws Exception { .setSeverity(Severity.forNumber(0)) .setHeader("header-1221270899") .setOtherHeader("otherHeader-2026585667") + .setRequestId("requestId693933066") + .setOtherRequestId("otherRequestId1248995034") .build(); client.echo(request); Assert.fail("No exception raised"); @@ -167,12 +175,62 @@ public void echoExceptionTest() throws Exception { } } + @Test + public void echoErrorDetailsTest() throws Exception { + EchoErrorDetailsResponse expectedResponse = + EchoErrorDetailsResponse.newBuilder() + .setSingleDetail(EchoErrorDetailsResponse.SingleDetail.newBuilder().build()) + .setMultipleDetails(EchoErrorDetailsResponse.MultipleDetails.newBuilder().build()) + .build(); + mockEcho.addResponse(expectedResponse); + + EchoErrorDetailsRequest request = + EchoErrorDetailsRequest.newBuilder() + .setSingleDetailText("singleDetailText1774380934") + .addAllMultiDetailText(new ArrayList()) + .build(); + + EchoErrorDetailsResponse actualResponse = client.echoErrorDetails(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEcho.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + EchoErrorDetailsRequest actualRequest = ((EchoErrorDetailsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getSingleDetailText(), actualRequest.getSingleDetailText()); + Assert.assertEquals(request.getMultiDetailTextList(), actualRequest.getMultiDetailTextList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void echoErrorDetailsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEcho.addException(exception); + + try { + EchoErrorDetailsRequest request = + EchoErrorDetailsRequest.newBuilder() + .setSingleDetailText("singleDetailText1774380934") + .addAllMultiDetailText(new ArrayList()) + .build(); + client.echoErrorDetails(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void expandTest() throws Exception { EchoResponse expectedResponse = EchoResponse.newBuilder() .setContent("content951530617") .setSeverity(Severity.forNumber(0)) + .setRequestId("requestId693933066") + .setOtherRequestId("otherRequestId1248995034") .build(); mockEcho.addResponse(expectedResponse); ExpandRequest request = @@ -224,6 +282,8 @@ public void collectTest() throws Exception { EchoResponse.newBuilder() .setContent("content951530617") .setSeverity(Severity.forNumber(0)) + .setRequestId("requestId693933066") + .setOtherRequestId("otherRequestId1248995034") .build(); mockEcho.addResponse(expectedResponse); EchoRequest request = @@ -231,6 +291,8 @@ public void collectTest() throws Exception { .setSeverity(Severity.forNumber(0)) .setHeader("header-1221270899") .setOtherHeader("otherHeader-2026585667") + .setRequestId("requestId693933066") + .setOtherRequestId("otherRequestId1248995034") .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); @@ -255,6 +317,8 @@ public void collectExceptionTest() throws Exception { .setSeverity(Severity.forNumber(0)) .setHeader("header-1221270899") .setOtherHeader("otherHeader-2026585667") + .setRequestId("requestId693933066") + .setOtherRequestId("otherRequestId1248995034") .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); @@ -280,6 +344,8 @@ public void chatTest() throws Exception { EchoResponse.newBuilder() .setContent("content951530617") .setSeverity(Severity.forNumber(0)) + .setRequestId("requestId693933066") + .setOtherRequestId("otherRequestId1248995034") .build(); mockEcho.addResponse(expectedResponse); EchoRequest request = @@ -287,6 +353,8 @@ public void chatTest() throws Exception { .setSeverity(Severity.forNumber(0)) .setHeader("header-1221270899") .setOtherHeader("otherHeader-2026585667") + .setRequestId("requestId693933066") + .setOtherRequestId("otherRequestId1248995034") .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); @@ -311,6 +379,8 @@ public void chatExceptionTest() throws Exception { .setSeverity(Severity.forNumber(0)) .setHeader("header-1221270899") .setOtherHeader("otherHeader-2026585667") + .setRequestId("requestId693933066") + .setOtherRequestId("otherRequestId1248995034") .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/IdentityClientHttpJsonTest.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/IdentityClientHttpJsonTest.java similarity index 99% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/IdentityClientHttpJsonTest.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/IdentityClientHttpJsonTest.java index 8be3f3d781..fb43faeb39 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/IdentityClientHttpJsonTest.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/IdentityClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/IdentityClientTest.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/IdentityClientTest.java similarity index 99% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/IdentityClientTest.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/IdentityClientTest.java index bba5e80d12..a799116534 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/IdentityClientTest.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/IdentityClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MessagingClientHttpJsonTest.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MessagingClientHttpJsonTest.java similarity index 99% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MessagingClientHttpJsonTest.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MessagingClientHttpJsonTest.java index f943d18786..bdeb1df2f5 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MessagingClientHttpJsonTest.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MessagingClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MessagingClientTest.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MessagingClientTest.java similarity index 99% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MessagingClientTest.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MessagingClientTest.java index aba31f54f9..65b8248d12 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MessagingClientTest.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MessagingClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockCompliance.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockCompliance.java similarity index 98% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockCompliance.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockCompliance.java index 0238b68e11..dbf0d0e821 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockCompliance.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockCompliance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockComplianceImpl.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockComplianceImpl.java similarity index 99% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockComplianceImpl.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockComplianceImpl.java index 0bb0662c98..b8104527bd 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockComplianceImpl.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockComplianceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockEcho.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockEcho.java similarity index 98% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockEcho.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockEcho.java index 249213a7ea..fc9db96a3e 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockEcho.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockEcho.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockEchoImpl.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockEchoImpl.java similarity index 91% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockEchoImpl.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockEchoImpl.java index 7e089b4ac0..f19c1090ee 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockEchoImpl.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockEchoImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,6 +79,27 @@ public void echo(EchoRequest request, StreamObserver responseObser } } + @Override + public void echoErrorDetails( + EchoErrorDetailsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof EchoErrorDetailsResponse) { + requests.add(request); + responseObserver.onNext(((EchoErrorDetailsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method EchoErrorDetails, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + EchoErrorDetailsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void expand(ExpandRequest request, StreamObserver responseObserver) { Object response = responses.poll(); diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIAMPolicy.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIAMPolicy.java similarity index 98% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIAMPolicy.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIAMPolicy.java index 182872091c..ef37c3d404 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIAMPolicy.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIAMPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIAMPolicyImpl.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIAMPolicyImpl.java similarity index 99% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIAMPolicyImpl.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIAMPolicyImpl.java index 40abf1c36a..3c9b26728b 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIAMPolicyImpl.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIAMPolicyImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIdentity.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIdentity.java similarity index 98% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIdentity.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIdentity.java index 92e4382b26..e6b7dd1c46 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIdentity.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIdentity.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIdentityImpl.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIdentityImpl.java similarity index 99% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIdentityImpl.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIdentityImpl.java index 6ebd3ed721..31b7602e49 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIdentityImpl.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockIdentityImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockLocations.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockLocations.java similarity index 98% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockLocations.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockLocations.java index 3ae2a8c13d..43855bd7e0 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockLocations.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockLocations.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockLocationsImpl.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockLocationsImpl.java similarity index 99% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockLocationsImpl.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockLocationsImpl.java index 38de794f6d..59502a268d 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockLocationsImpl.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockLocationsImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockMessaging.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockMessaging.java similarity index 98% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockMessaging.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockMessaging.java index 061386a91c..b9517576ed 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockMessaging.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockMessaging.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockMessagingImpl.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockMessagingImpl.java similarity index 99% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockMessagingImpl.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockMessagingImpl.java index 5cdce5ea39..2a36840c7c 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockMessagingImpl.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockMessagingImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceService.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceService.java similarity index 98% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceService.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceService.java index d26492bd88..606571e14d 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceService.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceService.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceServiceImpl.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceServiceImpl.java similarity index 99% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceServiceImpl.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceServiceImpl.java index 502ce6e1d1..a5e62fe1ad 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceServiceImpl.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockTesting.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockTesting.java similarity index 98% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockTesting.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockTesting.java index f6570d23c9..c03ddbbe4a 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockTesting.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockTesting.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockTestingImpl.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockTestingImpl.java similarity index 99% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockTestingImpl.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockTestingImpl.java index 91dc83d4a7..a73afd59a3 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockTestingImpl.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockTestingImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java similarity index 99% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java index e95fda6114..6dc92ad8b4 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientTest.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientTest.java similarity index 99% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientTest.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientTest.java index bd5b067014..43d36555c0 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientTest.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -419,6 +419,7 @@ public void attemptStreamingSequenceTest() throws Exception { AttemptStreamingSequenceRequest request = AttemptStreamingSequenceRequest.newBuilder() .setName(StreamingSequenceName.of("[STREAMING_SEQUENCE]").toString()) + .setLastFailIndex(2006482362) .build(); MockStreamObserver responseObserver = @@ -440,6 +441,7 @@ public void attemptStreamingSequenceExceptionTest() throws Exception { AttemptStreamingSequenceRequest request = AttemptStreamingSequenceRequest.newBuilder() .setName(StreamingSequenceName.of("[STREAMING_SEQUENCE]").toString()) + .setLastFailIndex(2006482362) .build(); MockStreamObserver responseObserver = diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/TestingClientHttpJsonTest.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/TestingClientHttpJsonTest.java similarity index 99% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/TestingClientHttpJsonTest.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/TestingClientHttpJsonTest.java index 9c49a43893..5a6df6a7ee 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/TestingClientHttpJsonTest.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/TestingClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/TestingClientTest.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/TestingClientTest.java similarity index 99% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/TestingClientTest.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/TestingClientTest.java index 81ca82c304..1d6280165d 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/TestingClientTest.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/TestingClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITApiKeyCredentials.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITApiKeyCredentials.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITApiKeyCredentials.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITApiKeyCredentials.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITAutoPopulatedFields.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITAutoPopulatedFields.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITAutoPopulatedFields.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITAutoPopulatedFields.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITBidiStreaming.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITBidiStreaming.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITBidiStreaming.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITBidiStreaming.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITClientShutdown.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITClientShutdown.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITClientShutdown.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITClientShutdown.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITClientSideStreaming.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITClientSideStreaming.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITClientSideStreaming.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITClientSideStreaming.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITCommonServiceMixins.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITCommonServiceMixins.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITCommonServiceMixins.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITCommonServiceMixins.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITCrud.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITCrud.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITCrud.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITCrud.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITDynamicRoutingHeaders.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITDynamicRoutingHeaders.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITDynamicRoutingHeaders.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITDynamicRoutingHeaders.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITEndpointContext.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITEndpointContext.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITEndpointContext.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITEndpointContext.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITGdch.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITGdch.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITGdch.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITGdch.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITHttpAnnotation.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITHttpAnnotation.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITHttpAnnotation.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITHttpAnnotation.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITIam.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITIam.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITIam.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITIam.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITLongRunningOperation.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITLongRunningOperation.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITLongRunningOperation.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITLongRunningOperation.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITNumericEnums.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITNumericEnums.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITNumericEnums.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITNumericEnums.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITPagination.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITPagination.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITPagination.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITPagination.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITServerSideStreaming.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITServerSideStreaming.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITServerSideStreaming.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITServerSideStreaming.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITTimeObjectsPropagationTest.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITTimeObjectsPropagationTest.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITTimeObjectsPropagationTest.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITTimeObjectsPropagationTest.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITUnaryCallable.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITUnaryCallable.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITUnaryCallable.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITUnaryCallable.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITUnaryDeadline.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITUnaryDeadline.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITUnaryDeadline.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITUnaryDeadline.java diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITVersionHeaders.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITVersionHeaders.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITVersionHeaders.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITVersionHeaders.java diff --git a/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/GrpcCapturingClientInterceptor.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/GrpcCapturingClientInterceptor.java new file mode 100644 index 0000000000..e7d2a01f56 --- /dev/null +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/GrpcCapturingClientInterceptor.java @@ -0,0 +1,83 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.it.util; + +import io.grpc.CallOptions; +import io.grpc.Channel; +import io.grpc.ClientCall; +import io.grpc.ClientInterceptor; +import io.grpc.ForwardingClientCall; +import io.grpc.Metadata; +import io.grpc.MethodDescriptor; +import io.grpc.Status; + +/** Implements a client interceptor to retrieve the metadata from a GRPC client request. */ +public class GrpcCapturingClientInterceptor implements ClientInterceptor { + public Metadata metadata; + + @Override + public ClientCall interceptCall( + MethodDescriptor method, final CallOptions callOptions, Channel next) { + ClientCall call = next.newCall(method, callOptions); + return new ForwardingClientCall.SimpleForwardingClientCall(call) { + @Override + public void start(Listener responseListener, Metadata headers) { + Listener wrappedListener = + new SimpleForwardingClientCallListener(responseListener) { + @Override + public void onClose(Status status, Metadata trailers) { + if (status.isOk()) { + metadata = trailers; + } + super.onClose(status, trailers); + } + }; + + super.start(wrappedListener, headers); + } + }; + } + + private static class SimpleForwardingClientCallListener + extends ClientCall.Listener { + private final ClientCall.Listener delegate; + + SimpleForwardingClientCallListener(ClientCall.Listener delegate) { + this.delegate = delegate; + } + + @Override + public void onHeaders(Metadata headers) { + delegate.onHeaders(headers); + } + + @Override + public void onMessage(RespT message) { + delegate.onMessage(message); + } + + @Override + public void onClose(Status status, Metadata trailers) { + delegate.onClose(status, trailers); + } + + @Override + public void onReady() { + delegate.onReady(); + } + } +} diff --git a/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/HttpJsonCapturingClientInterceptor.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/HttpJsonCapturingClientInterceptor.java new file mode 100644 index 0000000000..ec9b9da9cb --- /dev/null +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/HttpJsonCapturingClientInterceptor.java @@ -0,0 +1,66 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.it.util; + +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.ForwardingHttpJsonClientCall; +import com.google.api.gax.httpjson.ForwardingHttpJsonClientCallListener; +import com.google.api.gax.httpjson.HttpJsonCallOptions; +import com.google.api.gax.httpjson.HttpJsonChannel; +import com.google.api.gax.httpjson.HttpJsonClientCall; +import com.google.api.gax.httpjson.HttpJsonClientInterceptor; +import com.google.api.gax.httpjson.HttpJsonMetadata; + +/** Implements a client interceptor to retrieve the response headers from a HTTP client request. */ +public class HttpJsonCapturingClientInterceptor implements HttpJsonClientInterceptor { + public HttpJsonMetadata metadata; + + @Override + public HttpJsonClientCall interceptCall( + ApiMethodDescriptor method, + HttpJsonCallOptions callOptions, + HttpJsonChannel next) { + HttpJsonClientCall call = next.newCall(method, callOptions); + return new ForwardingHttpJsonClientCall.SimpleForwardingHttpJsonClientCall( + call) { + @Override + public void start(Listener responseListener, HttpJsonMetadata requestHeaders) { + Listener forwardingResponseListener = + new ForwardingHttpJsonClientCallListener.SimpleForwardingHttpJsonClientCallListener< + ResponseT>(responseListener) { + @Override + public void onHeaders(HttpJsonMetadata responseHeaders) { + metadata = responseHeaders; + super.onHeaders(responseHeaders); + } + + @Override + public void onMessage(ResponseT message) { + super.onMessage(message); + } + + @Override + public void onClose(int statusCode, HttpJsonMetadata trailers) { + super.onClose(statusCode, trailers); + } + }; + + super.start(forwardingResponseListener, requestHeaders); + } + }; + } +} diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransport.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransport.java similarity index 55% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransport.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransport.java index 40860d97be..4545d87f20 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransport.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransport.java @@ -21,30 +21,28 @@ import com.google.api.client.json.gson.GsonFactory; import com.google.api.client.json.webtoken.JsonWebSignature; import com.google.api.client.testing.http.MockLowLevelHttpRequest; -import com.google.api.client.util.StreamingContent; import com.google.auth.TestUtils; import com.google.auth.oauth2.MockTokenServerTransport; - import java.io.IOException; import java.util.Map; public class InterceptingMockTokenServerTransport extends MockTokenServerTransport { - private MockLowLevelHttpRequest lastRequest; - private static final JsonFactory JSON_FACTORY = new GsonFactory(); + private MockLowLevelHttpRequest lastRequest; + private static final JsonFactory JSON_FACTORY = new GsonFactory(); - @Override - public LowLevelHttpRequest buildRequest(String method, String url) throws IOException { - MockLowLevelHttpRequest baseRequest = (MockLowLevelHttpRequest) super.buildRequest(method, url); - lastRequest = baseRequest; - return baseRequest; - } + @Override + public LowLevelHttpRequest buildRequest(String method, String url) throws IOException { + MockLowLevelHttpRequest baseRequest = (MockLowLevelHttpRequest) super.buildRequest(method, url); + lastRequest = baseRequest; + return baseRequest; + } - public String getLastAudienceSent() throws IOException { - String contentString = lastRequest.getContentAsString(); - Map query = TestUtils.parseQuery(contentString); - String assertion = query.get("assertion"); - JsonWebSignature signature = JsonWebSignature.parse(JSON_FACTORY, assertion); - String foundTargetAudience = (String) signature.getPayload().get("api_audience"); - return foundTargetAudience; - } + public String getLastAudienceSent() throws IOException { + String contentString = lastRequest.getContentAsString(); + Map query = TestUtils.parseQuery(contentString); + String assertion = query.get("assertion"); + JsonWebSignature signature = JsonWebSignature.parse(JSON_FACTORY, assertion); + String foundTargetAudience = (String) signature.getPayload().get("api_audience"); + return foundTargetAudience; + } } diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransportFactory.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransportFactory.java similarity index 78% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransportFactory.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransportFactory.java index 175beb61d6..ffb1e04132 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransportFactory.java +++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransportFactory.java @@ -17,15 +17,15 @@ package com.google.showcase.v1beta1.it.util; import com.google.api.client.http.HttpTransport; -import com.google.auth.oauth2.MockTokenServerTransport; import com.google.auth.oauth2.MockTokenServerTransportFactory; public class InterceptingMockTokenServerTransportFactory extends MockTokenServerTransportFactory { - public InterceptingMockTokenServerTransport transport = new InterceptingMockTokenServerTransport(); + public InterceptingMockTokenServerTransport transport = + new InterceptingMockTokenServerTransport(); - @Override - public HttpTransport create() { - return transport; - } + @Override + public HttpTransport create() { + return transport; + } } diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java similarity index 100% rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java diff --git a/showcase/gapic-showcase/src/test/resources/META-INF/native-image/resource-config.json b/java-showcase/gapic-showcase/src/test/resources/META-INF/native-image/resource-config.json similarity index 100% rename from showcase/gapic-showcase/src/test/resources/META-INF/native-image/resource-config.json rename to java-showcase/gapic-showcase/src/test/resources/META-INF/native-image/resource-config.json diff --git a/showcase/gapic-showcase/src/test/resources/compliance_suite.json b/java-showcase/gapic-showcase/src/test/resources/compliance_suite.json similarity index 100% rename from showcase/gapic-showcase/src/test/resources/compliance_suite.json rename to java-showcase/gapic-showcase/src/test/resources/compliance_suite.json diff --git a/showcase/gapic-showcase/src/test/resources/fake_cert.pem b/java-showcase/gapic-showcase/src/test/resources/fake_cert.pem similarity index 100% rename from showcase/gapic-showcase/src/test/resources/fake_cert.pem rename to java-showcase/gapic-showcase/src/test/resources/fake_cert.pem diff --git a/showcase/gapic-showcase/src/test/resources/test_gdch_credential.json b/java-showcase/gapic-showcase/src/test/resources/test_gdch_credential.json similarity index 100% rename from showcase/gapic-showcase/src/test/resources/test_gdch_credential.json rename to java-showcase/gapic-showcase/src/test/resources/test_gdch_credential.json diff --git a/showcase/grpc-gapic-showcase-v1beta1/pom.xml b/java-showcase/grpc-gapic-showcase-v1beta1/pom.xml similarity index 100% rename from showcase/grpc-gapic-showcase-v1beta1/pom.xml rename to java-showcase/grpc-gapic-showcase-v1beta1/pom.xml diff --git a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGrpc.java b/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGrpc.java similarity index 51% rename from showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGrpc.java rename to java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGrpc.java index ac687ff3e1..17d7f39a49 100644 --- a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGrpc.java +++ b/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format
  * correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped
@@ -20,361 +37,477 @@ private ComplianceGrpc() {}
   public static final java.lang.String SERVICE_NAME = "google.showcase.v1beta1.Compliance";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getRepeatDataBodyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+      getRepeatDataBodyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RepeatDataBody",
       requestType = com.google.showcase.v1beta1.RepeatRequest.class,
       responseType = com.google.showcase.v1beta1.RepeatResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getRepeatDataBodyMethod() {
-    io.grpc.MethodDescriptor getRepeatDataBodyMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+      getRepeatDataBodyMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+        getRepeatDataBodyMethod;
     if ((getRepeatDataBodyMethod = ComplianceGrpc.getRepeatDataBodyMethod) == null) {
       synchronized (ComplianceGrpc.class) {
         if ((getRepeatDataBodyMethod = ComplianceGrpc.getRepeatDataBodyMethod) == null) {
-          ComplianceGrpc.getRepeatDataBodyMethod = getRepeatDataBodyMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataBody"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataBody"))
-              .build();
+          ComplianceGrpc.getRepeatDataBodyMethod =
+              getRepeatDataBodyMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataBody"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataBody"))
+                      .build();
         }
       }
     }
     return getRepeatDataBodyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getRepeatDataBodyInfoMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+      getRepeatDataBodyInfoMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RepeatDataBodyInfo",
       requestType = com.google.showcase.v1beta1.RepeatRequest.class,
       responseType = com.google.showcase.v1beta1.RepeatResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getRepeatDataBodyInfoMethod() {
-    io.grpc.MethodDescriptor getRepeatDataBodyInfoMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+      getRepeatDataBodyInfoMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+        getRepeatDataBodyInfoMethod;
     if ((getRepeatDataBodyInfoMethod = ComplianceGrpc.getRepeatDataBodyInfoMethod) == null) {
       synchronized (ComplianceGrpc.class) {
         if ((getRepeatDataBodyInfoMethod = ComplianceGrpc.getRepeatDataBodyInfoMethod) == null) {
-          ComplianceGrpc.getRepeatDataBodyInfoMethod = getRepeatDataBodyInfoMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataBodyInfo"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataBodyInfo"))
-              .build();
+          ComplianceGrpc.getRepeatDataBodyInfoMethod =
+              getRepeatDataBodyInfoMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataBodyInfo"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ComplianceMethodDescriptorSupplier("RepeatDataBodyInfo"))
+                      .build();
         }
       }
     }
     return getRepeatDataBodyInfoMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getRepeatDataQueryMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+      getRepeatDataQueryMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RepeatDataQuery",
       requestType = com.google.showcase.v1beta1.RepeatRequest.class,
       responseType = com.google.showcase.v1beta1.RepeatResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getRepeatDataQueryMethod() {
-    io.grpc.MethodDescriptor getRepeatDataQueryMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+      getRepeatDataQueryMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+        getRepeatDataQueryMethod;
     if ((getRepeatDataQueryMethod = ComplianceGrpc.getRepeatDataQueryMethod) == null) {
       synchronized (ComplianceGrpc.class) {
         if ((getRepeatDataQueryMethod = ComplianceGrpc.getRepeatDataQueryMethod) == null) {
-          ComplianceGrpc.getRepeatDataQueryMethod = getRepeatDataQueryMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataQuery"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataQuery"))
-              .build();
+          ComplianceGrpc.getRepeatDataQueryMethod =
+              getRepeatDataQueryMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataQuery"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ComplianceMethodDescriptorSupplier("RepeatDataQuery"))
+                      .build();
         }
       }
     }
     return getRepeatDataQueryMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getRepeatDataSimplePathMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+      getRepeatDataSimplePathMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RepeatDataSimplePath",
       requestType = com.google.showcase.v1beta1.RepeatRequest.class,
       responseType = com.google.showcase.v1beta1.RepeatResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getRepeatDataSimplePathMethod() {
-    io.grpc.MethodDescriptor getRepeatDataSimplePathMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+      getRepeatDataSimplePathMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+        getRepeatDataSimplePathMethod;
     if ((getRepeatDataSimplePathMethod = ComplianceGrpc.getRepeatDataSimplePathMethod) == null) {
       synchronized (ComplianceGrpc.class) {
-        if ((getRepeatDataSimplePathMethod = ComplianceGrpc.getRepeatDataSimplePathMethod) == null) {
-          ComplianceGrpc.getRepeatDataSimplePathMethod = getRepeatDataSimplePathMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataSimplePath"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataSimplePath"))
-              .build();
+        if ((getRepeatDataSimplePathMethod = ComplianceGrpc.getRepeatDataSimplePathMethod)
+            == null) {
+          ComplianceGrpc.getRepeatDataSimplePathMethod =
+              getRepeatDataSimplePathMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "RepeatDataSimplePath"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ComplianceMethodDescriptorSupplier("RepeatDataSimplePath"))
+                      .build();
         }
       }
     }
     return getRepeatDataSimplePathMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getRepeatDataPathResourceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+      getRepeatDataPathResourceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RepeatDataPathResource",
       requestType = com.google.showcase.v1beta1.RepeatRequest.class,
       responseType = com.google.showcase.v1beta1.RepeatResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getRepeatDataPathResourceMethod() {
-    io.grpc.MethodDescriptor getRepeatDataPathResourceMethod;
-    if ((getRepeatDataPathResourceMethod = ComplianceGrpc.getRepeatDataPathResourceMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+      getRepeatDataPathResourceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+        getRepeatDataPathResourceMethod;
+    if ((getRepeatDataPathResourceMethod = ComplianceGrpc.getRepeatDataPathResourceMethod)
+        == null) {
       synchronized (ComplianceGrpc.class) {
-        if ((getRepeatDataPathResourceMethod = ComplianceGrpc.getRepeatDataPathResourceMethod) == null) {
-          ComplianceGrpc.getRepeatDataPathResourceMethod = getRepeatDataPathResourceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataPathResource"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataPathResource"))
-              .build();
+        if ((getRepeatDataPathResourceMethod = ComplianceGrpc.getRepeatDataPathResourceMethod)
+            == null) {
+          ComplianceGrpc.getRepeatDataPathResourceMethod =
+              getRepeatDataPathResourceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "RepeatDataPathResource"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ComplianceMethodDescriptorSupplier("RepeatDataPathResource"))
+                      .build();
         }
       }
     }
     return getRepeatDataPathResourceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getRepeatDataPathTrailingResourceMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+      getRepeatDataPathTrailingResourceMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RepeatDataPathTrailingResource",
       requestType = com.google.showcase.v1beta1.RepeatRequest.class,
       responseType = com.google.showcase.v1beta1.RepeatResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getRepeatDataPathTrailingResourceMethod() {
-    io.grpc.MethodDescriptor getRepeatDataPathTrailingResourceMethod;
-    if ((getRepeatDataPathTrailingResourceMethod = ComplianceGrpc.getRepeatDataPathTrailingResourceMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+      getRepeatDataPathTrailingResourceMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+        getRepeatDataPathTrailingResourceMethod;
+    if ((getRepeatDataPathTrailingResourceMethod =
+            ComplianceGrpc.getRepeatDataPathTrailingResourceMethod)
+        == null) {
       synchronized (ComplianceGrpc.class) {
-        if ((getRepeatDataPathTrailingResourceMethod = ComplianceGrpc.getRepeatDataPathTrailingResourceMethod) == null) {
-          ComplianceGrpc.getRepeatDataPathTrailingResourceMethod = getRepeatDataPathTrailingResourceMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataPathTrailingResource"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataPathTrailingResource"))
-              .build();
+        if ((getRepeatDataPathTrailingResourceMethod =
+                ComplianceGrpc.getRepeatDataPathTrailingResourceMethod)
+            == null) {
+          ComplianceGrpc.getRepeatDataPathTrailingResourceMethod =
+              getRepeatDataPathTrailingResourceMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "RepeatDataPathTrailingResource"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ComplianceMethodDescriptorSupplier("RepeatDataPathTrailingResource"))
+                      .build();
         }
       }
     }
     return getRepeatDataPathTrailingResourceMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getRepeatDataBodyPutMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+      getRepeatDataBodyPutMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RepeatDataBodyPut",
       requestType = com.google.showcase.v1beta1.RepeatRequest.class,
       responseType = com.google.showcase.v1beta1.RepeatResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getRepeatDataBodyPutMethod() {
-    io.grpc.MethodDescriptor getRepeatDataBodyPutMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+      getRepeatDataBodyPutMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+        getRepeatDataBodyPutMethod;
     if ((getRepeatDataBodyPutMethod = ComplianceGrpc.getRepeatDataBodyPutMethod) == null) {
       synchronized (ComplianceGrpc.class) {
         if ((getRepeatDataBodyPutMethod = ComplianceGrpc.getRepeatDataBodyPutMethod) == null) {
-          ComplianceGrpc.getRepeatDataBodyPutMethod = getRepeatDataBodyPutMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataBodyPut"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataBodyPut"))
-              .build();
+          ComplianceGrpc.getRepeatDataBodyPutMethod =
+              getRepeatDataBodyPutMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataBodyPut"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ComplianceMethodDescriptorSupplier("RepeatDataBodyPut"))
+                      .build();
         }
       }
     }
     return getRepeatDataBodyPutMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getRepeatDataBodyPatchMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+      getRepeatDataBodyPatchMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RepeatDataBodyPatch",
       requestType = com.google.showcase.v1beta1.RepeatRequest.class,
       responseType = com.google.showcase.v1beta1.RepeatResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getRepeatDataBodyPatchMethod() {
-    io.grpc.MethodDescriptor getRepeatDataBodyPatchMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+      getRepeatDataBodyPatchMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+        getRepeatDataBodyPatchMethod;
     if ((getRepeatDataBodyPatchMethod = ComplianceGrpc.getRepeatDataBodyPatchMethod) == null) {
       synchronized (ComplianceGrpc.class) {
         if ((getRepeatDataBodyPatchMethod = ComplianceGrpc.getRepeatDataBodyPatchMethod) == null) {
-          ComplianceGrpc.getRepeatDataBodyPatchMethod = getRepeatDataBodyPatchMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataBodyPatch"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataBodyPatch"))
-              .build();
+          ComplianceGrpc.getRepeatDataBodyPatchMethod =
+              getRepeatDataBodyPatchMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "RepeatDataBodyPatch"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ComplianceMethodDescriptorSupplier("RepeatDataBodyPatch"))
+                      .build();
         }
       }
     }
     return getRepeatDataBodyPatchMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetEnumMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.EnumRequest, com.google.showcase.v1beta1.EnumResponse>
+      getGetEnumMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetEnum",
       requestType = com.google.showcase.v1beta1.EnumRequest.class,
       responseType = com.google.showcase.v1beta1.EnumResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetEnumMethod() {
-    io.grpc.MethodDescriptor getGetEnumMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.EnumRequest, com.google.showcase.v1beta1.EnumResponse>
+      getGetEnumMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.EnumRequest, com.google.showcase.v1beta1.EnumResponse>
+        getGetEnumMethod;
     if ((getGetEnumMethod = ComplianceGrpc.getGetEnumMethod) == null) {
       synchronized (ComplianceGrpc.class) {
         if ((getGetEnumMethod = ComplianceGrpc.getGetEnumMethod) == null) {
-          ComplianceGrpc.getGetEnumMethod = getGetEnumMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEnum"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.EnumRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.EnumResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("GetEnum"))
-              .build();
+          ComplianceGrpc.getGetEnumMethod =
+              getGetEnumMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEnum"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.EnumRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.EnumResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("GetEnum"))
+                      .build();
         }
       }
     }
     return getGetEnumMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getVerifyEnumMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.EnumResponse, com.google.showcase.v1beta1.EnumResponse>
+      getVerifyEnumMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "VerifyEnum",
       requestType = com.google.showcase.v1beta1.EnumResponse.class,
       responseType = com.google.showcase.v1beta1.EnumResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getVerifyEnumMethod() {
-    io.grpc.MethodDescriptor getVerifyEnumMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.EnumResponse, com.google.showcase.v1beta1.EnumResponse>
+      getVerifyEnumMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.EnumResponse, com.google.showcase.v1beta1.EnumResponse>
+        getVerifyEnumMethod;
     if ((getVerifyEnumMethod = ComplianceGrpc.getVerifyEnumMethod) == null) {
       synchronized (ComplianceGrpc.class) {
         if ((getVerifyEnumMethod = ComplianceGrpc.getVerifyEnumMethod) == null) {
-          ComplianceGrpc.getVerifyEnumMethod = getVerifyEnumMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyEnum"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.EnumResponse.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.EnumResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("VerifyEnum"))
-              .build();
+          ComplianceGrpc.getVerifyEnumMethod =
+              getVerifyEnumMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyEnum"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.EnumResponse.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.EnumResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("VerifyEnum"))
+                      .build();
         }
       }
     }
     return getVerifyEnumMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static ComplianceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ComplianceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ComplianceStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ComplianceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ComplianceStub(channel, callOptions);
+          }
+        };
     return ComplianceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static ComplianceBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static ComplianceBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ComplianceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ComplianceBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ComplianceBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ComplianceBlockingStub(channel, callOptions);
+          }
+        };
     return ComplianceBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static ComplianceFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static ComplianceFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public ComplianceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new ComplianceFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public ComplianceFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new ComplianceFutureStub(channel, callOptions);
+          }
+        };
     return ComplianceFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format
    * correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped
@@ -384,92 +517,126 @@ public ComplianceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * This method echoes the ComplianceData request. This method exercises
      * sending the entire request object in the REST body.
      * 
*/ - default void repeatDataBody(com.google.showcase.v1beta1.RepeatRequest request, + default void repeatDataBody( + com.google.showcase.v1beta1.RepeatRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataBodyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRepeatDataBodyMethod(), responseObserver); } /** + * + * *
      * This method echoes the ComplianceData request. This method exercises
      * sending the a message-type field in the REST body. Per AIP-127, only
      * top-level, non-repeated fields can be sent this way.
      * 
*/ - default void repeatDataBodyInfo(com.google.showcase.v1beta1.RepeatRequest request, + default void repeatDataBodyInfo( + com.google.showcase.v1beta1.RepeatRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataBodyInfoMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRepeatDataBodyInfoMethod(), responseObserver); } /** + * + * *
      * This method echoes the ComplianceData request. This method exercises
      * sending all request fields as query parameters.
      * 
*/ - default void repeatDataQuery(com.google.showcase.v1beta1.RepeatRequest request, + default void repeatDataQuery( + com.google.showcase.v1beta1.RepeatRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataQueryMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRepeatDataQueryMethod(), responseObserver); } /** + * + * *
      * This method echoes the ComplianceData request. This method exercises
      * sending some parameters as "simple" path variables (i.e., of the form
      * "/bar/{foo}" rather than "/{foo=bar/*}"), and the rest as query parameters.
      * 
*/ - default void repeatDataSimplePath(com.google.showcase.v1beta1.RepeatRequest request, + default void repeatDataSimplePath( + com.google.showcase.v1beta1.RepeatRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataSimplePathMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRepeatDataSimplePathMethod(), responseObserver); } /** + * + * *
      * Same as RepeatDataSimplePath, but with a path resource.
      * 
*/ - default void repeatDataPathResource(com.google.showcase.v1beta1.RepeatRequest request, + default void repeatDataPathResource( + com.google.showcase.v1beta1.RepeatRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataPathResourceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRepeatDataPathResourceMethod(), responseObserver); } /** + * + * *
      * Same as RepeatDataSimplePath, but with a trailing resource.
      * 
*/ - default void repeatDataPathTrailingResource(com.google.showcase.v1beta1.RepeatRequest request, + default void repeatDataPathTrailingResource( + com.google.showcase.v1beta1.RepeatRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataPathTrailingResourceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRepeatDataPathTrailingResourceMethod(), responseObserver); } /** + * + * *
      * This method echoes the ComplianceData request, using the HTTP PUT method.
      * 
*/ - default void repeatDataBodyPut(com.google.showcase.v1beta1.RepeatRequest request, + default void repeatDataBodyPut( + com.google.showcase.v1beta1.RepeatRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataBodyPutMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRepeatDataBodyPutMethod(), responseObserver); } /** + * + * *
      * This method echoes the ComplianceData request, using the HTTP PATCH method.
      * 
*/ - default void repeatDataBodyPatch(com.google.showcase.v1beta1.RepeatRequest request, + default void repeatDataBodyPatch( + com.google.showcase.v1beta1.RepeatRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataBodyPatchMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRepeatDataBodyPatchMethod(), responseObserver); } /** + * + * *
      * This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the
      * .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the
@@ -478,12 +645,15 @@ default void repeatDataBodyPatch(com.google.showcase.v1beta1.RepeatRequest reque
      * VerifyEnum() to work) but are not guaranteed to be the same across separate Showcase server runs.
      * 
*/ - default void getEnum(com.google.showcase.v1beta1.EnumRequest request, + default void getEnum( + com.google.showcase.v1beta1.EnumRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEnumMethod(), responseObserver); } /** + * + * *
      * This method is used to verify that clients can round-trip enum values, which is particularly important for unknown enum values over REST. VerifyEnum()
      * verifies that its request, which is presumably the response that the client previously got to a GetEnum(), contains the correct data. If so, it responds
@@ -492,7 +662,8 @@ default void getEnum(com.google.showcase.v1beta1.EnumRequest request,
      * although they are not guaranteed to be the same across separate Showcase server runs.
      * 
*/ - default void verifyEnum(com.google.showcase.v1beta1.EnumResponse request, + default void verifyEnum( + com.google.showcase.v1beta1.EnumResponse request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyEnumMethod(), responseObserver); } @@ -500,136 +671,177 @@ default void verifyEnum(com.google.showcase.v1beta1.EnumResponse request, /** * Base class for the server implementation of the service Compliance. + * *
    * This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format
    * correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped
    * correctly.
    * 
*/ - public static abstract class ComplianceImplBase - implements io.grpc.BindableService, AsyncService { + public abstract static class ComplianceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return ComplianceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Compliance. + * *
    * This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format
    * correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped
    * correctly.
    * 
*/ - public static final class ComplianceStub - extends io.grpc.stub.AbstractAsyncStub { - private ComplianceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ComplianceStub extends io.grpc.stub.AbstractAsyncStub { + private ComplianceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ComplianceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ComplianceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ComplianceStub(channel, callOptions); } /** + * + * *
      * This method echoes the ComplianceData request. This method exercises
      * sending the entire request object in the REST body.
      * 
*/ - public void repeatDataBody(com.google.showcase.v1beta1.RepeatRequest request, + public void repeatDataBody( + com.google.showcase.v1beta1.RepeatRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRepeatDataBodyMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getRepeatDataBodyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * This method echoes the ComplianceData request. This method exercises
      * sending the a message-type field in the REST body. Per AIP-127, only
      * top-level, non-repeated fields can be sent this way.
      * 
*/ - public void repeatDataBodyInfo(com.google.showcase.v1beta1.RepeatRequest request, + public void repeatDataBodyInfo( + com.google.showcase.v1beta1.RepeatRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRepeatDataBodyInfoMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getRepeatDataBodyInfoMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * This method echoes the ComplianceData request. This method exercises
      * sending all request fields as query parameters.
      * 
*/ - public void repeatDataQuery(com.google.showcase.v1beta1.RepeatRequest request, + public void repeatDataQuery( + com.google.showcase.v1beta1.RepeatRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRepeatDataQueryMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getRepeatDataQueryMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * This method echoes the ComplianceData request. This method exercises
      * sending some parameters as "simple" path variables (i.e., of the form
      * "/bar/{foo}" rather than "/{foo=bar/*}"), and the rest as query parameters.
      * 
*/ - public void repeatDataSimplePath(com.google.showcase.v1beta1.RepeatRequest request, + public void repeatDataSimplePath( + com.google.showcase.v1beta1.RepeatRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRepeatDataSimplePathMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getRepeatDataSimplePathMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Same as RepeatDataSimplePath, but with a path resource.
      * 
*/ - public void repeatDataPathResource(com.google.showcase.v1beta1.RepeatRequest request, + public void repeatDataPathResource( + com.google.showcase.v1beta1.RepeatRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRepeatDataPathResourceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getRepeatDataPathResourceMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Same as RepeatDataSimplePath, but with a trailing resource.
      * 
*/ - public void repeatDataPathTrailingResource(com.google.showcase.v1beta1.RepeatRequest request, + public void repeatDataPathTrailingResource( + com.google.showcase.v1beta1.RepeatRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRepeatDataPathTrailingResourceMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getRepeatDataPathTrailingResourceMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * This method echoes the ComplianceData request, using the HTTP PUT method.
      * 
*/ - public void repeatDataBodyPut(com.google.showcase.v1beta1.RepeatRequest request, + public void repeatDataBodyPut( + com.google.showcase.v1beta1.RepeatRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRepeatDataBodyPutMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getRepeatDataBodyPutMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * This method echoes the ComplianceData request, using the HTTP PATCH method.
      * 
*/ - public void repeatDataBodyPatch(com.google.showcase.v1beta1.RepeatRequest request, + public void repeatDataBodyPatch( + com.google.showcase.v1beta1.RepeatRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRepeatDataBodyPatchMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getRepeatDataBodyPatchMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the
      * .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the
@@ -638,13 +850,16 @@ public void repeatDataBodyPatch(com.google.showcase.v1beta1.RepeatRequest reques
      * VerifyEnum() to work) but are not guaranteed to be the same across separate Showcase server runs.
      * 
*/ - public void getEnum(com.google.showcase.v1beta1.EnumRequest request, + public void getEnum( + com.google.showcase.v1beta1.EnumRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetEnumMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * This method is used to verify that clients can round-trip enum values, which is particularly important for unknown enum values over REST. VerifyEnum()
      * verifies that its request, which is presumably the response that the client previously got to a GetEnum(), contains the correct data. If so, it responds
@@ -653,7 +868,8 @@ public void getEnum(com.google.showcase.v1beta1.EnumRequest request,
      * although they are not guaranteed to be the same across separate Showcase server runs.
      * 
*/ - public void verifyEnum(com.google.showcase.v1beta1.EnumResponse request, + public void verifyEnum( + com.google.showcase.v1beta1.EnumResponse request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getVerifyEnumMethod(), getCallOptions()), request, responseObserver); @@ -662,6 +878,7 @@ public void verifyEnum(com.google.showcase.v1beta1.EnumResponse request, /** * A stub to allow clients to do synchronous rpc calls to service Compliance. + * *
    * This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format
    * correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped
@@ -670,8 +887,7 @@ public void verifyEnum(com.google.showcase.v1beta1.EnumResponse request,
    */
   public static final class ComplianceBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private ComplianceBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private ComplianceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -682,92 +898,118 @@ protected ComplianceBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * This method echoes the ComplianceData request. This method exercises
      * sending the entire request object in the REST body.
      * 
*/ - public com.google.showcase.v1beta1.RepeatResponse repeatDataBody(com.google.showcase.v1beta1.RepeatRequest request) { + public com.google.showcase.v1beta1.RepeatResponse repeatDataBody( + com.google.showcase.v1beta1.RepeatRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRepeatDataBodyMethod(), getCallOptions(), request); } /** + * + * *
      * This method echoes the ComplianceData request. This method exercises
      * sending the a message-type field in the REST body. Per AIP-127, only
      * top-level, non-repeated fields can be sent this way.
      * 
*/ - public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyInfo(com.google.showcase.v1beta1.RepeatRequest request) { + public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyInfo( + com.google.showcase.v1beta1.RepeatRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRepeatDataBodyInfoMethod(), getCallOptions(), request); } /** + * + * *
      * This method echoes the ComplianceData request. This method exercises
      * sending all request fields as query parameters.
      * 
*/ - public com.google.showcase.v1beta1.RepeatResponse repeatDataQuery(com.google.showcase.v1beta1.RepeatRequest request) { + public com.google.showcase.v1beta1.RepeatResponse repeatDataQuery( + com.google.showcase.v1beta1.RepeatRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRepeatDataQueryMethod(), getCallOptions(), request); } /** + * + * *
      * This method echoes the ComplianceData request. This method exercises
      * sending some parameters as "simple" path variables (i.e., of the form
      * "/bar/{foo}" rather than "/{foo=bar/*}"), and the rest as query parameters.
      * 
*/ - public com.google.showcase.v1beta1.RepeatResponse repeatDataSimplePath(com.google.showcase.v1beta1.RepeatRequest request) { + public com.google.showcase.v1beta1.RepeatResponse repeatDataSimplePath( + com.google.showcase.v1beta1.RepeatRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRepeatDataSimplePathMethod(), getCallOptions(), request); } /** + * + * *
      * Same as RepeatDataSimplePath, but with a path resource.
      * 
*/ - public com.google.showcase.v1beta1.RepeatResponse repeatDataPathResource(com.google.showcase.v1beta1.RepeatRequest request) { + public com.google.showcase.v1beta1.RepeatResponse repeatDataPathResource( + com.google.showcase.v1beta1.RepeatRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRepeatDataPathResourceMethod(), getCallOptions(), request); } /** + * + * *
      * Same as RepeatDataSimplePath, but with a trailing resource.
      * 
*/ - public com.google.showcase.v1beta1.RepeatResponse repeatDataPathTrailingResource(com.google.showcase.v1beta1.RepeatRequest request) { + public com.google.showcase.v1beta1.RepeatResponse repeatDataPathTrailingResource( + com.google.showcase.v1beta1.RepeatRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRepeatDataPathTrailingResourceMethod(), getCallOptions(), request); } /** + * + * *
      * This method echoes the ComplianceData request, using the HTTP PUT method.
      * 
*/ - public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyPut(com.google.showcase.v1beta1.RepeatRequest request) { + public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyPut( + com.google.showcase.v1beta1.RepeatRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRepeatDataBodyPutMethod(), getCallOptions(), request); } /** + * + * *
      * This method echoes the ComplianceData request, using the HTTP PATCH method.
      * 
*/ - public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyPatch(com.google.showcase.v1beta1.RepeatRequest request) { + public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyPatch( + com.google.showcase.v1beta1.RepeatRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRepeatDataBodyPatchMethod(), getCallOptions(), request); } /** + * + * *
      * This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the
      * .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the
@@ -776,12 +1018,15 @@ public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyPatch(com.google
      * VerifyEnum() to work) but are not guaranteed to be the same across separate Showcase server runs.
      * 
*/ - public com.google.showcase.v1beta1.EnumResponse getEnum(com.google.showcase.v1beta1.EnumRequest request) { + public com.google.showcase.v1beta1.EnumResponse getEnum( + com.google.showcase.v1beta1.EnumRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetEnumMethod(), getCallOptions(), request); } /** + * + * *
      * This method is used to verify that clients can round-trip enum values, which is particularly important for unknown enum values over REST. VerifyEnum()
      * verifies that its request, which is presumably the response that the client previously got to a GetEnum(), contains the correct data. If so, it responds
@@ -790,7 +1035,8 @@ public com.google.showcase.v1beta1.EnumResponse getEnum(com.google.showcase.v1be
      * although they are not guaranteed to be the same across separate Showcase server runs.
      * 
*/ - public com.google.showcase.v1beta1.EnumResponse verifyEnum(com.google.showcase.v1beta1.EnumResponse request) { + public com.google.showcase.v1beta1.EnumResponse verifyEnum( + com.google.showcase.v1beta1.EnumResponse request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getVerifyEnumMethod(), getCallOptions(), request); } @@ -798,6 +1044,7 @@ public com.google.showcase.v1beta1.EnumResponse verifyEnum(com.google.showcase.v /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Compliance. + * *
    * This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format
    * correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped
@@ -806,112 +1053,137 @@ public com.google.showcase.v1beta1.EnumResponse verifyEnum(com.google.showcase.v
    */
   public static final class ComplianceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private ComplianceFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private ComplianceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected ComplianceFutureStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected ComplianceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new ComplianceFutureStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * This method echoes the ComplianceData request. This method exercises
      * sending the entire request object in the REST body.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture repeatDataBody( - com.google.showcase.v1beta1.RepeatRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.RepeatResponse> + repeatDataBody(com.google.showcase.v1beta1.RepeatRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRepeatDataBodyMethod(), getCallOptions()), request); } /** + * + * *
      * This method echoes the ComplianceData request. This method exercises
      * sending the a message-type field in the REST body. Per AIP-127, only
      * top-level, non-repeated fields can be sent this way.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture repeatDataBodyInfo( - com.google.showcase.v1beta1.RepeatRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.RepeatResponse> + repeatDataBodyInfo(com.google.showcase.v1beta1.RepeatRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRepeatDataBodyInfoMethod(), getCallOptions()), request); } /** + * + * *
      * This method echoes the ComplianceData request. This method exercises
      * sending all request fields as query parameters.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture repeatDataQuery( - com.google.showcase.v1beta1.RepeatRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.RepeatResponse> + repeatDataQuery(com.google.showcase.v1beta1.RepeatRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRepeatDataQueryMethod(), getCallOptions()), request); } /** + * + * *
      * This method echoes the ComplianceData request. This method exercises
      * sending some parameters as "simple" path variables (i.e., of the form
      * "/bar/{foo}" rather than "/{foo=bar/*}"), and the rest as query parameters.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture repeatDataSimplePath( - com.google.showcase.v1beta1.RepeatRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.RepeatResponse> + repeatDataSimplePath(com.google.showcase.v1beta1.RepeatRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRepeatDataSimplePathMethod(), getCallOptions()), request); } /** + * + * *
      * Same as RepeatDataSimplePath, but with a path resource.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture repeatDataPathResource( - com.google.showcase.v1beta1.RepeatRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.RepeatResponse> + repeatDataPathResource(com.google.showcase.v1beta1.RepeatRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRepeatDataPathResourceMethod(), getCallOptions()), request); } /** + * + * *
      * Same as RepeatDataSimplePath, but with a trailing resource.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture repeatDataPathTrailingResource( - com.google.showcase.v1beta1.RepeatRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.RepeatResponse> + repeatDataPathTrailingResource(com.google.showcase.v1beta1.RepeatRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRepeatDataPathTrailingResourceMethod(), getCallOptions()), request); + getChannel().newCall(getRepeatDataPathTrailingResourceMethod(), getCallOptions()), + request); } /** + * + * *
      * This method echoes the ComplianceData request, using the HTTP PUT method.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture repeatDataBodyPut( - com.google.showcase.v1beta1.RepeatRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.RepeatResponse> + repeatDataBodyPut(com.google.showcase.v1beta1.RepeatRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRepeatDataBodyPutMethod(), getCallOptions()), request); } /** + * + * *
      * This method echoes the ComplianceData request, using the HTTP PATCH method.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture repeatDataBodyPatch( - com.google.showcase.v1beta1.RepeatRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.RepeatResponse> + repeatDataBodyPatch(com.google.showcase.v1beta1.RepeatRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRepeatDataBodyPatchMethod(), getCallOptions()), request); } /** + * + * *
      * This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the
      * .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the
@@ -920,13 +1192,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture getEnum(
-        com.google.showcase.v1beta1.EnumRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.showcase.v1beta1.EnumResponse>
+        getEnum(com.google.showcase.v1beta1.EnumRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getGetEnumMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * This method is used to verify that clients can round-trip enum values, which is particularly important for unknown enum values over REST. VerifyEnum()
      * verifies that its request, which is presumably the response that the client previously got to a GetEnum(), contains the correct data. If so, it responds
@@ -935,8 +1210,9 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture verifyEnum(
-        com.google.showcase.v1beta1.EnumResponse request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.showcase.v1beta1.EnumResponse>
+        verifyEnum(com.google.showcase.v1beta1.EnumResponse request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getVerifyEnumMethod(), getCallOptions()), request);
     }
@@ -953,11 +1229,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  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 AsyncService serviceImpl;
     private final int methodId;
 
@@ -971,44 +1247,64 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_REPEAT_DATA_BODY:
-          serviceImpl.repeatDataBody((com.google.showcase.v1beta1.RepeatRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.repeatDataBody(
+              (com.google.showcase.v1beta1.RepeatRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_REPEAT_DATA_BODY_INFO:
-          serviceImpl.repeatDataBodyInfo((com.google.showcase.v1beta1.RepeatRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.repeatDataBodyInfo(
+              (com.google.showcase.v1beta1.RepeatRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_REPEAT_DATA_QUERY:
-          serviceImpl.repeatDataQuery((com.google.showcase.v1beta1.RepeatRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.repeatDataQuery(
+              (com.google.showcase.v1beta1.RepeatRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_REPEAT_DATA_SIMPLE_PATH:
-          serviceImpl.repeatDataSimplePath((com.google.showcase.v1beta1.RepeatRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.repeatDataSimplePath(
+              (com.google.showcase.v1beta1.RepeatRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_REPEAT_DATA_PATH_RESOURCE:
-          serviceImpl.repeatDataPathResource((com.google.showcase.v1beta1.RepeatRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.repeatDataPathResource(
+              (com.google.showcase.v1beta1.RepeatRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_REPEAT_DATA_PATH_TRAILING_RESOURCE:
-          serviceImpl.repeatDataPathTrailingResource((com.google.showcase.v1beta1.RepeatRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.repeatDataPathTrailingResource(
+              (com.google.showcase.v1beta1.RepeatRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_REPEAT_DATA_BODY_PUT:
-          serviceImpl.repeatDataBodyPut((com.google.showcase.v1beta1.RepeatRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.repeatDataBodyPut(
+              (com.google.showcase.v1beta1.RepeatRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_REPEAT_DATA_BODY_PATCH:
-          serviceImpl.repeatDataBodyPatch((com.google.showcase.v1beta1.RepeatRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.repeatDataBodyPatch(
+              (com.google.showcase.v1beta1.RepeatRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_GET_ENUM:
-          serviceImpl.getEnum((com.google.showcase.v1beta1.EnumRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.getEnum(
+              (com.google.showcase.v1beta1.EnumRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_VERIFY_ENUM:
-          serviceImpl.verifyEnum((com.google.showcase.v1beta1.EnumResponse) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.verifyEnum(
+              (com.google.showcase.v1beta1.EnumResponse) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         default:
           throw new AssertionError();
@@ -1029,80 +1325,79 @@ public io.grpc.stub.StreamObserver invoke(
   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
     return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
         .addMethod(
-          getRepeatDataBodyMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.showcase.v1beta1.RepeatRequest,
-              com.google.showcase.v1beta1.RepeatResponse>(
-                service, METHODID_REPEAT_DATA_BODY)))
+            getRepeatDataBodyMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.showcase.v1beta1.RepeatRequest,
+                    com.google.showcase.v1beta1.RepeatResponse>(
+                    service, METHODID_REPEAT_DATA_BODY)))
         .addMethod(
-          getRepeatDataBodyInfoMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.showcase.v1beta1.RepeatRequest,
-              com.google.showcase.v1beta1.RepeatResponse>(
-                service, METHODID_REPEAT_DATA_BODY_INFO)))
+            getRepeatDataBodyInfoMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.showcase.v1beta1.RepeatRequest,
+                    com.google.showcase.v1beta1.RepeatResponse>(
+                    service, METHODID_REPEAT_DATA_BODY_INFO)))
         .addMethod(
-          getRepeatDataQueryMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.showcase.v1beta1.RepeatRequest,
-              com.google.showcase.v1beta1.RepeatResponse>(
-                service, METHODID_REPEAT_DATA_QUERY)))
+            getRepeatDataQueryMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.showcase.v1beta1.RepeatRequest,
+                    com.google.showcase.v1beta1.RepeatResponse>(
+                    service, METHODID_REPEAT_DATA_QUERY)))
         .addMethod(
-          getRepeatDataSimplePathMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.showcase.v1beta1.RepeatRequest,
-              com.google.showcase.v1beta1.RepeatResponse>(
-                service, METHODID_REPEAT_DATA_SIMPLE_PATH)))
+            getRepeatDataSimplePathMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.showcase.v1beta1.RepeatRequest,
+                    com.google.showcase.v1beta1.RepeatResponse>(
+                    service, METHODID_REPEAT_DATA_SIMPLE_PATH)))
         .addMethod(
-          getRepeatDataPathResourceMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.showcase.v1beta1.RepeatRequest,
-              com.google.showcase.v1beta1.RepeatResponse>(
-                service, METHODID_REPEAT_DATA_PATH_RESOURCE)))
+            getRepeatDataPathResourceMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.showcase.v1beta1.RepeatRequest,
+                    com.google.showcase.v1beta1.RepeatResponse>(
+                    service, METHODID_REPEAT_DATA_PATH_RESOURCE)))
         .addMethod(
-          getRepeatDataPathTrailingResourceMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.showcase.v1beta1.RepeatRequest,
-              com.google.showcase.v1beta1.RepeatResponse>(
-                service, METHODID_REPEAT_DATA_PATH_TRAILING_RESOURCE)))
+            getRepeatDataPathTrailingResourceMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.showcase.v1beta1.RepeatRequest,
+                    com.google.showcase.v1beta1.RepeatResponse>(
+                    service, METHODID_REPEAT_DATA_PATH_TRAILING_RESOURCE)))
         .addMethod(
-          getRepeatDataBodyPutMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.showcase.v1beta1.RepeatRequest,
-              com.google.showcase.v1beta1.RepeatResponse>(
-                service, METHODID_REPEAT_DATA_BODY_PUT)))
+            getRepeatDataBodyPutMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.showcase.v1beta1.RepeatRequest,
+                    com.google.showcase.v1beta1.RepeatResponse>(
+                    service, METHODID_REPEAT_DATA_BODY_PUT)))
         .addMethod(
-          getRepeatDataBodyPatchMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.showcase.v1beta1.RepeatRequest,
-              com.google.showcase.v1beta1.RepeatResponse>(
-                service, METHODID_REPEAT_DATA_BODY_PATCH)))
+            getRepeatDataBodyPatchMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.showcase.v1beta1.RepeatRequest,
+                    com.google.showcase.v1beta1.RepeatResponse>(
+                    service, METHODID_REPEAT_DATA_BODY_PATCH)))
         .addMethod(
-          getGetEnumMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.showcase.v1beta1.EnumRequest,
-              com.google.showcase.v1beta1.EnumResponse>(
-                service, METHODID_GET_ENUM)))
+            getGetEnumMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.showcase.v1beta1.EnumRequest,
+                    com.google.showcase.v1beta1.EnumResponse>(service, METHODID_GET_ENUM)))
         .addMethod(
-          getVerifyEnumMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.showcase.v1beta1.EnumResponse,
-              com.google.showcase.v1beta1.EnumResponse>(
-                service, METHODID_VERIFY_ENUM)))
+            getVerifyEnumMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.showcase.v1beta1.EnumResponse,
+                    com.google.showcase.v1beta1.EnumResponse>(service, METHODID_VERIFY_ENUM)))
         .build();
   }
 
-  private static abstract class ComplianceBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class ComplianceBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     ComplianceBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -1144,19 +1439,21 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (ComplianceGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new ComplianceFileDescriptorSupplier())
-              .addMethod(getRepeatDataBodyMethod())
-              .addMethod(getRepeatDataBodyInfoMethod())
-              .addMethod(getRepeatDataQueryMethod())
-              .addMethod(getRepeatDataSimplePathMethod())
-              .addMethod(getRepeatDataPathResourceMethod())
-              .addMethod(getRepeatDataPathTrailingResourceMethod())
-              .addMethod(getRepeatDataBodyPutMethod())
-              .addMethod(getRepeatDataBodyPatchMethod())
-              .addMethod(getGetEnumMethod())
-              .addMethod(getVerifyEnumMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new ComplianceFileDescriptorSupplier())
+                      .addMethod(getRepeatDataBodyMethod())
+                      .addMethod(getRepeatDataBodyInfoMethod())
+                      .addMethod(getRepeatDataQueryMethod())
+                      .addMethod(getRepeatDataSimplePathMethod())
+                      .addMethod(getRepeatDataPathResourceMethod())
+                      .addMethod(getRepeatDataPathTrailingResourceMethod())
+                      .addMethod(getRepeatDataBodyPutMethod())
+                      .addMethod(getRepeatDataBodyPatchMethod())
+                      .addMethod(getGetEnumMethod())
+                      .addMethod(getVerifyEnumMethod())
+                      .build();
         }
       }
     }
diff --git a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java b/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java
similarity index 50%
rename from showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java
rename to java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java
index 907089a5e7..c3baf39181 100644
--- a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java
+++ b/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java
@@ -1,8 +1,25 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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.showcase.v1beta1;
 
 import static io.grpc.MethodDescriptor.generateFullMethodName;
 
 /**
+ *
+ *
  * 
  * This service is used showcase the four main types of rpcs - unary, server
  * side streaming, client side streaming, and bidirectional streaming. This
@@ -24,361 +41,476 @@ private EchoGrpc() {}
   public static final java.lang.String SERVICE_NAME = "google.showcase.v1beta1.Echo";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getEchoMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.EchoRequest, com.google.showcase.v1beta1.EchoResponse>
+      getEchoMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Echo",
       requestType = com.google.showcase.v1beta1.EchoRequest.class,
       responseType = com.google.showcase.v1beta1.EchoResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getEchoMethod() {
-    io.grpc.MethodDescriptor getEchoMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.EchoRequest, com.google.showcase.v1beta1.EchoResponse>
+      getEchoMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.EchoRequest, com.google.showcase.v1beta1.EchoResponse>
+        getEchoMethod;
     if ((getEchoMethod = EchoGrpc.getEchoMethod) == null) {
       synchronized (EchoGrpc.class) {
         if ((getEchoMethod = EchoGrpc.getEchoMethod) == null) {
-          EchoGrpc.getEchoMethod = getEchoMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Echo"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.EchoRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Echo"))
-              .build();
+          EchoGrpc.getEchoMethod =
+              getEchoMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Echo"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.EchoRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Echo"))
+                      .build();
         }
       }
     }
     return getEchoMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getEchoErrorDetailsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.EchoErrorDetailsRequest,
+          com.google.showcase.v1beta1.EchoErrorDetailsResponse>
+      getEchoErrorDetailsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "EchoErrorDetails",
       requestType = com.google.showcase.v1beta1.EchoErrorDetailsRequest.class,
       responseType = com.google.showcase.v1beta1.EchoErrorDetailsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getEchoErrorDetailsMethod() {
-    io.grpc.MethodDescriptor getEchoErrorDetailsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.EchoErrorDetailsRequest,
+          com.google.showcase.v1beta1.EchoErrorDetailsResponse>
+      getEchoErrorDetailsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.EchoErrorDetailsRequest,
+            com.google.showcase.v1beta1.EchoErrorDetailsResponse>
+        getEchoErrorDetailsMethod;
     if ((getEchoErrorDetailsMethod = EchoGrpc.getEchoErrorDetailsMethod) == null) {
       synchronized (EchoGrpc.class) {
         if ((getEchoErrorDetailsMethod = EchoGrpc.getEchoErrorDetailsMethod) == null) {
-          EchoGrpc.getEchoErrorDetailsMethod = getEchoErrorDetailsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EchoErrorDetails"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.EchoErrorDetailsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.EchoErrorDetailsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new EchoMethodDescriptorSupplier("EchoErrorDetails"))
-              .build();
+          EchoGrpc.getEchoErrorDetailsMethod =
+              getEchoErrorDetailsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EchoErrorDetails"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.EchoErrorDetailsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.EchoErrorDetailsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(new EchoMethodDescriptorSupplier("EchoErrorDetails"))
+                      .build();
         }
       }
     }
     return getEchoErrorDetailsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getExpandMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.ExpandRequest, com.google.showcase.v1beta1.EchoResponse>
+      getExpandMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Expand",
       requestType = com.google.showcase.v1beta1.ExpandRequest.class,
       responseType = com.google.showcase.v1beta1.EchoResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
-  public static io.grpc.MethodDescriptor getExpandMethod() {
-    io.grpc.MethodDescriptor getExpandMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.ExpandRequest, com.google.showcase.v1beta1.EchoResponse>
+      getExpandMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.ExpandRequest, com.google.showcase.v1beta1.EchoResponse>
+        getExpandMethod;
     if ((getExpandMethod = EchoGrpc.getExpandMethod) == null) {
       synchronized (EchoGrpc.class) {
         if ((getExpandMethod = EchoGrpc.getExpandMethod) == null) {
-          EchoGrpc.getExpandMethod = getExpandMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Expand"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.ExpandRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Expand"))
-              .build();
+          EchoGrpc.getExpandMethod =
+              getExpandMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Expand"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.ExpandRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Expand"))
+                      .build();
         }
       }
     }
     return getExpandMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getCollectMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.EchoRequest, com.google.showcase.v1beta1.EchoResponse>
+      getCollectMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Collect",
       requestType = com.google.showcase.v1beta1.EchoRequest.class,
       responseType = com.google.showcase.v1beta1.EchoResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
-  public static io.grpc.MethodDescriptor getCollectMethod() {
-    io.grpc.MethodDescriptor getCollectMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.EchoRequest, com.google.showcase.v1beta1.EchoResponse>
+      getCollectMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.EchoRequest, com.google.showcase.v1beta1.EchoResponse>
+        getCollectMethod;
     if ((getCollectMethod = EchoGrpc.getCollectMethod) == null) {
       synchronized (EchoGrpc.class) {
         if ((getCollectMethod = EchoGrpc.getCollectMethod) == null) {
-          EchoGrpc.getCollectMethod = getCollectMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Collect"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.EchoRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Collect"))
-              .build();
+          EchoGrpc.getCollectMethod =
+              getCollectMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Collect"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.EchoRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Collect"))
+                      .build();
         }
       }
     }
     return getCollectMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getChatMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.EchoRequest, com.google.showcase.v1beta1.EchoResponse>
+      getChatMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Chat",
       requestType = com.google.showcase.v1beta1.EchoRequest.class,
       responseType = com.google.showcase.v1beta1.EchoResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-  public static io.grpc.MethodDescriptor getChatMethod() {
-    io.grpc.MethodDescriptor getChatMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.EchoRequest, com.google.showcase.v1beta1.EchoResponse>
+      getChatMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.EchoRequest, com.google.showcase.v1beta1.EchoResponse>
+        getChatMethod;
     if ((getChatMethod = EchoGrpc.getChatMethod) == null) {
       synchronized (EchoGrpc.class) {
         if ((getChatMethod = EchoGrpc.getChatMethod) == null) {
-          EchoGrpc.getChatMethod = getChatMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Chat"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.EchoRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Chat"))
-              .build();
+          EchoGrpc.getChatMethod =
+              getChatMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Chat"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.EchoRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Chat"))
+                      .build();
         }
       }
     }
     return getChatMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getPagedExpandMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.PagedExpandRequest,
+          com.google.showcase.v1beta1.PagedExpandResponse>
+      getPagedExpandMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "PagedExpand",
       requestType = com.google.showcase.v1beta1.PagedExpandRequest.class,
       responseType = com.google.showcase.v1beta1.PagedExpandResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getPagedExpandMethod() {
-    io.grpc.MethodDescriptor getPagedExpandMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.PagedExpandRequest,
+          com.google.showcase.v1beta1.PagedExpandResponse>
+      getPagedExpandMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.PagedExpandRequest,
+            com.google.showcase.v1beta1.PagedExpandResponse>
+        getPagedExpandMethod;
     if ((getPagedExpandMethod = EchoGrpc.getPagedExpandMethod) == null) {
       synchronized (EchoGrpc.class) {
         if ((getPagedExpandMethod = EchoGrpc.getPagedExpandMethod) == null) {
-          EchoGrpc.getPagedExpandMethod = getPagedExpandMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PagedExpand"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.PagedExpandRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.PagedExpandResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new EchoMethodDescriptorSupplier("PagedExpand"))
-              .build();
+          EchoGrpc.getPagedExpandMethod =
+              getPagedExpandMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PagedExpand"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.PagedExpandRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.PagedExpandResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new EchoMethodDescriptorSupplier("PagedExpand"))
+                      .build();
         }
       }
     }
     return getPagedExpandMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getPagedExpandLegacyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.PagedExpandLegacyRequest,
+          com.google.showcase.v1beta1.PagedExpandResponse>
+      getPagedExpandLegacyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "PagedExpandLegacy",
       requestType = com.google.showcase.v1beta1.PagedExpandLegacyRequest.class,
       responseType = com.google.showcase.v1beta1.PagedExpandResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getPagedExpandLegacyMethod() {
-    io.grpc.MethodDescriptor getPagedExpandLegacyMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.PagedExpandLegacyRequest,
+          com.google.showcase.v1beta1.PagedExpandResponse>
+      getPagedExpandLegacyMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.PagedExpandLegacyRequest,
+            com.google.showcase.v1beta1.PagedExpandResponse>
+        getPagedExpandLegacyMethod;
     if ((getPagedExpandLegacyMethod = EchoGrpc.getPagedExpandLegacyMethod) == null) {
       synchronized (EchoGrpc.class) {
         if ((getPagedExpandLegacyMethod = EchoGrpc.getPagedExpandLegacyMethod) == null) {
-          EchoGrpc.getPagedExpandLegacyMethod = getPagedExpandLegacyMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PagedExpandLegacy"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.PagedExpandLegacyRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.PagedExpandResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new EchoMethodDescriptorSupplier("PagedExpandLegacy"))
-              .build();
+          EchoGrpc.getPagedExpandLegacyMethod =
+              getPagedExpandLegacyMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PagedExpandLegacy"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.PagedExpandLegacyRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.PagedExpandResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new EchoMethodDescriptorSupplier("PagedExpandLegacy"))
+                      .build();
         }
       }
     }
     return getPagedExpandLegacyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getPagedExpandLegacyMappedMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.PagedExpandRequest,
+          com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse>
+      getPagedExpandLegacyMappedMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "PagedExpandLegacyMapped",
       requestType = com.google.showcase.v1beta1.PagedExpandRequest.class,
       responseType = com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getPagedExpandLegacyMappedMethod() {
-    io.grpc.MethodDescriptor getPagedExpandLegacyMappedMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.PagedExpandRequest,
+          com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse>
+      getPagedExpandLegacyMappedMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.PagedExpandRequest,
+            com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse>
+        getPagedExpandLegacyMappedMethod;
     if ((getPagedExpandLegacyMappedMethod = EchoGrpc.getPagedExpandLegacyMappedMethod) == null) {
       synchronized (EchoGrpc.class) {
-        if ((getPagedExpandLegacyMappedMethod = EchoGrpc.getPagedExpandLegacyMappedMethod) == null) {
-          EchoGrpc.getPagedExpandLegacyMappedMethod = getPagedExpandLegacyMappedMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PagedExpandLegacyMapped"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.PagedExpandRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new EchoMethodDescriptorSupplier("PagedExpandLegacyMapped"))
-              .build();
+        if ((getPagedExpandLegacyMappedMethod = EchoGrpc.getPagedExpandLegacyMappedMethod)
+            == null) {
+          EchoGrpc.getPagedExpandLegacyMappedMethod =
+              getPagedExpandLegacyMappedMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "PagedExpandLegacyMapped"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.PagedExpandRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new EchoMethodDescriptorSupplier("PagedExpandLegacyMapped"))
+                      .build();
         }
       }
     }
     return getPagedExpandLegacyMappedMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getWaitMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.WaitRequest, com.google.longrunning.Operation>
+      getWaitMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Wait",
       requestType = com.google.showcase.v1beta1.WaitRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getWaitMethod() {
-    io.grpc.MethodDescriptor getWaitMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.WaitRequest, com.google.longrunning.Operation>
+      getWaitMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.WaitRequest, com.google.longrunning.Operation>
+        getWaitMethod;
     if ((getWaitMethod = EchoGrpc.getWaitMethod) == null) {
       synchronized (EchoGrpc.class) {
         if ((getWaitMethod = EchoGrpc.getWaitMethod) == null) {
-          EchoGrpc.getWaitMethod = getWaitMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Wait"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.WaitRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Wait"))
-              .build();
+          EchoGrpc.getWaitMethod =
+              getWaitMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Wait"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.WaitRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Wait"))
+                      .build();
         }
       }
     }
     return getWaitMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getBlockMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.BlockRequest, com.google.showcase.v1beta1.BlockResponse>
+      getBlockMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Block",
       requestType = com.google.showcase.v1beta1.BlockRequest.class,
       responseType = com.google.showcase.v1beta1.BlockResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getBlockMethod() {
-    io.grpc.MethodDescriptor getBlockMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.showcase.v1beta1.BlockRequest, com.google.showcase.v1beta1.BlockResponse>
+      getBlockMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.showcase.v1beta1.BlockRequest, com.google.showcase.v1beta1.BlockResponse>
+        getBlockMethod;
     if ((getBlockMethod = EchoGrpc.getBlockMethod) == null) {
       synchronized (EchoGrpc.class) {
         if ((getBlockMethod = EchoGrpc.getBlockMethod) == null) {
-          EchoGrpc.getBlockMethod = getBlockMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Block"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.BlockRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.showcase.v1beta1.BlockResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Block"))
-              .build();
+          EchoGrpc.getBlockMethod =
+              getBlockMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Block"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.BlockRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.showcase.v1beta1.BlockResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Block"))
+                      .build();
         }
       }
     }
     return getBlockMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static EchoStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public EchoStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new EchoStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public EchoStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new EchoStub(channel, callOptions);
+          }
+        };
     return EchoStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static EchoBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static EchoBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public EchoBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new EchoBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public EchoBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new EchoBlockingStub(channel, callOptions);
+          }
+        };
     return EchoBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static EchoFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static EchoFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public EchoFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new EchoFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public EchoFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new EchoFutureStub(channel, callOptions);
+          }
+        };
     return EchoFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * This service is used showcase the four main types of rpcs - unary, server
    * side streaming, client side streaming, and bidirectional streaming. This
@@ -392,16 +524,21 @@ public EchoFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callO
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * This method simply echoes the request. This method showcases unary RPCs.
      * 
*/ - default void echo(com.google.showcase.v1beta1.EchoRequest request, + default void echo( + com.google.showcase.v1beta1.EchoRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEchoMethod(), responseObserver); } /** + * + * *
      * This method returns error details in a repeated "google.protobuf.Any"
      * field. This method showcases handling errors thus encoded, particularly
@@ -411,23 +548,31 @@ default void echo(com.google.showcase.v1beta1.EchoRequest request,
      * google/rpc/error_details.proto.
      * 
*/ - default void echoErrorDetails(com.google.showcase.v1beta1.EchoErrorDetailsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEchoErrorDetailsMethod(), responseObserver); + default void echoErrorDetails( + com.google.showcase.v1beta1.EchoErrorDetailsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getEchoErrorDetailsMethod(), responseObserver); } /** + * + * *
      * This method splits the given content into words and will pass each word back
      * through the stream. This method showcases server-side streaming RPCs.
      * 
*/ - default void expand(com.google.showcase.v1beta1.ExpandRequest request, + default void expand( + com.google.showcase.v1beta1.ExpandRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExpandMethod(), responseObserver); } /** + * + * *
      * This method will collect the words given to it. When the stream is closed
      * by the client, this method will return the a concatenation of the strings
@@ -436,10 +581,13 @@ default void expand(com.google.showcase.v1beta1.ExpandRequest request,
      */
     default io.grpc.stub.StreamObserver collect(
         io.grpc.stub.StreamObserver responseObserver) {
-      return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getCollectMethod(), responseObserver);
+      return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(
+          getCollectMethod(), responseObserver);
     }
 
     /**
+     *
+     *
      * 
      * This method, upon receiving a request on the stream, will pass the same
      * content back on the stream. This method showcases bidirectional
@@ -448,33 +596,46 @@ default io.grpc.stub.StreamObserver col
      */
     default io.grpc.stub.StreamObserver chat(
         io.grpc.stub.StreamObserver responseObserver) {
-      return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getChatMethod(), responseObserver);
+      return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(
+          getChatMethod(), responseObserver);
     }
 
     /**
+     *
+     *
      * 
      * This is similar to the Expand method but instead of returning a stream of
      * expanded words, this method returns a paged list of expanded words.
      * 
*/ - default void pagedExpand(com.google.showcase.v1beta1.PagedExpandRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPagedExpandMethod(), responseObserver); + default void pagedExpand( + com.google.showcase.v1beta1.PagedExpandRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPagedExpandMethod(), responseObserver); } /** + * + * *
      * This is similar to the PagedExpand except that it uses
      * max_results instead of page_size, as some legacy APIs still
      * do. New APIs should NOT use this pattern.
      * 
*/ - default void pagedExpandLegacy(com.google.showcase.v1beta1.PagedExpandLegacyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPagedExpandLegacyMethod(), responseObserver); + default void pagedExpandLegacy( + com.google.showcase.v1beta1.PagedExpandLegacyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPagedExpandLegacyMethod(), responseObserver); } /** + * + * *
      * This method returns a map containing lists of words that appear in the input, keyed by their
      * initial character. The only words returned are the ones included in the current page,
@@ -483,30 +644,39 @@ default void pagedExpandLegacy(com.google.showcase.v1beta1.PagedExpandLegacyRequ
      * APIs. New APIs should NOT use this pattern.
      * 
*/ - default void pagedExpandLegacyMapped(com.google.showcase.v1beta1.PagedExpandRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPagedExpandLegacyMappedMethod(), responseObserver); + default void pagedExpandLegacyMapped( + com.google.showcase.v1beta1.PagedExpandRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPagedExpandLegacyMappedMethod(), responseObserver); } /** + * + * *
      * This method will wait for the requested amount of time and then return.
      * This method showcases how a client handles a request timeout.
      * 
*/ - default void wait(com.google.showcase.v1beta1.WaitRequest request, + default void wait( + com.google.showcase.v1beta1.WaitRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWaitMethod(), responseObserver); } /** + * + * *
      * This method will block (wait) for the requested amount of time
      * and then return the response or error.
      * This method showcases how a client handles delays or retries.
      * 
*/ - default void block(com.google.showcase.v1beta1.BlockRequest request, + default void block( + com.google.showcase.v1beta1.BlockRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBlockMethod(), responseObserver); } @@ -514,6 +684,7 @@ default void block(com.google.showcase.v1beta1.BlockRequest request, /** * Base class for the server implementation of the service Echo. + * *
    * This service is used showcase the four main types of rpcs - unary, server
    * side streaming, client side streaming, and bidirectional streaming. This
@@ -524,16 +695,17 @@ default void block(com.google.showcase.v1beta1.BlockRequest request,
    * echoed in the response headers.
    * 
*/ - public static abstract class EchoImplBase - implements io.grpc.BindableService, AsyncService { + public abstract static class EchoImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return EchoGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Echo. + * *
    * This service is used showcase the four main types of rpcs - unary, server
    * side streaming, client side streaming, and bidirectional streaming. This
@@ -544,31 +716,33 @@ public static abstract class EchoImplBase
    * echoed in the response headers.
    * 
*/ - public static final class EchoStub - extends io.grpc.stub.AbstractAsyncStub { - private EchoStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class EchoStub extends io.grpc.stub.AbstractAsyncStub { + private EchoStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected EchoStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected EchoStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new EchoStub(channel, callOptions); } /** + * + * *
      * This method simply echoes the request. This method showcases unary RPCs.
      * 
*/ - public void echo(com.google.showcase.v1beta1.EchoRequest request, + public void echo( + com.google.showcase.v1beta1.EchoRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getEchoMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * This method returns error details in a repeated "google.protobuf.Any"
      * field. This method showcases handling errors thus encoded, particularly
@@ -578,25 +752,34 @@ public void echo(com.google.showcase.v1beta1.EchoRequest request,
      * google/rpc/error_details.proto.
      * 
*/ - public void echoErrorDetails(com.google.showcase.v1beta1.EchoErrorDetailsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void echoErrorDetails( + com.google.showcase.v1beta1.EchoErrorDetailsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getEchoErrorDetailsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getEchoErrorDetailsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * This method splits the given content into words and will pass each word back
      * through the stream. This method showcases server-side streaming RPCs.
      * 
*/ - public void expand(com.google.showcase.v1beta1.ExpandRequest request, + public void expand( + com.google.showcase.v1beta1.ExpandRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getExpandMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * This method will collect the words given to it. When the stream is closed
      * by the client, this method will return the a concatenation of the strings
@@ -610,6 +793,8 @@ public io.grpc.stub.StreamObserver coll
     }
 
     /**
+     *
+     *
      * 
      * This method, upon receiving a request on the stream, will pass the same
      * content back on the stream. This method showcases bidirectional
@@ -623,31 +808,45 @@ public io.grpc.stub.StreamObserver chat
     }
 
     /**
+     *
+     *
      * 
      * This is similar to the Expand method but instead of returning a stream of
      * expanded words, this method returns a paged list of expanded words.
      * 
*/ - public void pagedExpand(com.google.showcase.v1beta1.PagedExpandRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void pagedExpand( + com.google.showcase.v1beta1.PagedExpandRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPagedExpandMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getPagedExpandMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * This is similar to the PagedExpand except that it uses
      * max_results instead of page_size, as some legacy APIs still
      * do. New APIs should NOT use this pattern.
      * 
*/ - public void pagedExpandLegacy(com.google.showcase.v1beta1.PagedExpandLegacyRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void pagedExpandLegacy( + com.google.showcase.v1beta1.PagedExpandLegacyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPagedExpandLegacyMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getPagedExpandLegacyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * This method returns a map containing lists of words that appear in the input, keyed by their
      * initial character. The only words returned are the ones included in the current page,
@@ -656,32 +855,42 @@ public void pagedExpandLegacy(com.google.showcase.v1beta1.PagedExpandLegacyReque
      * APIs. New APIs should NOT use this pattern.
      * 
*/ - public void pagedExpandLegacyMapped(com.google.showcase.v1beta1.PagedExpandRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void pagedExpandLegacyMapped( + com.google.showcase.v1beta1.PagedExpandRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPagedExpandLegacyMappedMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getPagedExpandLegacyMappedMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * This method will wait for the requested amount of time and then return.
      * This method showcases how a client handles a request timeout.
      * 
*/ - public void wait(com.google.showcase.v1beta1.WaitRequest request, + public void wait( + com.google.showcase.v1beta1.WaitRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getWaitMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * This method will block (wait) for the requested amount of time
      * and then return the response or error.
      * This method showcases how a client handles delays or retries.
      * 
*/ - public void block(com.google.showcase.v1beta1.BlockRequest request, + public void block( + com.google.showcase.v1beta1.BlockRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBlockMethod(), getCallOptions()), request, responseObserver); @@ -690,6 +899,7 @@ public void block(com.google.showcase.v1beta1.BlockRequest request, /** * A stub to allow clients to do synchronous rpc calls to service Echo. + * *
    * This service is used showcase the four main types of rpcs - unary, server
    * side streaming, client side streaming, and bidirectional streaming. This
@@ -702,28 +912,31 @@ public void block(com.google.showcase.v1beta1.BlockRequest request,
    */
   public static final class EchoBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private EchoBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private EchoBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected EchoBlockingStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected EchoBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new EchoBlockingStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * This method simply echoes the request. This method showcases unary RPCs.
      * 
*/ - public com.google.showcase.v1beta1.EchoResponse echo(com.google.showcase.v1beta1.EchoRequest request) { + public com.google.showcase.v1beta1.EchoResponse echo( + com.google.showcase.v1beta1.EchoRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getEchoMethod(), getCallOptions(), request); } /** + * + * *
      * This method returns error details in a repeated "google.protobuf.Any"
      * field. This method showcases handling errors thus encoded, particularly
@@ -733,12 +946,15 @@ public com.google.showcase.v1beta1.EchoResponse echo(com.google.showcase.v1beta1
      * google/rpc/error_details.proto.
      * 
*/ - public com.google.showcase.v1beta1.EchoErrorDetailsResponse echoErrorDetails(com.google.showcase.v1beta1.EchoErrorDetailsRequest request) { + public com.google.showcase.v1beta1.EchoErrorDetailsResponse echoErrorDetails( + com.google.showcase.v1beta1.EchoErrorDetailsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getEchoErrorDetailsMethod(), getCallOptions(), request); } /** + * + * *
      * This method splits the given content into words and will pass each word back
      * through the stream. This method showcases server-side streaming RPCs.
@@ -751,29 +967,37 @@ public java.util.Iterator expand(
     }
 
     /**
+     *
+     *
      * 
      * This is similar to the Expand method but instead of returning a stream of
      * expanded words, this method returns a paged list of expanded words.
      * 
*/ - public com.google.showcase.v1beta1.PagedExpandResponse pagedExpand(com.google.showcase.v1beta1.PagedExpandRequest request) { + public com.google.showcase.v1beta1.PagedExpandResponse pagedExpand( + com.google.showcase.v1beta1.PagedExpandRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPagedExpandMethod(), getCallOptions(), request); } /** + * + * *
      * This is similar to the PagedExpand except that it uses
      * max_results instead of page_size, as some legacy APIs still
      * do. New APIs should NOT use this pattern.
      * 
*/ - public com.google.showcase.v1beta1.PagedExpandResponse pagedExpandLegacy(com.google.showcase.v1beta1.PagedExpandLegacyRequest request) { + public com.google.showcase.v1beta1.PagedExpandResponse pagedExpandLegacy( + com.google.showcase.v1beta1.PagedExpandLegacyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPagedExpandLegacyMethod(), getCallOptions(), request); } /** + * + * *
      * This method returns a map containing lists of words that appear in the input, keyed by their
      * initial character. The only words returned are the ones included in the current page,
@@ -782,12 +1006,15 @@ public com.google.showcase.v1beta1.PagedExpandResponse pagedExpandLegacy(com.goo
      * APIs. New APIs should NOT use this pattern.
      * 
*/ - public com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse pagedExpandLegacyMapped(com.google.showcase.v1beta1.PagedExpandRequest request) { + public com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse pagedExpandLegacyMapped( + com.google.showcase.v1beta1.PagedExpandRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPagedExpandLegacyMappedMethod(), getCallOptions(), request); } /** + * + * *
      * This method will wait for the requested amount of time and then return.
      * This method showcases how a client handles a request timeout.
@@ -799,13 +1026,16 @@ public com.google.longrunning.Operation wait(com.google.showcase.v1beta1.WaitReq
     }
 
     /**
+     *
+     *
      * 
      * This method will block (wait) for the requested amount of time
      * and then return the response or error.
      * This method showcases how a client handles delays or retries.
      * 
*/ - public com.google.showcase.v1beta1.BlockResponse block(com.google.showcase.v1beta1.BlockRequest request) { + public com.google.showcase.v1beta1.BlockResponse block( + com.google.showcase.v1beta1.BlockRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBlockMethod(), getCallOptions(), request); } @@ -813,6 +1043,7 @@ public com.google.showcase.v1beta1.BlockResponse block(com.google.showcase.v1bet /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Echo. + * *
    * This service is used showcase the four main types of rpcs - unary, server
    * side streaming, client side streaming, and bidirectional streaming. This
@@ -823,31 +1054,33 @@ public com.google.showcase.v1beta1.BlockResponse block(com.google.showcase.v1bet
    * echoed in the response headers.
    * 
*/ - public static final class EchoFutureStub - extends io.grpc.stub.AbstractFutureStub { - private EchoFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class EchoFutureStub extends io.grpc.stub.AbstractFutureStub { + private EchoFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected EchoFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected EchoFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new EchoFutureStub(channel, callOptions); } /** + * + * *
      * This method simply echoes the request. This method showcases unary RPCs.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture echo( - com.google.showcase.v1beta1.EchoRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.EchoResponse> + echo(com.google.showcase.v1beta1.EchoRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getEchoMethod(), getCallOptions()), request); } /** + * + * *
      * This method returns error details in a repeated "google.protobuf.Any"
      * field. This method showcases handling errors thus encoded, particularly
@@ -857,38 +1090,47 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture echoErrorDetails(
-        com.google.showcase.v1beta1.EchoErrorDetailsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.showcase.v1beta1.EchoErrorDetailsResponse>
+        echoErrorDetails(com.google.showcase.v1beta1.EchoErrorDetailsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getEchoErrorDetailsMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * This is similar to the Expand method but instead of returning a stream of
      * expanded words, this method returns a paged list of expanded words.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture pagedExpand( - com.google.showcase.v1beta1.PagedExpandRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.PagedExpandResponse> + pagedExpand(com.google.showcase.v1beta1.PagedExpandRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPagedExpandMethod(), getCallOptions()), request); } /** + * + * *
      * This is similar to the PagedExpand except that it uses
      * max_results instead of page_size, as some legacy APIs still
      * do. New APIs should NOT use this pattern.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture pagedExpandLegacy( - com.google.showcase.v1beta1.PagedExpandLegacyRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.PagedExpandResponse> + pagedExpandLegacy(com.google.showcase.v1beta1.PagedExpandLegacyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPagedExpandLegacyMethod(), getCallOptions()), request); } /** + * + * *
      * This method returns a map containing lists of words that appear in the input, keyed by their
      * initial character. The only words returned are the ones included in the current page,
@@ -897,33 +1139,39 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture pagedExpandLegacyMapped(
-        com.google.showcase.v1beta1.PagedExpandRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse>
+        pagedExpandLegacyMapped(com.google.showcase.v1beta1.PagedExpandRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getPagedExpandLegacyMappedMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * This method will wait for the requested amount of time and then return.
      * This method showcases how a client handles a request timeout.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture wait( - com.google.showcase.v1beta1.WaitRequest request) { + public com.google.common.util.concurrent.ListenableFuture + wait(com.google.showcase.v1beta1.WaitRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getWaitMethod(), getCallOptions()), request); } /** + * + * *
      * This method will block (wait) for the requested amount of time
      * and then return the response or error.
      * This method showcases how a client handles delays or retries.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture block( - com.google.showcase.v1beta1.BlockRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.BlockResponse> + block(com.google.showcase.v1beta1.BlockRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBlockMethod(), getCallOptions()), request); } @@ -940,11 +1188,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + 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 AsyncService serviceImpl; private final int methodId; @@ -958,36 +1206,52 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_ECHO: - serviceImpl.echo((com.google.showcase.v1beta1.EchoRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.echo( + (com.google.showcase.v1beta1.EchoRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_ECHO_ERROR_DETAILS: - serviceImpl.echoErrorDetails((com.google.showcase.v1beta1.EchoErrorDetailsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.echoErrorDetails( + (com.google.showcase.v1beta1.EchoErrorDetailsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_EXPAND: - serviceImpl.expand((com.google.showcase.v1beta1.ExpandRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.expand( + (com.google.showcase.v1beta1.ExpandRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_PAGED_EXPAND: - serviceImpl.pagedExpand((com.google.showcase.v1beta1.PagedExpandRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.pagedExpand( + (com.google.showcase.v1beta1.PagedExpandRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_PAGED_EXPAND_LEGACY: - serviceImpl.pagedExpandLegacy((com.google.showcase.v1beta1.PagedExpandLegacyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.pagedExpandLegacy( + (com.google.showcase.v1beta1.PagedExpandLegacyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_PAGED_EXPAND_LEGACY_MAPPED: - serviceImpl.pagedExpandLegacyMapped((com.google.showcase.v1beta1.PagedExpandRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.pagedExpandLegacyMapped( + (com.google.showcase.v1beta1.PagedExpandRequest) request, + (io.grpc.stub.StreamObserver< + com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse>) + responseObserver); break; case METHODID_WAIT: - serviceImpl.wait((com.google.showcase.v1beta1.WaitRequest) request, + serviceImpl.wait( + (com.google.showcase.v1beta1.WaitRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BLOCK: - serviceImpl.block((com.google.showcase.v1beta1.BlockRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.block( + (com.google.showcase.v1beta1.BlockRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; default: throw new AssertionError(); @@ -1000,11 +1264,15 @@ public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_COLLECT: - return (io.grpc.stub.StreamObserver) serviceImpl.collect( - (io.grpc.stub.StreamObserver) responseObserver); + return (io.grpc.stub.StreamObserver) + serviceImpl.collect( + (io.grpc.stub.StreamObserver) + responseObserver); case METHODID_CHAT: - return (io.grpc.stub.StreamObserver) serviceImpl.chat( - (io.grpc.stub.StreamObserver) responseObserver); + return (io.grpc.stub.StreamObserver) + serviceImpl.chat( + (io.grpc.stub.StreamObserver) + responseObserver); default: throw new AssertionError(); } @@ -1014,80 +1282,75 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getEchoMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.EchoRequest, - com.google.showcase.v1beta1.EchoResponse>( - service, METHODID_ECHO))) + getEchoMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.EchoRequest, + com.google.showcase.v1beta1.EchoResponse>(service, METHODID_ECHO))) .addMethod( - getEchoErrorDetailsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.EchoErrorDetailsRequest, - com.google.showcase.v1beta1.EchoErrorDetailsResponse>( - service, METHODID_ECHO_ERROR_DETAILS))) + getEchoErrorDetailsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.EchoErrorDetailsRequest, + com.google.showcase.v1beta1.EchoErrorDetailsResponse>( + service, METHODID_ECHO_ERROR_DETAILS))) .addMethod( - getExpandMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.showcase.v1beta1.ExpandRequest, - com.google.showcase.v1beta1.EchoResponse>( - service, METHODID_EXPAND))) + getExpandMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.showcase.v1beta1.ExpandRequest, + com.google.showcase.v1beta1.EchoResponse>(service, METHODID_EXPAND))) .addMethod( - getCollectMethod(), - io.grpc.stub.ServerCalls.asyncClientStreamingCall( - new MethodHandlers< - com.google.showcase.v1beta1.EchoRequest, - com.google.showcase.v1beta1.EchoResponse>( - service, METHODID_COLLECT))) + getCollectMethod(), + io.grpc.stub.ServerCalls.asyncClientStreamingCall( + new MethodHandlers< + com.google.showcase.v1beta1.EchoRequest, + com.google.showcase.v1beta1.EchoResponse>(service, METHODID_COLLECT))) .addMethod( - getChatMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.showcase.v1beta1.EchoRequest, - com.google.showcase.v1beta1.EchoResponse>( - service, METHODID_CHAT))) + getChatMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.showcase.v1beta1.EchoRequest, + com.google.showcase.v1beta1.EchoResponse>(service, METHODID_CHAT))) .addMethod( - getPagedExpandMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.PagedExpandRequest, - com.google.showcase.v1beta1.PagedExpandResponse>( - service, METHODID_PAGED_EXPAND))) + getPagedExpandMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.PagedExpandRequest, + com.google.showcase.v1beta1.PagedExpandResponse>( + service, METHODID_PAGED_EXPAND))) .addMethod( - getPagedExpandLegacyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.PagedExpandLegacyRequest, - com.google.showcase.v1beta1.PagedExpandResponse>( - service, METHODID_PAGED_EXPAND_LEGACY))) + getPagedExpandLegacyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.PagedExpandLegacyRequest, + com.google.showcase.v1beta1.PagedExpandResponse>( + service, METHODID_PAGED_EXPAND_LEGACY))) .addMethod( - getPagedExpandLegacyMappedMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.PagedExpandRequest, - com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse>( - service, METHODID_PAGED_EXPAND_LEGACY_MAPPED))) + getPagedExpandLegacyMappedMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.PagedExpandRequest, + com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse>( + service, METHODID_PAGED_EXPAND_LEGACY_MAPPED))) .addMethod( - getWaitMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.WaitRequest, - com.google.longrunning.Operation>( - service, METHODID_WAIT))) + getWaitMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.WaitRequest, com.google.longrunning.Operation>( + service, METHODID_WAIT))) .addMethod( - getBlockMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.BlockRequest, - com.google.showcase.v1beta1.BlockResponse>( - service, METHODID_BLOCK))) + getBlockMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.BlockRequest, + com.google.showcase.v1beta1.BlockResponse>(service, METHODID_BLOCK))) .build(); } - private static abstract class EchoBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class EchoBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { EchoBaseDescriptorSupplier() {} @java.lang.Override @@ -1101,13 +1364,11 @@ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() } } - private static final class EchoFileDescriptorSupplier - extends EchoBaseDescriptorSupplier { + private static final class EchoFileDescriptorSupplier extends EchoBaseDescriptorSupplier { EchoFileDescriptorSupplier() {} } - private static final class EchoMethodDescriptorSupplier - extends EchoBaseDescriptorSupplier + private static final class EchoMethodDescriptorSupplier extends EchoBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; @@ -1129,19 +1390,21 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (EchoGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new EchoFileDescriptorSupplier()) - .addMethod(getEchoMethod()) - .addMethod(getEchoErrorDetailsMethod()) - .addMethod(getExpandMethod()) - .addMethod(getCollectMethod()) - .addMethod(getChatMethod()) - .addMethod(getPagedExpandMethod()) - .addMethod(getPagedExpandLegacyMethod()) - .addMethod(getPagedExpandLegacyMappedMethod()) - .addMethod(getWaitMethod()) - .addMethod(getBlockMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new EchoFileDescriptorSupplier()) + .addMethod(getEchoMethod()) + .addMethod(getEchoErrorDetailsMethod()) + .addMethod(getExpandMethod()) + .addMethod(getCollectMethod()) + .addMethod(getChatMethod()) + .addMethod(getPagedExpandMethod()) + .addMethod(getPagedExpandLegacyMethod()) + .addMethod(getPagedExpandLegacyMappedMethod()) + .addMethod(getWaitMethod()) + .addMethod(getBlockMethod()) + .build(); } } } diff --git a/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityGrpc.java b/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityGrpc.java new file mode 100644 index 0000000000..e928811318 --- /dev/null +++ b/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityGrpc.java @@ -0,0 +1,791 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * A simple identity service.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: schema/google/showcase/v1beta1/identity.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class IdentityGrpc { + + private IdentityGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.showcase.v1beta1.Identity"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateUserRequest, com.google.showcase.v1beta1.User> + getCreateUserMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateUser", + requestType = com.google.showcase.v1beta1.CreateUserRequest.class, + responseType = com.google.showcase.v1beta1.User.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateUserRequest, com.google.showcase.v1beta1.User> + getCreateUserMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateUserRequest, com.google.showcase.v1beta1.User> + getCreateUserMethod; + if ((getCreateUserMethod = IdentityGrpc.getCreateUserMethod) == null) { + synchronized (IdentityGrpc.class) { + if ((getCreateUserMethod = IdentityGrpc.getCreateUserMethod) == null) { + IdentityGrpc.getCreateUserMethod = + getCreateUserMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateUser")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.CreateUserRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.User.getDefaultInstance())) + .setSchemaDescriptor(new IdentityMethodDescriptorSupplier("CreateUser")) + .build(); + } + } + } + return getCreateUserMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.GetUserRequest, com.google.showcase.v1beta1.User> + getGetUserMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetUser", + requestType = com.google.showcase.v1beta1.GetUserRequest.class, + responseType = com.google.showcase.v1beta1.User.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.GetUserRequest, com.google.showcase.v1beta1.User> + getGetUserMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.GetUserRequest, com.google.showcase.v1beta1.User> + getGetUserMethod; + if ((getGetUserMethod = IdentityGrpc.getGetUserMethod) == null) { + synchronized (IdentityGrpc.class) { + if ((getGetUserMethod = IdentityGrpc.getGetUserMethod) == null) { + IdentityGrpc.getGetUserMethod = + getGetUserMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUser")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.GetUserRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.User.getDefaultInstance())) + .setSchemaDescriptor(new IdentityMethodDescriptorSupplier("GetUser")) + .build(); + } + } + } + return getGetUserMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.UpdateUserRequest, com.google.showcase.v1beta1.User> + getUpdateUserMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateUser", + requestType = com.google.showcase.v1beta1.UpdateUserRequest.class, + responseType = com.google.showcase.v1beta1.User.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.UpdateUserRequest, com.google.showcase.v1beta1.User> + getUpdateUserMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.UpdateUserRequest, com.google.showcase.v1beta1.User> + getUpdateUserMethod; + if ((getUpdateUserMethod = IdentityGrpc.getUpdateUserMethod) == null) { + synchronized (IdentityGrpc.class) { + if ((getUpdateUserMethod = IdentityGrpc.getUpdateUserMethod) == null) { + IdentityGrpc.getUpdateUserMethod = + getUpdateUserMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateUser")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.UpdateUserRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.User.getDefaultInstance())) + .setSchemaDescriptor(new IdentityMethodDescriptorSupplier("UpdateUser")) + .build(); + } + } + } + return getUpdateUserMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.DeleteUserRequest, com.google.protobuf.Empty> + getDeleteUserMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteUser", + requestType = com.google.showcase.v1beta1.DeleteUserRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.DeleteUserRequest, com.google.protobuf.Empty> + getDeleteUserMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.DeleteUserRequest, com.google.protobuf.Empty> + getDeleteUserMethod; + if ((getDeleteUserMethod = IdentityGrpc.getDeleteUserMethod) == null) { + synchronized (IdentityGrpc.class) { + if ((getDeleteUserMethod = IdentityGrpc.getDeleteUserMethod) == null) { + IdentityGrpc.getDeleteUserMethod = + getDeleteUserMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteUser")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.DeleteUserRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new IdentityMethodDescriptorSupplier("DeleteUser")) + .build(); + } + } + } + return getDeleteUserMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ListUsersRequest, + com.google.showcase.v1beta1.ListUsersResponse> + getListUsersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsers", + requestType = com.google.showcase.v1beta1.ListUsersRequest.class, + responseType = com.google.showcase.v1beta1.ListUsersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ListUsersRequest, + com.google.showcase.v1beta1.ListUsersResponse> + getListUsersMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ListUsersRequest, + com.google.showcase.v1beta1.ListUsersResponse> + getListUsersMethod; + if ((getListUsersMethod = IdentityGrpc.getListUsersMethod) == null) { + synchronized (IdentityGrpc.class) { + if ((getListUsersMethod = IdentityGrpc.getListUsersMethod) == null) { + IdentityGrpc.getListUsersMethod = + getListUsersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsers")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListUsersRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListUsersResponse.getDefaultInstance())) + .setSchemaDescriptor(new IdentityMethodDescriptorSupplier("ListUsers")) + .build(); + } + } + } + return getListUsersMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static IdentityStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IdentityStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityStub(channel, callOptions); + } + }; + return IdentityStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static IdentityBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IdentityBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityBlockingStub(channel, callOptions); + } + }; + return IdentityBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static IdentityFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IdentityFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityFutureStub(channel, callOptions); + } + }; + return IdentityFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * A simple identity service.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates a user.
+     * 
+ */ + default void createUser( + com.google.showcase.v1beta1.CreateUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateUserMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the User with the given uri.
+     * 
+ */ + default void getUser( + com.google.showcase.v1beta1.GetUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetUserMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a user.
+     * 
+ */ + default void updateUser( + com.google.showcase.v1beta1.UpdateUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateUserMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a user, their profile, and all of their authored messages.
+     * 
+ */ + default void deleteUser( + com.google.showcase.v1beta1.DeleteUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteUserMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all users.
+     * 
+ */ + default void listUsers( + com.google.showcase.v1beta1.ListUsersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsersMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Identity. + * + *
+   * A simple identity service.
+   * 
+ */ + public abstract static class IdentityImplBase implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return IdentityGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Identity. + * + *
+   * A simple identity service.
+   * 
+ */ + public static final class IdentityStub extends io.grpc.stub.AbstractAsyncStub { + private IdentityStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IdentityStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a user.
+     * 
+ */ + public void createUser( + com.google.showcase.v1beta1.CreateUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateUserMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Retrieves the User with the given uri.
+     * 
+ */ + public void getUser( + com.google.showcase.v1beta1.GetUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetUserMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates a user.
+     * 
+ */ + public void updateUser( + com.google.showcase.v1beta1.UpdateUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateUserMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes a user, their profile, and all of their authored messages.
+     * 
+ */ + public void deleteUser( + com.google.showcase.v1beta1.DeleteUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteUserMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists all users.
+     * 
+ */ + public void listUsers( + com.google.showcase.v1beta1.ListUsersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsersMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Identity. + * + *
+   * A simple identity service.
+   * 
+ */ + public static final class IdentityBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private IdentityBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IdentityBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a user.
+     * 
+ */ + public com.google.showcase.v1beta1.User createUser( + com.google.showcase.v1beta1.CreateUserRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateUserMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves the User with the given uri.
+     * 
+ */ + public com.google.showcase.v1beta1.User getUser( + com.google.showcase.v1beta1.GetUserRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetUserMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a user.
+     * 
+ */ + public com.google.showcase.v1beta1.User updateUser( + com.google.showcase.v1beta1.UpdateUserRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateUserMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a user, their profile, and all of their authored messages.
+     * 
+ */ + public com.google.protobuf.Empty deleteUser( + com.google.showcase.v1beta1.DeleteUserRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteUserMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all users.
+     * 
+ */ + public com.google.showcase.v1beta1.ListUsersResponse listUsers( + com.google.showcase.v1beta1.ListUsersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsersMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Identity. + * + *
+   * A simple identity service.
+   * 
+ */ + public static final class IdentityFutureStub + extends io.grpc.stub.AbstractFutureStub { + private IdentityFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IdentityFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a user.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createUser(com.google.showcase.v1beta1.CreateUserRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateUserMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves the User with the given uri.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getUser(com.google.showcase.v1beta1.GetUserRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetUserMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a user.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateUser(com.google.showcase.v1beta1.UpdateUserRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateUserMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a user, their profile, and all of their authored messages.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteUser( + com.google.showcase.v1beta1.DeleteUserRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteUserMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all users.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.ListUsersResponse> + listUsers(com.google.showcase.v1beta1.ListUsersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsersMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_USER = 0; + private static final int METHODID_GET_USER = 1; + private static final int METHODID_UPDATE_USER = 2; + private static final int METHODID_DELETE_USER = 3; + private static final int METHODID_LIST_USERS = 4; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_CREATE_USER: + serviceImpl.createUser( + (com.google.showcase.v1beta1.CreateUserRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_USER: + serviceImpl.getUser( + (com.google.showcase.v1beta1.GetUserRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_USER: + serviceImpl.updateUser( + (com.google.showcase.v1beta1.UpdateUserRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_USER: + serviceImpl.deleteUser( + (com.google.showcase.v1beta1.DeleteUserRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_USERS: + serviceImpl.listUsers( + (com.google.showcase.v1beta1.ListUsersRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateUserMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.CreateUserRequest, + com.google.showcase.v1beta1.User>(service, METHODID_CREATE_USER))) + .addMethod( + getGetUserMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.GetUserRequest, com.google.showcase.v1beta1.User>( + service, METHODID_GET_USER))) + .addMethod( + getUpdateUserMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.UpdateUserRequest, + com.google.showcase.v1beta1.User>(service, METHODID_UPDATE_USER))) + .addMethod( + getDeleteUserMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.DeleteUserRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_USER))) + .addMethod( + getListUsersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.ListUsersRequest, + com.google.showcase.v1beta1.ListUsersResponse>(service, METHODID_LIST_USERS))) + .build(); + } + + private abstract static class IdentityBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + IdentityBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.showcase.v1beta1.IdentityOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Identity"); + } + } + + private static final class IdentityFileDescriptorSupplier extends IdentityBaseDescriptorSupplier { + IdentityFileDescriptorSupplier() {} + } + + private static final class IdentityMethodDescriptorSupplier extends IdentityBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + IdentityMethodDescriptorSupplier(java.lang.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 (IdentityGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new IdentityFileDescriptorSupplier()) + .addMethod(getCreateUserMethod()) + .addMethod(getGetUserMethod()) + .addMethod(getUpdateUserMethod()) + .addMethod(getDeleteUserMethod()) + .addMethod(getListUsersMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingGrpc.java b/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingGrpc.java new file mode 100644 index 0000000000..89c374304e --- /dev/null +++ b/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingGrpc.java @@ -0,0 +1,1773 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * A simple messaging service that implements chat rooms and profile posts.
+ * This messaging service showcases the features that API clients
+ * generated by gapic-generators implement.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: schema/google/showcase/v1beta1/messaging.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class MessagingGrpc { + + private MessagingGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.showcase.v1beta1.Messaging"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateRoomRequest, com.google.showcase.v1beta1.Room> + getCreateRoomMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRoom", + requestType = com.google.showcase.v1beta1.CreateRoomRequest.class, + responseType = com.google.showcase.v1beta1.Room.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateRoomRequest, com.google.showcase.v1beta1.Room> + getCreateRoomMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateRoomRequest, com.google.showcase.v1beta1.Room> + getCreateRoomMethod; + if ((getCreateRoomMethod = MessagingGrpc.getCreateRoomMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getCreateRoomMethod = MessagingGrpc.getCreateRoomMethod) == null) { + MessagingGrpc.getCreateRoomMethod = + getCreateRoomMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRoom")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.CreateRoomRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.Room.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("CreateRoom")) + .build(); + } + } + } + return getCreateRoomMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.GetRoomRequest, com.google.showcase.v1beta1.Room> + getGetRoomMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRoom", + requestType = com.google.showcase.v1beta1.GetRoomRequest.class, + responseType = com.google.showcase.v1beta1.Room.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.GetRoomRequest, com.google.showcase.v1beta1.Room> + getGetRoomMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.GetRoomRequest, com.google.showcase.v1beta1.Room> + getGetRoomMethod; + if ((getGetRoomMethod = MessagingGrpc.getGetRoomMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getGetRoomMethod = MessagingGrpc.getGetRoomMethod) == null) { + MessagingGrpc.getGetRoomMethod = + getGetRoomMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRoom")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.GetRoomRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.Room.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("GetRoom")) + .build(); + } + } + } + return getGetRoomMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.UpdateRoomRequest, com.google.showcase.v1beta1.Room> + getUpdateRoomMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRoom", + requestType = com.google.showcase.v1beta1.UpdateRoomRequest.class, + responseType = com.google.showcase.v1beta1.Room.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.UpdateRoomRequest, com.google.showcase.v1beta1.Room> + getUpdateRoomMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.UpdateRoomRequest, com.google.showcase.v1beta1.Room> + getUpdateRoomMethod; + if ((getUpdateRoomMethod = MessagingGrpc.getUpdateRoomMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getUpdateRoomMethod = MessagingGrpc.getUpdateRoomMethod) == null) { + MessagingGrpc.getUpdateRoomMethod = + getUpdateRoomMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRoom")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.UpdateRoomRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.Room.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("UpdateRoom")) + .build(); + } + } + } + return getUpdateRoomMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.DeleteRoomRequest, com.google.protobuf.Empty> + getDeleteRoomMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRoom", + requestType = com.google.showcase.v1beta1.DeleteRoomRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.DeleteRoomRequest, com.google.protobuf.Empty> + getDeleteRoomMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.DeleteRoomRequest, com.google.protobuf.Empty> + getDeleteRoomMethod; + if ((getDeleteRoomMethod = MessagingGrpc.getDeleteRoomMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getDeleteRoomMethod = MessagingGrpc.getDeleteRoomMethod) == null) { + MessagingGrpc.getDeleteRoomMethod = + getDeleteRoomMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRoom")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.DeleteRoomRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("DeleteRoom")) + .build(); + } + } + } + return getDeleteRoomMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ListRoomsRequest, + com.google.showcase.v1beta1.ListRoomsResponse> + getListRoomsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRooms", + requestType = com.google.showcase.v1beta1.ListRoomsRequest.class, + responseType = com.google.showcase.v1beta1.ListRoomsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ListRoomsRequest, + com.google.showcase.v1beta1.ListRoomsResponse> + getListRoomsMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ListRoomsRequest, + com.google.showcase.v1beta1.ListRoomsResponse> + getListRoomsMethod; + if ((getListRoomsMethod = MessagingGrpc.getListRoomsMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getListRoomsMethod = MessagingGrpc.getListRoomsMethod) == null) { + MessagingGrpc.getListRoomsMethod = + getListRoomsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRooms")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListRoomsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListRoomsResponse.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("ListRooms")) + .build(); + } + } + } + return getListRoomsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateBlurbRequest, com.google.showcase.v1beta1.Blurb> + getCreateBlurbMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBlurb", + requestType = com.google.showcase.v1beta1.CreateBlurbRequest.class, + responseType = com.google.showcase.v1beta1.Blurb.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateBlurbRequest, com.google.showcase.v1beta1.Blurb> + getCreateBlurbMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateBlurbRequest, com.google.showcase.v1beta1.Blurb> + getCreateBlurbMethod; + if ((getCreateBlurbMethod = MessagingGrpc.getCreateBlurbMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getCreateBlurbMethod = MessagingGrpc.getCreateBlurbMethod) == null) { + MessagingGrpc.getCreateBlurbMethod = + getCreateBlurbMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBlurb")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.CreateBlurbRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.Blurb.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("CreateBlurb")) + .build(); + } + } + } + return getCreateBlurbMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.GetBlurbRequest, com.google.showcase.v1beta1.Blurb> + getGetBlurbMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBlurb", + requestType = com.google.showcase.v1beta1.GetBlurbRequest.class, + responseType = com.google.showcase.v1beta1.Blurb.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.GetBlurbRequest, com.google.showcase.v1beta1.Blurb> + getGetBlurbMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.GetBlurbRequest, com.google.showcase.v1beta1.Blurb> + getGetBlurbMethod; + if ((getGetBlurbMethod = MessagingGrpc.getGetBlurbMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getGetBlurbMethod = MessagingGrpc.getGetBlurbMethod) == null) { + MessagingGrpc.getGetBlurbMethod = + getGetBlurbMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlurb")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.GetBlurbRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.Blurb.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("GetBlurb")) + .build(); + } + } + } + return getGetBlurbMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.UpdateBlurbRequest, com.google.showcase.v1beta1.Blurb> + getUpdateBlurbMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBlurb", + requestType = com.google.showcase.v1beta1.UpdateBlurbRequest.class, + responseType = com.google.showcase.v1beta1.Blurb.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.UpdateBlurbRequest, com.google.showcase.v1beta1.Blurb> + getUpdateBlurbMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.UpdateBlurbRequest, com.google.showcase.v1beta1.Blurb> + getUpdateBlurbMethod; + if ((getUpdateBlurbMethod = MessagingGrpc.getUpdateBlurbMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getUpdateBlurbMethod = MessagingGrpc.getUpdateBlurbMethod) == null) { + MessagingGrpc.getUpdateBlurbMethod = + getUpdateBlurbMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBlurb")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.UpdateBlurbRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.Blurb.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("UpdateBlurb")) + .build(); + } + } + } + return getUpdateBlurbMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.DeleteBlurbRequest, com.google.protobuf.Empty> + getDeleteBlurbMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBlurb", + requestType = com.google.showcase.v1beta1.DeleteBlurbRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.DeleteBlurbRequest, com.google.protobuf.Empty> + getDeleteBlurbMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.DeleteBlurbRequest, com.google.protobuf.Empty> + getDeleteBlurbMethod; + if ((getDeleteBlurbMethod = MessagingGrpc.getDeleteBlurbMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getDeleteBlurbMethod = MessagingGrpc.getDeleteBlurbMethod) == null) { + MessagingGrpc.getDeleteBlurbMethod = + getDeleteBlurbMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBlurb")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.DeleteBlurbRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("DeleteBlurb")) + .build(); + } + } + } + return getDeleteBlurbMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ListBlurbsRequest, + com.google.showcase.v1beta1.ListBlurbsResponse> + getListBlurbsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBlurbs", + requestType = com.google.showcase.v1beta1.ListBlurbsRequest.class, + responseType = com.google.showcase.v1beta1.ListBlurbsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ListBlurbsRequest, + com.google.showcase.v1beta1.ListBlurbsResponse> + getListBlurbsMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ListBlurbsRequest, + com.google.showcase.v1beta1.ListBlurbsResponse> + getListBlurbsMethod; + if ((getListBlurbsMethod = MessagingGrpc.getListBlurbsMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getListBlurbsMethod = MessagingGrpc.getListBlurbsMethod) == null) { + MessagingGrpc.getListBlurbsMethod = + getListBlurbsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBlurbs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListBlurbsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListBlurbsResponse.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("ListBlurbs")) + .build(); + } + } + } + return getListBlurbsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.SearchBlurbsRequest, com.google.longrunning.Operation> + getSearchBlurbsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchBlurbs", + requestType = com.google.showcase.v1beta1.SearchBlurbsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.SearchBlurbsRequest, com.google.longrunning.Operation> + getSearchBlurbsMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.SearchBlurbsRequest, com.google.longrunning.Operation> + getSearchBlurbsMethod; + if ((getSearchBlurbsMethod = MessagingGrpc.getSearchBlurbsMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getSearchBlurbsMethod = MessagingGrpc.getSearchBlurbsMethod) == null) { + MessagingGrpc.getSearchBlurbsMethod = + getSearchBlurbsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchBlurbs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.SearchBlurbsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("SearchBlurbs")) + .build(); + } + } + } + return getSearchBlurbsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.StreamBlurbsRequest, + com.google.showcase.v1beta1.StreamBlurbsResponse> + getStreamBlurbsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamBlurbs", + requestType = com.google.showcase.v1beta1.StreamBlurbsRequest.class, + responseType = com.google.showcase.v1beta1.StreamBlurbsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.StreamBlurbsRequest, + com.google.showcase.v1beta1.StreamBlurbsResponse> + getStreamBlurbsMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.StreamBlurbsRequest, + com.google.showcase.v1beta1.StreamBlurbsResponse> + getStreamBlurbsMethod; + if ((getStreamBlurbsMethod = MessagingGrpc.getStreamBlurbsMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getStreamBlurbsMethod = MessagingGrpc.getStreamBlurbsMethod) == null) { + MessagingGrpc.getStreamBlurbsMethod = + getStreamBlurbsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamBlurbs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.StreamBlurbsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.StreamBlurbsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("StreamBlurbs")) + .build(); + } + } + } + return getStreamBlurbsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateBlurbRequest, + com.google.showcase.v1beta1.SendBlurbsResponse> + getSendBlurbsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SendBlurbs", + requestType = com.google.showcase.v1beta1.CreateBlurbRequest.class, + responseType = com.google.showcase.v1beta1.SendBlurbsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateBlurbRequest, + com.google.showcase.v1beta1.SendBlurbsResponse> + getSendBlurbsMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateBlurbRequest, + com.google.showcase.v1beta1.SendBlurbsResponse> + getSendBlurbsMethod; + if ((getSendBlurbsMethod = MessagingGrpc.getSendBlurbsMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getSendBlurbsMethod = MessagingGrpc.getSendBlurbsMethod) == null) { + MessagingGrpc.getSendBlurbsMethod = + getSendBlurbsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendBlurbs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.CreateBlurbRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.SendBlurbsResponse.getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("SendBlurbs")) + .build(); + } + } + } + return getSendBlurbsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ConnectRequest, + com.google.showcase.v1beta1.StreamBlurbsResponse> + getConnectMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Connect", + requestType = com.google.showcase.v1beta1.ConnectRequest.class, + responseType = com.google.showcase.v1beta1.StreamBlurbsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ConnectRequest, + com.google.showcase.v1beta1.StreamBlurbsResponse> + getConnectMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ConnectRequest, + com.google.showcase.v1beta1.StreamBlurbsResponse> + getConnectMethod; + if ((getConnectMethod = MessagingGrpc.getConnectMethod) == null) { + synchronized (MessagingGrpc.class) { + if ((getConnectMethod = MessagingGrpc.getConnectMethod) == null) { + MessagingGrpc.getConnectMethod = + getConnectMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Connect")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ConnectRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.StreamBlurbsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("Connect")) + .build(); + } + } + } + return getConnectMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static MessagingStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MessagingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MessagingStub(channel, callOptions); + } + }; + return MessagingStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static MessagingBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MessagingBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MessagingBlockingStub(channel, callOptions); + } + }; + return MessagingBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static MessagingFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MessagingFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MessagingFutureStub(channel, callOptions); + } + }; + return MessagingFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * A simple messaging service that implements chat rooms and profile posts.
+   * This messaging service showcases the features that API clients
+   * generated by gapic-generators implement.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates a room.
+     * 
+ */ + default void createRoom( + com.google.showcase.v1beta1.CreateRoomRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRoomMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the Room with the given resource name.
+     * 
+ */ + default void getRoom( + com.google.showcase.v1beta1.GetRoomRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRoomMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a room.
+     * 
+ */ + default void updateRoom( + com.google.showcase.v1beta1.UpdateRoomRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateRoomMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a room and all of its blurbs.
+     * 
+ */ + default void deleteRoom( + com.google.showcase.v1beta1.DeleteRoomRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRoomMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all chat rooms.
+     * 
+ */ + default void listRooms( + com.google.showcase.v1beta1.ListRoomsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRoomsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a blurb. If the parent is a room, the blurb is understood to be a
+     * message in that room. If the parent is a profile, the blurb is understood
+     * to be a post on the profile.
+     * 
+ */ + default void createBlurb( + com.google.showcase.v1beta1.CreateBlurbRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBlurbMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the Blurb with the given resource name.
+     * 
+ */ + default void getBlurb( + com.google.showcase.v1beta1.GetBlurbRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlurbMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a blurb.
+     * 
+ */ + default void updateBlurb( + com.google.showcase.v1beta1.UpdateBlurbRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBlurbMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a blurb.
+     * 
+ */ + default void deleteBlurb( + com.google.showcase.v1beta1.DeleteBlurbRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBlurbMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists blurbs for a specific chat room or user profile depending on the
+     * parent resource name.
+     * 
+ */ + default void listBlurbs( + com.google.showcase.v1beta1.ListBlurbsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBlurbsMethod(), responseObserver); + } + + /** + * + * + *
+     * This method searches through all blurbs across all rooms and profiles
+     * for blurbs containing to words found in the query. Only posts that
+     * contain an exact match of a queried word will be returned.
+     * 
+ */ + default void searchBlurbs( + com.google.showcase.v1beta1.SearchBlurbsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchBlurbsMethod(), responseObserver); + } + + /** + * + * + *
+     * This returns a stream that emits the blurbs that are created for a
+     * particular chat room or user profile.
+     * 
+ */ + default void streamBlurbs( + com.google.showcase.v1beta1.StreamBlurbsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStreamBlurbsMethod(), responseObserver); + } + + /** + * + * + *
+     * This is a stream to create multiple blurbs. If an invalid blurb is
+     * requested to be created, the stream will close with an error.
+     * 
+ */ + default io.grpc.stub.StreamObserver sendBlurbs( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getSendBlurbsMethod(), responseObserver); + } + + /** + * + * + *
+     * This method starts a bidirectional stream that receives all blurbs that
+     * are being created after the stream has started and sends requests to create
+     * blurbs. If an invalid blurb is requested to be created, the stream will
+     * close with an error.
+     * 
+ */ + default io.grpc.stub.StreamObserver connect( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getConnectMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Messaging. + * + *
+   * A simple messaging service that implements chat rooms and profile posts.
+   * This messaging service showcases the features that API clients
+   * generated by gapic-generators implement.
+   * 
+ */ + public abstract static class MessagingImplBase implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return MessagingGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Messaging. + * + *
+   * A simple messaging service that implements chat rooms and profile posts.
+   * This messaging service showcases the features that API clients
+   * generated by gapic-generators implement.
+   * 
+ */ + public static final class MessagingStub extends io.grpc.stub.AbstractAsyncStub { + private MessagingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MessagingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MessagingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a room.
+     * 
+ */ + public void createRoom( + com.google.showcase.v1beta1.CreateRoomRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRoomMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Retrieves the Room with the given resource name.
+     * 
+ */ + public void getRoom( + com.google.showcase.v1beta1.GetRoomRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRoomMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates a room.
+     * 
+ */ + public void updateRoom( + com.google.showcase.v1beta1.UpdateRoomRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateRoomMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes a room and all of its blurbs.
+     * 
+ */ + public void deleteRoom( + com.google.showcase.v1beta1.DeleteRoomRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRoomMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists all chat rooms.
+     * 
+ */ + public void listRooms( + com.google.showcase.v1beta1.ListRoomsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRoomsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a blurb. If the parent is a room, the blurb is understood to be a
+     * message in that room. If the parent is a profile, the blurb is understood
+     * to be a post on the profile.
+     * 
+ */ + public void createBlurb( + com.google.showcase.v1beta1.CreateBlurbRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBlurbMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves the Blurb with the given resource name.
+     * 
+ */ + public void getBlurb( + com.google.showcase.v1beta1.GetBlurbRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBlurbMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates a blurb.
+     * 
+ */ + public void updateBlurb( + com.google.showcase.v1beta1.UpdateBlurbRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBlurbMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a blurb.
+     * 
+ */ + public void deleteBlurb( + com.google.showcase.v1beta1.DeleteBlurbRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBlurbMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists blurbs for a specific chat room or user profile depending on the
+     * parent resource name.
+     * 
+ */ + public void listBlurbs( + com.google.showcase.v1beta1.ListBlurbsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBlurbsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * This method searches through all blurbs across all rooms and profiles
+     * for blurbs containing to words found in the query. Only posts that
+     * contain an exact match of a queried word will be returned.
+     * 
+ */ + public void searchBlurbs( + com.google.showcase.v1beta1.SearchBlurbsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchBlurbsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * This returns a stream that emits the blurbs that are created for a
+     * particular chat room or user profile.
+     * 
+ */ + public void streamBlurbs( + com.google.showcase.v1beta1.StreamBlurbsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getStreamBlurbsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * This is a stream to create multiple blurbs. If an invalid blurb is
+     * requested to be created, the stream will close with an error.
+     * 
+ */ + public io.grpc.stub.StreamObserver sendBlurbs( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ClientCalls.asyncClientStreamingCall( + getChannel().newCall(getSendBlurbsMethod(), getCallOptions()), responseObserver); + } + + /** + * + * + *
+     * This method starts a bidirectional stream that receives all blurbs that
+     * are being created after the stream has started and sends requests to create
+     * blurbs. If an invalid blurb is requested to be created, the stream will
+     * close with an error.
+     * 
+ */ + public io.grpc.stub.StreamObserver connect( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getConnectMethod(), getCallOptions()), responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Messaging. + * + *
+   * A simple messaging service that implements chat rooms and profile posts.
+   * This messaging service showcases the features that API clients
+   * generated by gapic-generators implement.
+   * 
+ */ + public static final class MessagingBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private MessagingBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MessagingBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MessagingBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a room.
+     * 
+ */ + public com.google.showcase.v1beta1.Room createRoom( + com.google.showcase.v1beta1.CreateRoomRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRoomMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves the Room with the given resource name.
+     * 
+ */ + public com.google.showcase.v1beta1.Room getRoom( + com.google.showcase.v1beta1.GetRoomRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRoomMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a room.
+     * 
+ */ + public com.google.showcase.v1beta1.Room updateRoom( + com.google.showcase.v1beta1.UpdateRoomRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRoomMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a room and all of its blurbs.
+     * 
+ */ + public com.google.protobuf.Empty deleteRoom( + com.google.showcase.v1beta1.DeleteRoomRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRoomMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all chat rooms.
+     * 
+ */ + public com.google.showcase.v1beta1.ListRoomsResponse listRooms( + com.google.showcase.v1beta1.ListRoomsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRoomsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a blurb. If the parent is a room, the blurb is understood to be a
+     * message in that room. If the parent is a profile, the blurb is understood
+     * to be a post on the profile.
+     * 
+ */ + public com.google.showcase.v1beta1.Blurb createBlurb( + com.google.showcase.v1beta1.CreateBlurbRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBlurbMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves the Blurb with the given resource name.
+     * 
+ */ + public com.google.showcase.v1beta1.Blurb getBlurb( + com.google.showcase.v1beta1.GetBlurbRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBlurbMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a blurb.
+     * 
+ */ + public com.google.showcase.v1beta1.Blurb updateBlurb( + com.google.showcase.v1beta1.UpdateBlurbRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBlurbMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a blurb.
+     * 
+ */ + public com.google.protobuf.Empty deleteBlurb( + com.google.showcase.v1beta1.DeleteBlurbRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBlurbMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists blurbs for a specific chat room or user profile depending on the
+     * parent resource name.
+     * 
+ */ + public com.google.showcase.v1beta1.ListBlurbsResponse listBlurbs( + com.google.showcase.v1beta1.ListBlurbsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBlurbsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * This method searches through all blurbs across all rooms and profiles
+     * for blurbs containing to words found in the query. Only posts that
+     * contain an exact match of a queried word will be returned.
+     * 
+ */ + public com.google.longrunning.Operation searchBlurbs( + com.google.showcase.v1beta1.SearchBlurbsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchBlurbsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * This returns a stream that emits the blurbs that are created for a
+     * particular chat room or user profile.
+     * 
+ */ + public java.util.Iterator streamBlurbs( + com.google.showcase.v1beta1.StreamBlurbsRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getStreamBlurbsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Messaging. + * + *
+   * A simple messaging service that implements chat rooms and profile posts.
+   * This messaging service showcases the features that API clients
+   * generated by gapic-generators implement.
+   * 
+ */ + public static final class MessagingFutureStub + extends io.grpc.stub.AbstractFutureStub { + private MessagingFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MessagingFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MessagingFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a room.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createRoom(com.google.showcase.v1beta1.CreateRoomRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRoomMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves the Room with the given resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getRoom(com.google.showcase.v1beta1.GetRoomRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRoomMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a room.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateRoom(com.google.showcase.v1beta1.UpdateRoomRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateRoomMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a room and all of its blurbs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteRoom( + com.google.showcase.v1beta1.DeleteRoomRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRoomMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all chat rooms.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.ListRoomsResponse> + listRooms(com.google.showcase.v1beta1.ListRoomsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRoomsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a blurb. If the parent is a room, the blurb is understood to be a
+     * message in that room. If the parent is a profile, the blurb is understood
+     * to be a post on the profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createBlurb(com.google.showcase.v1beta1.CreateBlurbRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBlurbMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves the Blurb with the given resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getBlurb(com.google.showcase.v1beta1.GetBlurbRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBlurbMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a blurb.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateBlurb(com.google.showcase.v1beta1.UpdateBlurbRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBlurbMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a blurb.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteBlurb(com.google.showcase.v1beta1.DeleteBlurbRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBlurbMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists blurbs for a specific chat room or user profile depending on the
+     * parent resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.ListBlurbsResponse> + listBlurbs(com.google.showcase.v1beta1.ListBlurbsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBlurbsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * This method searches through all blurbs across all rooms and profiles
+     * for blurbs containing to words found in the query. Only posts that
+     * contain an exact match of a queried word will be returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + searchBlurbs(com.google.showcase.v1beta1.SearchBlurbsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchBlurbsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_ROOM = 0; + private static final int METHODID_GET_ROOM = 1; + private static final int METHODID_UPDATE_ROOM = 2; + private static final int METHODID_DELETE_ROOM = 3; + private static final int METHODID_LIST_ROOMS = 4; + private static final int METHODID_CREATE_BLURB = 5; + private static final int METHODID_GET_BLURB = 6; + private static final int METHODID_UPDATE_BLURB = 7; + private static final int METHODID_DELETE_BLURB = 8; + private static final int METHODID_LIST_BLURBS = 9; + private static final int METHODID_SEARCH_BLURBS = 10; + private static final int METHODID_STREAM_BLURBS = 11; + private static final int METHODID_SEND_BLURBS = 12; + private static final int METHODID_CONNECT = 13; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_CREATE_ROOM: + serviceImpl.createRoom( + (com.google.showcase.v1beta1.CreateRoomRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ROOM: + serviceImpl.getRoom( + (com.google.showcase.v1beta1.GetRoomRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ROOM: + serviceImpl.updateRoom( + (com.google.showcase.v1beta1.UpdateRoomRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ROOM: + serviceImpl.deleteRoom( + (com.google.showcase.v1beta1.DeleteRoomRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ROOMS: + serviceImpl.listRooms( + (com.google.showcase.v1beta1.ListRoomsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_BLURB: + serviceImpl.createBlurb( + (com.google.showcase.v1beta1.CreateBlurbRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BLURB: + serviceImpl.getBlurb( + (com.google.showcase.v1beta1.GetBlurbRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_BLURB: + serviceImpl.updateBlurb( + (com.google.showcase.v1beta1.UpdateBlurbRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BLURB: + serviceImpl.deleteBlurb( + (com.google.showcase.v1beta1.DeleteBlurbRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BLURBS: + serviceImpl.listBlurbs( + (com.google.showcase.v1beta1.ListBlurbsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SEARCH_BLURBS: + serviceImpl.searchBlurbs( + (com.google.showcase.v1beta1.SearchBlurbsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STREAM_BLURBS: + serviceImpl.streamBlurbs( + (com.google.showcase.v1beta1.StreamBlurbsRequest) 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) { + case METHODID_SEND_BLURBS: + return (io.grpc.stub.StreamObserver) + serviceImpl.sendBlurbs( + (io.grpc.stub.StreamObserver) + responseObserver); + case METHODID_CONNECT: + return (io.grpc.stub.StreamObserver) + serviceImpl.connect( + (io.grpc.stub.StreamObserver) + responseObserver); + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateRoomMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.CreateRoomRequest, + com.google.showcase.v1beta1.Room>(service, METHODID_CREATE_ROOM))) + .addMethod( + getGetRoomMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.GetRoomRequest, com.google.showcase.v1beta1.Room>( + service, METHODID_GET_ROOM))) + .addMethod( + getUpdateRoomMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.UpdateRoomRequest, + com.google.showcase.v1beta1.Room>(service, METHODID_UPDATE_ROOM))) + .addMethod( + getDeleteRoomMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.DeleteRoomRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_ROOM))) + .addMethod( + getListRoomsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.ListRoomsRequest, + com.google.showcase.v1beta1.ListRoomsResponse>(service, METHODID_LIST_ROOMS))) + .addMethod( + getCreateBlurbMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.CreateBlurbRequest, + com.google.showcase.v1beta1.Blurb>(service, METHODID_CREATE_BLURB))) + .addMethod( + getGetBlurbMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.GetBlurbRequest, com.google.showcase.v1beta1.Blurb>( + service, METHODID_GET_BLURB))) + .addMethod( + getUpdateBlurbMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.UpdateBlurbRequest, + com.google.showcase.v1beta1.Blurb>(service, METHODID_UPDATE_BLURB))) + .addMethod( + getDeleteBlurbMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.DeleteBlurbRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_BLURB))) + .addMethod( + getListBlurbsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.ListBlurbsRequest, + com.google.showcase.v1beta1.ListBlurbsResponse>(service, METHODID_LIST_BLURBS))) + .addMethod( + getSearchBlurbsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.SearchBlurbsRequest, + com.google.longrunning.Operation>(service, METHODID_SEARCH_BLURBS))) + .addMethod( + getStreamBlurbsMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.showcase.v1beta1.StreamBlurbsRequest, + com.google.showcase.v1beta1.StreamBlurbsResponse>( + service, METHODID_STREAM_BLURBS))) + .addMethod( + getSendBlurbsMethod(), + io.grpc.stub.ServerCalls.asyncClientStreamingCall( + new MethodHandlers< + com.google.showcase.v1beta1.CreateBlurbRequest, + com.google.showcase.v1beta1.SendBlurbsResponse>(service, METHODID_SEND_BLURBS))) + .addMethod( + getConnectMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.showcase.v1beta1.ConnectRequest, + com.google.showcase.v1beta1.StreamBlurbsResponse>(service, METHODID_CONNECT))) + .build(); + } + + private abstract static class MessagingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + MessagingBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Messaging"); + } + } + + private static final class MessagingFileDescriptorSupplier + extends MessagingBaseDescriptorSupplier { + MessagingFileDescriptorSupplier() {} + } + + private static final class MessagingMethodDescriptorSupplier + extends MessagingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + MessagingMethodDescriptorSupplier(java.lang.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 (MessagingGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new MessagingFileDescriptorSupplier()) + .addMethod(getCreateRoomMethod()) + .addMethod(getGetRoomMethod()) + .addMethod(getUpdateRoomMethod()) + .addMethod(getDeleteRoomMethod()) + .addMethod(getListRoomsMethod()) + .addMethod(getCreateBlurbMethod()) + .addMethod(getGetBlurbMethod()) + .addMethod(getUpdateBlurbMethod()) + .addMethod(getDeleteBlurbMethod()) + .addMethod(getListBlurbsMethod()) + .addMethod(getSearchBlurbsMethod()) + .addMethod(getStreamBlurbsMethod()) + .addMethod(getSendBlurbsMethod()) + .addMethod(getConnectMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceServiceGrpc.java b/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceServiceGrpc.java new file mode 100644 index 0000000000..74df34cbc2 --- /dev/null +++ b/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceServiceGrpc.java @@ -0,0 +1,928 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: schema/google/showcase/v1beta1/sequence.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SequenceServiceGrpc { + + private SequenceServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.showcase.v1beta1.SequenceService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateSequenceRequest, com.google.showcase.v1beta1.Sequence> + getCreateSequenceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSequence", + requestType = com.google.showcase.v1beta1.CreateSequenceRequest.class, + responseType = com.google.showcase.v1beta1.Sequence.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateSequenceRequest, com.google.showcase.v1beta1.Sequence> + getCreateSequenceMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateSequenceRequest, com.google.showcase.v1beta1.Sequence> + getCreateSequenceMethod; + if ((getCreateSequenceMethod = SequenceServiceGrpc.getCreateSequenceMethod) == null) { + synchronized (SequenceServiceGrpc.class) { + if ((getCreateSequenceMethod = SequenceServiceGrpc.getCreateSequenceMethod) == null) { + SequenceServiceGrpc.getCreateSequenceMethod = + getCreateSequenceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSequence")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.CreateSequenceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.Sequence.getDefaultInstance())) + .setSchemaDescriptor( + new SequenceServiceMethodDescriptorSupplier("CreateSequence")) + .build(); + } + } + } + return getCreateSequenceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateStreamingSequenceRequest, + com.google.showcase.v1beta1.StreamingSequence> + getCreateStreamingSequenceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateStreamingSequence", + requestType = com.google.showcase.v1beta1.CreateStreamingSequenceRequest.class, + responseType = com.google.showcase.v1beta1.StreamingSequence.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateStreamingSequenceRequest, + com.google.showcase.v1beta1.StreamingSequence> + getCreateStreamingSequenceMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateStreamingSequenceRequest, + com.google.showcase.v1beta1.StreamingSequence> + getCreateStreamingSequenceMethod; + if ((getCreateStreamingSequenceMethod = SequenceServiceGrpc.getCreateStreamingSequenceMethod) + == null) { + synchronized (SequenceServiceGrpc.class) { + if ((getCreateStreamingSequenceMethod = + SequenceServiceGrpc.getCreateStreamingSequenceMethod) + == null) { + SequenceServiceGrpc.getCreateStreamingSequenceMethod = + getCreateStreamingSequenceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateStreamingSequence")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.CreateStreamingSequenceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance())) + .setSchemaDescriptor( + new SequenceServiceMethodDescriptorSupplier("CreateStreamingSequence")) + .build(); + } + } + } + return getCreateStreamingSequenceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.GetSequenceReportRequest, + com.google.showcase.v1beta1.SequenceReport> + getGetSequenceReportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSequenceReport", + requestType = com.google.showcase.v1beta1.GetSequenceReportRequest.class, + responseType = com.google.showcase.v1beta1.SequenceReport.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.GetSequenceReportRequest, + com.google.showcase.v1beta1.SequenceReport> + getGetSequenceReportMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.GetSequenceReportRequest, + com.google.showcase.v1beta1.SequenceReport> + getGetSequenceReportMethod; + if ((getGetSequenceReportMethod = SequenceServiceGrpc.getGetSequenceReportMethod) == null) { + synchronized (SequenceServiceGrpc.class) { + if ((getGetSequenceReportMethod = SequenceServiceGrpc.getGetSequenceReportMethod) == null) { + SequenceServiceGrpc.getGetSequenceReportMethod = + getGetSequenceReportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSequenceReport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.GetSequenceReportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.SequenceReport.getDefaultInstance())) + .setSchemaDescriptor( + new SequenceServiceMethodDescriptorSupplier("GetSequenceReport")) + .build(); + } + } + } + return getGetSequenceReportMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest, + com.google.showcase.v1beta1.StreamingSequenceReport> + getGetStreamingSequenceReportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetStreamingSequenceReport", + requestType = com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.class, + responseType = com.google.showcase.v1beta1.StreamingSequenceReport.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest, + com.google.showcase.v1beta1.StreamingSequenceReport> + getGetStreamingSequenceReportMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest, + com.google.showcase.v1beta1.StreamingSequenceReport> + getGetStreamingSequenceReportMethod; + if ((getGetStreamingSequenceReportMethod = + SequenceServiceGrpc.getGetStreamingSequenceReportMethod) + == null) { + synchronized (SequenceServiceGrpc.class) { + if ((getGetStreamingSequenceReportMethod = + SequenceServiceGrpc.getGetStreamingSequenceReportMethod) + == null) { + SequenceServiceGrpc.getGetStreamingSequenceReportMethod = + getGetStreamingSequenceReportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetStreamingSequenceReport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.StreamingSequenceReport + .getDefaultInstance())) + .setSchemaDescriptor( + new SequenceServiceMethodDescriptorSupplier("GetStreamingSequenceReport")) + .build(); + } + } + } + return getGetStreamingSequenceReportMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.AttemptSequenceRequest, com.google.protobuf.Empty> + getAttemptSequenceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AttemptSequence", + requestType = com.google.showcase.v1beta1.AttemptSequenceRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.AttemptSequenceRequest, com.google.protobuf.Empty> + getAttemptSequenceMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.AttemptSequenceRequest, com.google.protobuf.Empty> + getAttemptSequenceMethod; + if ((getAttemptSequenceMethod = SequenceServiceGrpc.getAttemptSequenceMethod) == null) { + synchronized (SequenceServiceGrpc.class) { + if ((getAttemptSequenceMethod = SequenceServiceGrpc.getAttemptSequenceMethod) == null) { + SequenceServiceGrpc.getAttemptSequenceMethod = + getAttemptSequenceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AttemptSequence")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.AttemptSequenceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SequenceServiceMethodDescriptorSupplier("AttemptSequence")) + .build(); + } + } + } + return getAttemptSequenceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest, + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse> + getAttemptStreamingSequenceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AttemptStreamingSequence", + requestType = com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.class, + responseType = com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest, + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse> + getAttemptStreamingSequenceMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest, + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse> + getAttemptStreamingSequenceMethod; + if ((getAttemptStreamingSequenceMethod = SequenceServiceGrpc.getAttemptStreamingSequenceMethod) + == null) { + synchronized (SequenceServiceGrpc.class) { + if ((getAttemptStreamingSequenceMethod = + SequenceServiceGrpc.getAttemptStreamingSequenceMethod) + == null) { + SequenceServiceGrpc.getAttemptStreamingSequenceMethod = + getAttemptStreamingSequenceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "AttemptStreamingSequence")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SequenceServiceMethodDescriptorSupplier("AttemptStreamingSequence")) + .build(); + } + } + } + return getAttemptStreamingSequenceMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SequenceServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SequenceServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SequenceServiceStub(channel, callOptions); + } + }; + return SequenceServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SequenceServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SequenceServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SequenceServiceBlockingStub(channel, callOptions); + } + }; + return SequenceServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SequenceServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SequenceServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SequenceServiceFutureStub(channel, callOptions); + } + }; + return SequenceServiceFutureStub.newStub(factory, channel); + } + + /** */ + public interface AsyncService { + + /** + * + * + *
+     * Creates a sequence.
+     * 
+ */ + default void createSequence( + com.google.showcase.v1beta1.CreateSequenceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSequenceMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a sequence.
+     * 
+ */ + default void createStreamingSequence( + com.google.showcase.v1beta1.CreateStreamingSequenceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateStreamingSequenceMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a sequence.
+     * 
+ */ + default void getSequenceReport( + com.google.showcase.v1beta1.GetSequenceReportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSequenceReportMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a sequence.
+     * 
+ */ + default void getStreamingSequenceReport( + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetStreamingSequenceReportMethod(), responseObserver); + } + + /** + * + * + *
+     * Attempts a sequence.
+     * 
+ */ + default void attemptSequence( + com.google.showcase.v1beta1.AttemptSequenceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAttemptSequenceMethod(), responseObserver); + } + + /** + * + * + *
+     * Attempts a streaming sequence.
+     * 
+ */ + default void attemptStreamingSequence( + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAttemptStreamingSequenceMethod(), responseObserver); + } + } + + /** Base class for the server implementation of the service SequenceService. */ + public abstract static class SequenceServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return SequenceServiceGrpc.bindService(this); + } + } + + /** A stub to allow clients to do asynchronous rpc calls to service SequenceService. */ + public static final class SequenceServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SequenceServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SequenceServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SequenceServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a sequence.
+     * 
+ */ + public void createSequence( + com.google.showcase.v1beta1.CreateSequenceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSequenceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a sequence.
+     * 
+ */ + public void createStreamingSequence( + com.google.showcase.v1beta1.CreateStreamingSequenceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateStreamingSequenceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a sequence.
+     * 
+ */ + public void getSequenceReport( + com.google.showcase.v1beta1.GetSequenceReportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSequenceReportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a sequence.
+     * 
+ */ + public void getStreamingSequenceReport( + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetStreamingSequenceReportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Attempts a sequence.
+     * 
+ */ + public void attemptSequence( + com.google.showcase.v1beta1.AttemptSequenceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAttemptSequenceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Attempts a streaming sequence.
+     * 
+ */ + public void attemptStreamingSequence( + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getAttemptStreamingSequenceMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** A stub to allow clients to do synchronous rpc calls to service SequenceService. */ + public static final class SequenceServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SequenceServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SequenceServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SequenceServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a sequence.
+     * 
+ */ + public com.google.showcase.v1beta1.Sequence createSequence( + com.google.showcase.v1beta1.CreateSequenceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSequenceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a sequence.
+     * 
+ */ + public com.google.showcase.v1beta1.StreamingSequence createStreamingSequence( + com.google.showcase.v1beta1.CreateStreamingSequenceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateStreamingSequenceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves a sequence.
+     * 
+ */ + public com.google.showcase.v1beta1.SequenceReport getSequenceReport( + com.google.showcase.v1beta1.GetSequenceReportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSequenceReportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves a sequence.
+     * 
+ */ + public com.google.showcase.v1beta1.StreamingSequenceReport getStreamingSequenceReport( + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetStreamingSequenceReportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Attempts a sequence.
+     * 
+ */ + public com.google.protobuf.Empty attemptSequence( + com.google.showcase.v1beta1.AttemptSequenceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAttemptSequenceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Attempts a streaming sequence.
+     * 
+ */ + public java.util.Iterator + attemptStreamingSequence( + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getAttemptStreamingSequenceMethod(), getCallOptions(), request); + } + } + + /** A stub to allow clients to do ListenableFuture-style rpc calls to service SequenceService. */ + public static final class SequenceServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SequenceServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SequenceServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SequenceServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a sequence.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createSequence(com.google.showcase.v1beta1.CreateSequenceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSequenceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a sequence.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.StreamingSequence> + createStreamingSequence( + com.google.showcase.v1beta1.CreateStreamingSequenceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateStreamingSequenceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves a sequence.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.SequenceReport> + getSequenceReport(com.google.showcase.v1beta1.GetSequenceReportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSequenceReportMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves a sequence.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.StreamingSequenceReport> + getStreamingSequenceReport( + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetStreamingSequenceReportMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Attempts a sequence.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + attemptSequence(com.google.showcase.v1beta1.AttemptSequenceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAttemptSequenceMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SEQUENCE = 0; + private static final int METHODID_CREATE_STREAMING_SEQUENCE = 1; + private static final int METHODID_GET_SEQUENCE_REPORT = 2; + private static final int METHODID_GET_STREAMING_SEQUENCE_REPORT = 3; + private static final int METHODID_ATTEMPT_SEQUENCE = 4; + private static final int METHODID_ATTEMPT_STREAMING_SEQUENCE = 5; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_CREATE_SEQUENCE: + serviceImpl.createSequence( + (com.google.showcase.v1beta1.CreateSequenceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_STREAMING_SEQUENCE: + serviceImpl.createStreamingSequence( + (com.google.showcase.v1beta1.CreateStreamingSequenceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SEQUENCE_REPORT: + serviceImpl.getSequenceReport( + (com.google.showcase.v1beta1.GetSequenceReportRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_STREAMING_SEQUENCE_REPORT: + serviceImpl.getStreamingSequenceReport( + (com.google.showcase.v1beta1.GetStreamingSequenceReportRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ATTEMPT_SEQUENCE: + serviceImpl.attemptSequence( + (com.google.showcase.v1beta1.AttemptSequenceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ATTEMPT_STREAMING_SEQUENCE: + serviceImpl.attemptStreamingSequence( + (com.google.showcase.v1beta1.AttemptStreamingSequenceRequest) request, + (io.grpc.stub.StreamObserver< + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse>) + 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateSequenceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.CreateSequenceRequest, + com.google.showcase.v1beta1.Sequence>(service, METHODID_CREATE_SEQUENCE))) + .addMethod( + getCreateStreamingSequenceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.CreateStreamingSequenceRequest, + com.google.showcase.v1beta1.StreamingSequence>( + service, METHODID_CREATE_STREAMING_SEQUENCE))) + .addMethod( + getGetSequenceReportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.GetSequenceReportRequest, + com.google.showcase.v1beta1.SequenceReport>( + service, METHODID_GET_SEQUENCE_REPORT))) + .addMethod( + getGetStreamingSequenceReportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest, + com.google.showcase.v1beta1.StreamingSequenceReport>( + service, METHODID_GET_STREAMING_SEQUENCE_REPORT))) + .addMethod( + getAttemptSequenceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.AttemptSequenceRequest, com.google.protobuf.Empty>( + service, METHODID_ATTEMPT_SEQUENCE))) + .addMethod( + getAttemptStreamingSequenceMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest, + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse>( + service, METHODID_ATTEMPT_STREAMING_SEQUENCE))) + .build(); + } + + private abstract static class SequenceServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SequenceServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SequenceService"); + } + } + + private static final class SequenceServiceFileDescriptorSupplier + extends SequenceServiceBaseDescriptorSupplier { + SequenceServiceFileDescriptorSupplier() {} + } + + private static final class SequenceServiceMethodDescriptorSupplier + extends SequenceServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SequenceServiceMethodDescriptorSupplier(java.lang.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 (SequenceServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SequenceServiceFileDescriptorSupplier()) + .addMethod(getCreateSequenceMethod()) + .addMethod(getCreateStreamingSequenceMethod()) + .addMethod(getGetSequenceReportMethod()) + .addMethod(getGetStreamingSequenceReportMethod()) + .addMethod(getAttemptSequenceMethod()) + .addMethod(getAttemptStreamingSequenceMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestingGrpc.java b/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestingGrpc.java new file mode 100644 index 0000000000..a68a3d045b --- /dev/null +++ b/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestingGrpc.java @@ -0,0 +1,1215 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * A service to facilitate running discrete sets of tests
+ * against Showcase.
+ * Adding this comment with special characters for comment formatting tests:
+ * 1. (abra->kadabra->alakazam)
+ * 2) [Nonsense][]: `pokemon/*/psychic/*`
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: schema/google/showcase/v1beta1/testing.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TestingGrpc { + + private TestingGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.showcase.v1beta1.Testing"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateSessionRequest, com.google.showcase.v1beta1.Session> + getCreateSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSession", + requestType = com.google.showcase.v1beta1.CreateSessionRequest.class, + responseType = com.google.showcase.v1beta1.Session.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateSessionRequest, com.google.showcase.v1beta1.Session> + getCreateSessionMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.CreateSessionRequest, com.google.showcase.v1beta1.Session> + getCreateSessionMethod; + if ((getCreateSessionMethod = TestingGrpc.getCreateSessionMethod) == null) { + synchronized (TestingGrpc.class) { + if ((getCreateSessionMethod = TestingGrpc.getCreateSessionMethod) == null) { + TestingGrpc.getCreateSessionMethod = + getCreateSessionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.CreateSessionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.Session.getDefaultInstance())) + .setSchemaDescriptor(new TestingMethodDescriptorSupplier("CreateSession")) + .build(); + } + } + } + return getCreateSessionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.GetSessionRequest, com.google.showcase.v1beta1.Session> + getGetSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSession", + requestType = com.google.showcase.v1beta1.GetSessionRequest.class, + responseType = com.google.showcase.v1beta1.Session.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.GetSessionRequest, com.google.showcase.v1beta1.Session> + getGetSessionMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.GetSessionRequest, com.google.showcase.v1beta1.Session> + getGetSessionMethod; + if ((getGetSessionMethod = TestingGrpc.getGetSessionMethod) == null) { + synchronized (TestingGrpc.class) { + if ((getGetSessionMethod = TestingGrpc.getGetSessionMethod) == null) { + TestingGrpc.getGetSessionMethod = + getGetSessionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.GetSessionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.Session.getDefaultInstance())) + .setSchemaDescriptor(new TestingMethodDescriptorSupplier("GetSession")) + .build(); + } + } + } + return getGetSessionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ListSessionsRequest, + com.google.showcase.v1beta1.ListSessionsResponse> + getListSessionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSessions", + requestType = com.google.showcase.v1beta1.ListSessionsRequest.class, + responseType = com.google.showcase.v1beta1.ListSessionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ListSessionsRequest, + com.google.showcase.v1beta1.ListSessionsResponse> + getListSessionsMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ListSessionsRequest, + com.google.showcase.v1beta1.ListSessionsResponse> + getListSessionsMethod; + if ((getListSessionsMethod = TestingGrpc.getListSessionsMethod) == null) { + synchronized (TestingGrpc.class) { + if ((getListSessionsMethod = TestingGrpc.getListSessionsMethod) == null) { + TestingGrpc.getListSessionsMethod = + getListSessionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSessions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListSessionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListSessionsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new TestingMethodDescriptorSupplier("ListSessions")) + .build(); + } + } + } + return getListSessionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.DeleteSessionRequest, com.google.protobuf.Empty> + getDeleteSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSession", + requestType = com.google.showcase.v1beta1.DeleteSessionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.DeleteSessionRequest, com.google.protobuf.Empty> + getDeleteSessionMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.DeleteSessionRequest, com.google.protobuf.Empty> + getDeleteSessionMethod; + if ((getDeleteSessionMethod = TestingGrpc.getDeleteSessionMethod) == null) { + synchronized (TestingGrpc.class) { + if ((getDeleteSessionMethod = TestingGrpc.getDeleteSessionMethod) == null) { + TestingGrpc.getDeleteSessionMethod = + getDeleteSessionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.DeleteSessionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new TestingMethodDescriptorSupplier("DeleteSession")) + .build(); + } + } + } + return getDeleteSessionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ReportSessionRequest, + com.google.showcase.v1beta1.ReportSessionResponse> + getReportSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ReportSession", + requestType = com.google.showcase.v1beta1.ReportSessionRequest.class, + responseType = com.google.showcase.v1beta1.ReportSessionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ReportSessionRequest, + com.google.showcase.v1beta1.ReportSessionResponse> + getReportSessionMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ReportSessionRequest, + com.google.showcase.v1beta1.ReportSessionResponse> + getReportSessionMethod; + if ((getReportSessionMethod = TestingGrpc.getReportSessionMethod) == null) { + synchronized (TestingGrpc.class) { + if ((getReportSessionMethod = TestingGrpc.getReportSessionMethod) == null) { + TestingGrpc.getReportSessionMethod = + getReportSessionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReportSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ReportSessionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ReportSessionResponse + .getDefaultInstance())) + .setSchemaDescriptor(new TestingMethodDescriptorSupplier("ReportSession")) + .build(); + } + } + } + return getReportSessionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ListTestsRequest, + com.google.showcase.v1beta1.ListTestsResponse> + getListTestsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTests", + requestType = com.google.showcase.v1beta1.ListTestsRequest.class, + responseType = com.google.showcase.v1beta1.ListTestsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ListTestsRequest, + com.google.showcase.v1beta1.ListTestsResponse> + getListTestsMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.ListTestsRequest, + com.google.showcase.v1beta1.ListTestsResponse> + getListTestsMethod; + if ((getListTestsMethod = TestingGrpc.getListTestsMethod) == null) { + synchronized (TestingGrpc.class) { + if ((getListTestsMethod = TestingGrpc.getListTestsMethod) == null) { + TestingGrpc.getListTestsMethod = + getListTestsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTests")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListTestsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.ListTestsResponse.getDefaultInstance())) + .setSchemaDescriptor(new TestingMethodDescriptorSupplier("ListTests")) + .build(); + } + } + } + return getListTestsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.DeleteTestRequest, com.google.protobuf.Empty> + getDeleteTestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTest", + requestType = com.google.showcase.v1beta1.DeleteTestRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.DeleteTestRequest, com.google.protobuf.Empty> + getDeleteTestMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.DeleteTestRequest, com.google.protobuf.Empty> + getDeleteTestMethod; + if ((getDeleteTestMethod = TestingGrpc.getDeleteTestMethod) == null) { + synchronized (TestingGrpc.class) { + if ((getDeleteTestMethod = TestingGrpc.getDeleteTestMethod) == null) { + TestingGrpc.getDeleteTestMethod = + getDeleteTestMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.DeleteTestRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new TestingMethodDescriptorSupplier("DeleteTest")) + .build(); + } + } + } + return getDeleteTestMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.VerifyTestRequest, + com.google.showcase.v1beta1.VerifyTestResponse> + getVerifyTestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "VerifyTest", + requestType = com.google.showcase.v1beta1.VerifyTestRequest.class, + responseType = com.google.showcase.v1beta1.VerifyTestResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.VerifyTestRequest, + com.google.showcase.v1beta1.VerifyTestResponse> + getVerifyTestMethod() { + io.grpc.MethodDescriptor< + com.google.showcase.v1beta1.VerifyTestRequest, + com.google.showcase.v1beta1.VerifyTestResponse> + getVerifyTestMethod; + if ((getVerifyTestMethod = TestingGrpc.getVerifyTestMethod) == null) { + synchronized (TestingGrpc.class) { + if ((getVerifyTestMethod = TestingGrpc.getVerifyTestMethod) == null) { + TestingGrpc.getVerifyTestMethod = + getVerifyTestMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyTest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.VerifyTestRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.VerifyTestResponse.getDefaultInstance())) + .setSchemaDescriptor(new TestingMethodDescriptorSupplier("VerifyTest")) + .build(); + } + } + } + return getVerifyTestMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static TestingStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TestingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TestingStub(channel, callOptions); + } + }; + return TestingStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TestingBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TestingBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TestingBlockingStub(channel, callOptions); + } + }; + return TestingBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static TestingFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TestingFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TestingFutureStub(channel, callOptions); + } + }; + return TestingFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * A service to facilitate running discrete sets of tests
+   * against Showcase.
+   * Adding this comment with special characters for comment formatting tests:
+   * 1. (abra->kadabra->alakazam)
+   * 2) [Nonsense][]: `pokemon/*/psychic/*`
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates a new testing session.
+     * Adding this comment with special characters for comment formatting tests:
+     * 1. (abra->kadabra->alakazam)
+     * 2) [Nonsense][]: `pokemon/*/psychic/*`
+     * 
+ */ + default void createSession( + com.google.showcase.v1beta1.CreateSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSessionMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a testing session.
+     * 
+ */ + default void getSession( + com.google.showcase.v1beta1.GetSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSessionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the current test sessions.
+     * 
+ */ + default void listSessions( + com.google.showcase.v1beta1.ListSessionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSessionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a test session.
+     * 
+ */ + default void deleteSession( + com.google.showcase.v1beta1.DeleteSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSessionMethod(), responseObserver); + } + + /** + * + * + *
+     * Report on the status of a session.
+     * This generates a report detailing which tests have been completed,
+     * and an overall rollup.
+     * 
+ */ + default void reportSession( + com.google.showcase.v1beta1.ReportSessionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getReportSessionMethod(), responseObserver); + } + + /** + * + * + *
+     * List the tests of a sessesion.
+     * 
+ */ + default void listTests( + com.google.showcase.v1beta1.ListTestsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTestsMethod(), responseObserver); + } + + /** + * + * + *
+     * Explicitly decline to implement a test.
+     * This removes the test from subsequent `ListTests` calls, and
+     * attempting to do the test will error.
+     * This method will error if attempting to delete a required test.
+     * 
+ */ + default void deleteTest( + com.google.showcase.v1beta1.DeleteTestRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTestMethod(), responseObserver); + } + + /** + * + * + *
+     * Register a response to a test.
+     * In cases where a test involves registering a final answer at the
+     * end of the test, this method provides the means to do so.
+     * 
+ */ + default void verifyTest( + com.google.showcase.v1beta1.VerifyTestRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyTestMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Testing. + * + *
+   * A service to facilitate running discrete sets of tests
+   * against Showcase.
+   * Adding this comment with special characters for comment formatting tests:
+   * 1. (abra->kadabra->alakazam)
+   * 2) [Nonsense][]: `pokemon/*/psychic/*`
+   * 
+ */ + public abstract static class TestingImplBase implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return TestingGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Testing. + * + *
+   * A service to facilitate running discrete sets of tests
+   * against Showcase.
+   * Adding this comment with special characters for comment formatting tests:
+   * 1. (abra->kadabra->alakazam)
+   * 2) [Nonsense][]: `pokemon/*/psychic/*`
+   * 
+ */ + public static final class TestingStub extends io.grpc.stub.AbstractAsyncStub { + private TestingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TestingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TestingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new testing session.
+     * Adding this comment with special characters for comment formatting tests:
+     * 1. (abra->kadabra->alakazam)
+     * 2) [Nonsense][]: `pokemon/*/psychic/*`
+     * 
+ */ + public void createSession( + com.google.showcase.v1beta1.CreateSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSessionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a testing session.
+     * 
+ */ + public void getSession( + com.google.showcase.v1beta1.GetSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSessionMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists the current test sessions.
+     * 
+ */ + public void listSessions( + com.google.showcase.v1beta1.ListSessionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSessionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a test session.
+     * 
+ */ + public void deleteSession( + com.google.showcase.v1beta1.DeleteSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSessionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Report on the status of a session.
+     * This generates a report detailing which tests have been completed,
+     * and an overall rollup.
+     * 
+ */ + public void reportSession( + com.google.showcase.v1beta1.ReportSessionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getReportSessionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List the tests of a sessesion.
+     * 
+ */ + public void listTests( + com.google.showcase.v1beta1.ListTestsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTestsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Explicitly decline to implement a test.
+     * This removes the test from subsequent `ListTests` calls, and
+     * attempting to do the test will error.
+     * This method will error if attempting to delete a required test.
+     * 
+ */ + public void deleteTest( + com.google.showcase.v1beta1.DeleteTestRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTestMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Register a response to a test.
+     * In cases where a test involves registering a final answer at the
+     * end of the test, this method provides the means to do so.
+     * 
+ */ + public void verifyTest( + com.google.showcase.v1beta1.VerifyTestRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getVerifyTestMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Testing. + * + *
+   * A service to facilitate running discrete sets of tests
+   * against Showcase.
+   * Adding this comment with special characters for comment formatting tests:
+   * 1. (abra->kadabra->alakazam)
+   * 2) [Nonsense][]: `pokemon/*/psychic/*`
+   * 
+ */ + public static final class TestingBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TestingBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TestingBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TestingBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new testing session.
+     * Adding this comment with special characters for comment formatting tests:
+     * 1. (abra->kadabra->alakazam)
+     * 2) [Nonsense][]: `pokemon/*/psychic/*`
+     * 
+ */ + public com.google.showcase.v1beta1.Session createSession( + com.google.showcase.v1beta1.CreateSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSessionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a testing session.
+     * 
+ */ + public com.google.showcase.v1beta1.Session getSession( + com.google.showcase.v1beta1.GetSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSessionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the current test sessions.
+     * 
+ */ + public com.google.showcase.v1beta1.ListSessionsResponse listSessions( + com.google.showcase.v1beta1.ListSessionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSessionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a test session.
+     * 
+ */ + public com.google.protobuf.Empty deleteSession( + com.google.showcase.v1beta1.DeleteSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSessionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Report on the status of a session.
+     * This generates a report detailing which tests have been completed,
+     * and an overall rollup.
+     * 
+ */ + public com.google.showcase.v1beta1.ReportSessionResponse reportSession( + com.google.showcase.v1beta1.ReportSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getReportSessionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List the tests of a sessesion.
+     * 
+ */ + public com.google.showcase.v1beta1.ListTestsResponse listTests( + com.google.showcase.v1beta1.ListTestsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTestsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Explicitly decline to implement a test.
+     * This removes the test from subsequent `ListTests` calls, and
+     * attempting to do the test will error.
+     * This method will error if attempting to delete a required test.
+     * 
+ */ + public com.google.protobuf.Empty deleteTest( + com.google.showcase.v1beta1.DeleteTestRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTestMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Register a response to a test.
+     * In cases where a test involves registering a final answer at the
+     * end of the test, this method provides the means to do so.
+     * 
+ */ + public com.google.showcase.v1beta1.VerifyTestResponse verifyTest( + com.google.showcase.v1beta1.VerifyTestRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyTestMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Testing. + * + *
+   * A service to facilitate running discrete sets of tests
+   * against Showcase.
+   * Adding this comment with special characters for comment formatting tests:
+   * 1. (abra->kadabra->alakazam)
+   * 2) [Nonsense][]: `pokemon/*/psychic/*`
+   * 
+ */ + public static final class TestingFutureStub + extends io.grpc.stub.AbstractFutureStub { + private TestingFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TestingFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TestingFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new testing session.
+     * Adding this comment with special characters for comment formatting tests:
+     * 1. (abra->kadabra->alakazam)
+     * 2) [Nonsense][]: `pokemon/*/psychic/*`
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createSession(com.google.showcase.v1beta1.CreateSessionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSessionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a testing session.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getSession(com.google.showcase.v1beta1.GetSessionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSessionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the current test sessions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.ListSessionsResponse> + listSessions(com.google.showcase.v1beta1.ListSessionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSessionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a test session.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSession(com.google.showcase.v1beta1.DeleteSessionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSessionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Report on the status of a session.
+     * This generates a report detailing which tests have been completed,
+     * and an overall rollup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.ReportSessionResponse> + reportSession(com.google.showcase.v1beta1.ReportSessionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getReportSessionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List the tests of a sessesion.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.ListTestsResponse> + listTests(com.google.showcase.v1beta1.ListTestsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTestsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Explicitly decline to implement a test.
+     * This removes the test from subsequent `ListTests` calls, and
+     * attempting to do the test will error.
+     * This method will error if attempting to delete a required test.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteTest( + com.google.showcase.v1beta1.DeleteTestRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTestMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Register a response to a test.
+     * In cases where a test involves registering a final answer at the
+     * end of the test, this method provides the means to do so.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.showcase.v1beta1.VerifyTestResponse> + verifyTest(com.google.showcase.v1beta1.VerifyTestRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getVerifyTestMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SESSION = 0; + private static final int METHODID_GET_SESSION = 1; + private static final int METHODID_LIST_SESSIONS = 2; + private static final int METHODID_DELETE_SESSION = 3; + private static final int METHODID_REPORT_SESSION = 4; + private static final int METHODID_LIST_TESTS = 5; + private static final int METHODID_DELETE_TEST = 6; + private static final int METHODID_VERIFY_TEST = 7; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_CREATE_SESSION: + serviceImpl.createSession( + (com.google.showcase.v1beta1.CreateSessionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SESSION: + serviceImpl.getSession( + (com.google.showcase.v1beta1.GetSessionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SESSIONS: + serviceImpl.listSessions( + (com.google.showcase.v1beta1.ListSessionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SESSION: + serviceImpl.deleteSession( + (com.google.showcase.v1beta1.DeleteSessionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REPORT_SESSION: + serviceImpl.reportSession( + (com.google.showcase.v1beta1.ReportSessionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_TESTS: + serviceImpl.listTests( + (com.google.showcase.v1beta1.ListTestsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_TEST: + serviceImpl.deleteTest( + (com.google.showcase.v1beta1.DeleteTestRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VERIFY_TEST: + serviceImpl.verifyTest( + (com.google.showcase.v1beta1.VerifyTestRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.CreateSessionRequest, + com.google.showcase.v1beta1.Session>(service, METHODID_CREATE_SESSION))) + .addMethod( + getGetSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.GetSessionRequest, + com.google.showcase.v1beta1.Session>(service, METHODID_GET_SESSION))) + .addMethod( + getListSessionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.ListSessionsRequest, + com.google.showcase.v1beta1.ListSessionsResponse>( + service, METHODID_LIST_SESSIONS))) + .addMethod( + getDeleteSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.DeleteSessionRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_SESSION))) + .addMethod( + getReportSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.ReportSessionRequest, + com.google.showcase.v1beta1.ReportSessionResponse>( + service, METHODID_REPORT_SESSION))) + .addMethod( + getListTestsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.ListTestsRequest, + com.google.showcase.v1beta1.ListTestsResponse>(service, METHODID_LIST_TESTS))) + .addMethod( + getDeleteTestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.DeleteTestRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_TEST))) + .addMethod( + getVerifyTestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.showcase.v1beta1.VerifyTestRequest, + com.google.showcase.v1beta1.VerifyTestResponse>(service, METHODID_VERIFY_TEST))) + .build(); + } + + private abstract static class TestingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TestingBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Testing"); + } + } + + private static final class TestingFileDescriptorSupplier extends TestingBaseDescriptorSupplier { + TestingFileDescriptorSupplier() {} + } + + private static final class TestingMethodDescriptorSupplier extends TestingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + TestingMethodDescriptorSupplier(java.lang.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 (TestingGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TestingFileDescriptorSupplier()) + .addMethod(getCreateSessionMethod()) + .addMethod(getGetSessionMethod()) + .addMethod(getListSessionsMethod()) + .addMethod(getDeleteSessionMethod()) + .addMethod(getReportSessionMethod()) + .addMethod(getListTestsMethod()) + .addMethod(getDeleteTestMethod()) + .addMethod(getVerifyTestMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-showcase/owlbot.py b/java-showcase/owlbot.py new file mode 100644 index 0000000000..6459677635 --- /dev/null +++ b/java-showcase/owlbot.py @@ -0,0 +1,39 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import synthtool as s +from synthtool.languages import java + + +for library in s.get_staging_dirs(): + # put any special-case replacements here + print('moving library asdasd: ') + print(library) + s.move(library) + +s.remove_staging_dirs() +java.common_templates(monorepo=True, excludes=[ + ".github/*", + ".kokoro/*", + "samples/*", + "README.md", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.md", + "LICENSE", + "SECURITY.md", + "java.header", + "license-checks.xml", + "renovate.json", + ".gitignore" +]) \ No newline at end of file diff --git a/showcase/pom.xml b/java-showcase/pom.xml similarity index 93% rename from showcase/pom.xml rename to java-showcase/pom.xml index b90ff3b374..65a13f6c03 100644 --- a/showcase/pom.xml +++ b/java-showcase/pom.xml @@ -1,7 +1,5 @@ - + 4.0.0 com.google.cloud gapic-showcase-parent @@ -181,9 +179,9 @@ bash - scripts/generate_components.sh - true - true + scripts/generate_showcase.sh + --replace + true diff --git a/showcase/proto-gapic-showcase-v1beta1/pom.xml b/java-showcase/proto-gapic-showcase-v1beta1/pom.xml similarity index 100% rename from showcase/proto-gapic-showcase-v1beta1/pom.xml rename to java-showcase/proto-gapic-showcase-v1beta1/pom.xml diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequest.java similarity index 59% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequest.java index e1cf41aa94..6a9efe0f30 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequest.java @@ -1,50 +1,69 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/sequence.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -/** - * Protobuf type {@code google.showcase.v1beta1.AttemptSequenceRequest} - */ -public final class AttemptSequenceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.showcase.v1beta1.AttemptSequenceRequest} */ +public final class AttemptSequenceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.AttemptSequenceRequest) AttemptSequenceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AttemptSequenceRequest.newBuilder() to construct. private AttemptSequenceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AttemptSequenceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AttemptSequenceRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptSequenceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_AttemptSequenceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptSequenceRequest_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_AttemptSequenceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.AttemptSequenceRequest.class, com.google.showcase.v1beta1.AttemptSequenceRequest.Builder.class); + com.google.showcase.v1beta1.AttemptSequenceRequest.class, + com.google.showcase.v1beta1.AttemptSequenceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -53,25 +72,25 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -80,6 +99,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -91,8 +111,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -116,15 +135,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.AttemptSequenceRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.AttemptSequenceRequest other = (com.google.showcase.v1beta1.AttemptSequenceRequest) obj; + com.google.showcase.v1beta1.AttemptSequenceRequest other = + (com.google.showcase.v1beta1.AttemptSequenceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -144,127 +163,127 @@ public int hashCode() { } public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.AttemptSequenceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.AttemptSequenceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.AttemptSequenceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.AttemptSequenceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.AttemptSequenceRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.AttemptSequenceRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.AttemptSequenceRequest) com.google.showcase.v1beta1.AttemptSequenceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptSequenceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_AttemptSequenceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptSequenceRequest_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_AttemptSequenceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.AttemptSequenceRequest.class, com.google.showcase.v1beta1.AttemptSequenceRequest.Builder.class); + com.google.showcase.v1beta1.AttemptSequenceRequest.class, + com.google.showcase.v1beta1.AttemptSequenceRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.AttemptSequenceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptSequenceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_AttemptSequenceRequest_descriptor; } @java.lang.Override @@ -295,8 +314,11 @@ public com.google.showcase.v1beta1.AttemptSequenceRequest build() { @java.lang.Override public com.google.showcase.v1beta1.AttemptSequenceRequest buildPartial() { - com.google.showcase.v1beta1.AttemptSequenceRequest result = new com.google.showcase.v1beta1.AttemptSequenceRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.AttemptSequenceRequest result = + new com.google.showcase.v1beta1.AttemptSequenceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -312,38 +334,39 @@ private void buildPartial0(com.google.showcase.v1beta1.AttemptSequenceRequest re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.AttemptSequenceRequest) { - return mergeFrom((com.google.showcase.v1beta1.AttemptSequenceRequest)other); + return mergeFrom((com.google.showcase.v1beta1.AttemptSequenceRequest) other); } else { super.mergeFrom(other); return this; @@ -351,7 +374,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.AttemptSequenceRequest other) { - if (other == com.google.showcase.v1beta1.AttemptSequenceRequest.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.AttemptSequenceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -383,17 +407,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -403,18 +429,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -423,16 +452,17 @@ public java.lang.String getName() { } } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -440,20 +470,27 @@ public java.lang.String getName() { } } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -463,22 +500,26 @@ public Builder clearName() { return this; } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -488,12 +529,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.AttemptSequenceRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.AttemptSequenceRequest) private static final com.google.showcase.v1beta1.AttemptSequenceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.AttemptSequenceRequest(); } @@ -502,27 +543,27 @@ public static com.google.showcase.v1beta1.AttemptSequenceRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AttemptSequenceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttemptSequenceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -537,6 +578,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.AttemptSequenceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequestOrBuilder.java new file mode 100644 index 0000000000..a10002ce69 --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequestOrBuilder.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface AttemptSequenceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.AttemptSequenceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java similarity index 62% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java index 0b9044935c..aab49416b8 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java @@ -1,50 +1,70 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/sequence.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -/** - * Protobuf type {@code google.showcase.v1beta1.AttemptStreamingSequenceRequest} - */ -public final class AttemptStreamingSequenceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.showcase.v1beta1.AttemptStreamingSequenceRequest} */ +public final class AttemptStreamingSequenceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.AttemptStreamingSequenceRequest) AttemptStreamingSequenceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AttemptStreamingSequenceRequest.newBuilder() to construct. - private AttemptStreamingSequenceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AttemptStreamingSequenceRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AttemptStreamingSequenceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AttemptStreamingSequenceRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.class, com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.Builder.class); + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.class, + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -53,25 +73,25 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -82,6 +102,8 @@ public java.lang.String getName() { public static final int LAST_FAIL_INDEX_FIELD_NUMBER = 2; private int lastFailIndex_ = 0; /** + * + * *
    * used to send the index of the last failed message
    * in the string "content" of an AttemptStreamingSequenceResponse
@@ -89,6 +111,7 @@ public java.lang.String getName() {
    * 
* * int32 last_fail_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The lastFailIndex. */ @java.lang.Override @@ -97,6 +120,7 @@ public int getLastFailIndex() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,8 +152,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (lastFailIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, lastFailIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, lastFailIndex_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -140,17 +162,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.AttemptStreamingSequenceRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.AttemptStreamingSequenceRequest other = (com.google.showcase.v1beta1.AttemptStreamingSequenceRequest) obj; + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest other = + (com.google.showcase.v1beta1.AttemptStreamingSequenceRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getLastFailIndex() - != other.getLastFailIndex()) return false; + if (!getName().equals(other.getName())) return false; + if (getLastFailIndex() != other.getLastFailIndex()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,127 +193,128 @@ public int hashCode() { } public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.showcase.v1beta1.AttemptStreamingSequenceRequest prototype) { + + public static Builder newBuilder( + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.AttemptStreamingSequenceRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.AttemptStreamingSequenceRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.AttemptStreamingSequenceRequest) com.google.showcase.v1beta1.AttemptStreamingSequenceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.class, com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.Builder.class); + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.class, + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -303,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_descriptor; } @java.lang.Override @@ -324,8 +346,11 @@ public com.google.showcase.v1beta1.AttemptStreamingSequenceRequest build() { @java.lang.Override public com.google.showcase.v1beta1.AttemptStreamingSequenceRequest buildPartial() { - com.google.showcase.v1beta1.AttemptStreamingSequenceRequest result = new com.google.showcase.v1beta1.AttemptStreamingSequenceRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.AttemptStreamingSequenceRequest result = + new com.google.showcase.v1beta1.AttemptStreamingSequenceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -344,38 +369,39 @@ private void buildPartial0(com.google.showcase.v1beta1.AttemptStreamingSequenceR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.AttemptStreamingSequenceRequest) { - return mergeFrom((com.google.showcase.v1beta1.AttemptStreamingSequenceRequest)other); + return mergeFrom((com.google.showcase.v1beta1.AttemptStreamingSequenceRequest) other); } else { super.mergeFrom(other); return this; @@ -383,7 +409,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.AttemptStreamingSequenceRequest other) { - if (other == com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -418,22 +445,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - lastFailIndex_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + lastFailIndex_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -443,18 +473,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -463,16 +496,17 @@ public java.lang.String getName() { } } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -480,20 +514,27 @@ public java.lang.String getName() { } } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -503,13 +544,17 @@ public Builder clearName() { return this; } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -517,8 +562,10 @@ public Builder setNameBytes( return this; } - private int lastFailIndex_ ; + private int lastFailIndex_; /** + * + * *
      * used to send the index of the last failed message
      * in the string "content" of an AttemptStreamingSequenceResponse
@@ -526,6 +573,7 @@ public Builder setNameBytes(
      * 
* * int32 last_fail_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The lastFailIndex. */ @java.lang.Override @@ -533,6 +581,8 @@ public int getLastFailIndex() { return lastFailIndex_; } /** + * + * *
      * used to send the index of the last failed message
      * in the string "content" of an AttemptStreamingSequenceResponse
@@ -540,6 +590,7 @@ public int getLastFailIndex() {
      * 
* * int32 last_fail_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The lastFailIndex to set. * @return This builder for chaining. */ @@ -551,6 +602,8 @@ public Builder setLastFailIndex(int value) { return this; } /** + * + * *
      * used to send the index of the last failed message
      * in the string "content" of an AttemptStreamingSequenceResponse
@@ -558,6 +611,7 @@ public Builder setLastFailIndex(int value) {
      * 
* * int32 last_fail_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLastFailIndex() { @@ -566,9 +620,9 @@ public Builder clearLastFailIndex() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -578,12 +632,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.AttemptStreamingSequenceRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.AttemptStreamingSequenceRequest) private static final com.google.showcase.v1beta1.AttemptStreamingSequenceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.AttemptStreamingSequenceRequest(); } @@ -592,27 +646,27 @@ public static com.google.showcase.v1beta1.AttemptStreamingSequenceRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AttemptStreamingSequenceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttemptStreamingSequenceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -627,6 +681,4 @@ public com.google.protobuf.Parser getParserForT public com.google.showcase.v1beta1.AttemptStreamingSequenceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequestOrBuilder.java new file mode 100644 index 0000000000..20e160f8b1 --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface AttemptStreamingSequenceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.AttemptStreamingSequenceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * used to send the index of the last failed message
+   * in the string "content" of an AttemptStreamingSequenceResponse
+   * needed for stream resumption logic testing
+   * 
+ * + * int32 last_fail_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The lastFailIndex. + */ + int getLastFailIndex(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponse.java similarity index 63% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponse.java index 4fe02ec1c1..0204e7f6f5 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/sequence.proto @@ -5,54 +20,63 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The response message for the Echo methods.
  * 
* * Protobuf type {@code google.showcase.v1beta1.AttemptStreamingSequenceResponse} */ -public final class AttemptStreamingSequenceResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AttemptStreamingSequenceResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.AttemptStreamingSequenceResponse) AttemptStreamingSequenceResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AttemptStreamingSequenceResponse.newBuilder() to construct. - private AttemptStreamingSequenceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AttemptStreamingSequenceResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AttemptStreamingSequenceResponse() { content_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AttemptStreamingSequenceResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.class, com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.Builder.class); + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.class, + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object content_ = ""; /** + * + * *
    * The content specified in the request.
    * 
* * string content = 1; + * * @return The content. */ @java.lang.Override @@ -61,29 +85,29 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** + * + * *
    * The content specified in the request.
    * 
* * string content = 1; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -92,6 +116,7 @@ public java.lang.String getContent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +128,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } @@ -128,15 +152,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.AttemptStreamingSequenceResponse)) { return super.equals(obj); } - com.google.showcase.v1beta1.AttemptStreamingSequenceResponse other = (com.google.showcase.v1beta1.AttemptStreamingSequenceResponse) obj; + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse other = + (com.google.showcase.v1beta1.AttemptStreamingSequenceResponse) obj; - if (!getContent() - .equals(other.getContent())) return false; + if (!getContent().equals(other.getContent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -156,131 +180,136 @@ public int hashCode() { } public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.showcase.v1beta1.AttemptStreamingSequenceResponse prototype) { + + public static Builder newBuilder( + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response message for the Echo methods.
    * 
* * Protobuf type {@code google.showcase.v1beta1.AttemptStreamingSequenceResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.AttemptStreamingSequenceResponse) com.google.showcase.v1beta1.AttemptStreamingSequenceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.class, com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.Builder.class); + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.class, + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.Builder.class); } // Construct using com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -290,13 +319,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_descriptor; } @java.lang.Override - public com.google.showcase.v1beta1.AttemptStreamingSequenceResponse getDefaultInstanceForType() { + public com.google.showcase.v1beta1.AttemptStreamingSequenceResponse + getDefaultInstanceForType() { return com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.getDefaultInstance(); } @@ -311,13 +341,17 @@ public com.google.showcase.v1beta1.AttemptStreamingSequenceResponse build() { @java.lang.Override public com.google.showcase.v1beta1.AttemptStreamingSequenceResponse buildPartial() { - com.google.showcase.v1beta1.AttemptStreamingSequenceResponse result = new com.google.showcase.v1beta1.AttemptStreamingSequenceResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse result = + new com.google.showcase.v1beta1.AttemptStreamingSequenceResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.showcase.v1beta1.AttemptStreamingSequenceResponse result) { + private void buildPartial0( + com.google.showcase.v1beta1.AttemptStreamingSequenceResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.content_ = content_; @@ -328,38 +362,39 @@ private void buildPartial0(com.google.showcase.v1beta1.AttemptStreamingSequenceR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.AttemptStreamingSequenceResponse) { - return mergeFrom((com.google.showcase.v1beta1.AttemptStreamingSequenceResponse)other); + return mergeFrom((com.google.showcase.v1beta1.AttemptStreamingSequenceResponse) other); } else { super.mergeFrom(other); return this; @@ -367,7 +402,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.AttemptStreamingSequenceResponse other) { - if (other == com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.getDefaultInstance()) return this; + if (other + == com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.getDefaultInstance()) + return this; if (!other.getContent().isEmpty()) { content_ = other.content_; bitField0_ |= 0x00000001; @@ -399,17 +436,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - content_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -419,22 +458,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object content_ = ""; /** + * + * *
      * The content specified in the request.
      * 
* * string content = 1; + * * @return The content. */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -443,20 +485,21 @@ public java.lang.String getContent() { } } /** + * + * *
      * The content specified in the request.
      * 
* * string content = 1; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -464,28 +507,35 @@ public java.lang.String getContent() { } } /** + * + * *
      * The content specified in the request.
      * 
* * string content = 1; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } content_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The content specified in the request.
      * 
* * string content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -495,26 +545,30 @@ public Builder clearContent() { return this; } /** + * + * *
      * The content specified in the request.
      * 
* * string content = 1; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); content_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -524,12 +578,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.AttemptStreamingSequenceResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.AttemptStreamingSequenceResponse) - private static final com.google.showcase.v1beta1.AttemptStreamingSequenceResponse DEFAULT_INSTANCE; + private static final com.google.showcase.v1beta1.AttemptStreamingSequenceResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.AttemptStreamingSequenceResponse(); } @@ -538,27 +593,27 @@ public static com.google.showcase.v1beta1.AttemptStreamingSequenceResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AttemptStreamingSequenceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttemptStreamingSequenceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -573,6 +628,4 @@ public com.google.protobuf.Parser getParserFor public com.google.showcase.v1beta1.AttemptStreamingSequenceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponseOrBuilder.java new file mode 100644 index 0000000000..44503f6401 --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponseOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface AttemptStreamingSequenceResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.AttemptStreamingSequenceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The content specified in the request.
+   * 
+ * + * string content = 1; + * + * @return The content. + */ + java.lang.String getContent(); + /** + * + * + *
+   * The content specified in the request.
+   * 
+ * + * string content = 1; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequest.java similarity index 71% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequest.java index 706ee756a8..a7b08b6304 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto @@ -5,55 +20,62 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request for Block method.
  * 
* * Protobuf type {@code google.showcase.v1beta1.BlockRequest} */ -public final class BlockRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BlockRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.BlockRequest) BlockRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BlockRequest.newBuilder() to construct. private BlockRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BlockRequest() { - } + + private BlockRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BlockRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_BlockRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockRequest_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_BlockRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.BlockRequest.class, com.google.showcase.v1beta1.BlockRequest.Builder.class); + com.google.showcase.v1beta1.BlockRequest.class, + com.google.showcase.v1beta1.BlockRequest.Builder.class); } private int bitField0_; private int responseCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object response_; + public enum ResponseCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ERROR(2), SUCCESS(3), RESPONSE_NOT_SET(0); private final int value; + private ResponseCase(int value) { this.value = value; } @@ -69,31 +91,37 @@ public static ResponseCase valueOf(int value) { public static ResponseCase forNumber(int value) { switch (value) { - case 2: return ERROR; - case 3: return SUCCESS; - case 0: return RESPONSE_NOT_SET; - default: return null; + case 2: + return ERROR; + case 3: + return SUCCESS; + case 0: + return RESPONSE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ResponseCase - getResponseCase() { - return ResponseCase.forNumber( - responseCase_); + public ResponseCase getResponseCase() { + return ResponseCase.forNumber(responseCase_); } public static final int RESPONSE_DELAY_FIELD_NUMBER = 1; private com.google.protobuf.Duration responseDelay_; /** + * + * *
    * The amount of time to block before returning a response.
    * 
* * .google.protobuf.Duration response_delay = 1; + * * @return Whether the responseDelay field is set. */ @java.lang.Override @@ -101,18 +129,25 @@ public boolean hasResponseDelay() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The amount of time to block before returning a response.
    * 
* * .google.protobuf.Duration response_delay = 1; + * * @return The responseDelay. */ @java.lang.Override public com.google.protobuf.Duration getResponseDelay() { - return responseDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : responseDelay_; + return responseDelay_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : responseDelay_; } /** + * + * *
    * The amount of time to block before returning a response.
    * 
@@ -121,17 +156,22 @@ public com.google.protobuf.Duration getResponseDelay() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getResponseDelayOrBuilder() { - return responseDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : responseDelay_; + return responseDelay_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : responseDelay_; } public static final int ERROR_FIELD_NUMBER = 2; /** + * + * *
    * The error that will be returned by the server. If this code is specified
    * to be the OK rpc code, an empty response will be returned.
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ @java.lang.Override @@ -139,22 +179,27 @@ public boolean hasError() { return responseCase_ == 2; } /** + * + * *
    * The error that will be returned by the server. If this code is specified
    * to be the OK rpc code, an empty response will be returned.
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ @java.lang.Override public com.google.rpc.Status getError() { if (responseCase_ == 2) { - return (com.google.rpc.Status) response_; + return (com.google.rpc.Status) response_; } return com.google.rpc.Status.getDefaultInstance(); } /** + * + * *
    * The error that will be returned by the server. If this code is specified
    * to be the OK rpc code, an empty response will be returned.
@@ -165,18 +210,21 @@ public com.google.rpc.Status getError() {
   @java.lang.Override
   public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
     if (responseCase_ == 2) {
-       return (com.google.rpc.Status) response_;
+      return (com.google.rpc.Status) response_;
     }
     return com.google.rpc.Status.getDefaultInstance();
   }
 
   public static final int SUCCESS_FIELD_NUMBER = 3;
   /**
+   *
+   *
    * 
    * The response to be returned that will signify successful method call.
    * 
* * .google.showcase.v1beta1.BlockResponse success = 3; + * * @return Whether the success field is set. */ @java.lang.Override @@ -184,21 +232,26 @@ public boolean hasSuccess() { return responseCase_ == 3; } /** + * + * *
    * The response to be returned that will signify successful method call.
    * 
* * .google.showcase.v1beta1.BlockResponse success = 3; + * * @return The success. */ @java.lang.Override public com.google.showcase.v1beta1.BlockResponse getSuccess() { if (responseCase_ == 3) { - return (com.google.showcase.v1beta1.BlockResponse) response_; + return (com.google.showcase.v1beta1.BlockResponse) response_; } return com.google.showcase.v1beta1.BlockResponse.getDefaultInstance(); } /** + * + * *
    * The response to be returned that will signify successful method call.
    * 
@@ -208,12 +261,13 @@ public com.google.showcase.v1beta1.BlockResponse getSuccess() { @java.lang.Override public com.google.showcase.v1beta1.BlockResponseOrBuilder getSuccessOrBuilder() { if (responseCase_ == 3) { - return (com.google.showcase.v1beta1.BlockResponse) response_; + return (com.google.showcase.v1beta1.BlockResponse) response_; } return com.google.showcase.v1beta1.BlockResponse.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +279,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getResponseDelay()); } @@ -246,16 +299,17 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getResponseDelay()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResponseDelay()); } if (responseCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.rpc.Status) response_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.rpc.Status) response_); } if (responseCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.showcase.v1beta1.BlockResponse) response_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.showcase.v1beta1.BlockResponse) response_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -265,7 +319,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.BlockRequest)) { return super.equals(obj); @@ -274,18 +328,15 @@ public boolean equals(final java.lang.Object obj) { if (hasResponseDelay() != other.hasResponseDelay()) return false; if (hasResponseDelay()) { - if (!getResponseDelay() - .equals(other.getResponseDelay())) return false; + if (!getResponseDelay().equals(other.getResponseDelay())) return false; } if (!getResponseCase().equals(other.getResponseCase())) return false; switch (responseCase_) { case 2: - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; break; case 3: - if (!getSuccess() - .equals(other.getSuccess())) return false; + if (!getSuccess().equals(other.getSuccess())) return false; break; case 0: default: @@ -322,120 +373,127 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.BlockRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.BlockRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.BlockRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.BlockRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.BlockRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.BlockRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.BlockRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.BlockRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.BlockRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.BlockRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.BlockRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.BlockRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.BlockRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.BlockRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.BlockRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for Block method.
    * 
* * Protobuf type {@code google.showcase.v1beta1.BlockRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.BlockRequest) com.google.showcase.v1beta1.BlockRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_BlockRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockRequest_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_BlockRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.BlockRequest.class, com.google.showcase.v1beta1.BlockRequest.Builder.class); + com.google.showcase.v1beta1.BlockRequest.class, + com.google.showcase.v1beta1.BlockRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.BlockRequest.newBuilder() @@ -443,17 +501,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResponseDelayFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +533,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_BlockRequest_descriptor; } @java.lang.Override @@ -496,8 +554,11 @@ public com.google.showcase.v1beta1.BlockRequest build() { @java.lang.Override public com.google.showcase.v1beta1.BlockRequest buildPartial() { - com.google.showcase.v1beta1.BlockRequest result = new com.google.showcase.v1beta1.BlockRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.BlockRequest result = + new com.google.showcase.v1beta1.BlockRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -507,9 +568,8 @@ private void buildPartial0(com.google.showcase.v1beta1.BlockRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.responseDelay_ = responseDelayBuilder_ == null - ? responseDelay_ - : responseDelayBuilder_.build(); + result.responseDelay_ = + responseDelayBuilder_ == null ? responseDelay_ : responseDelayBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -518,12 +578,10 @@ private void buildPartial0(com.google.showcase.v1beta1.BlockRequest result) { private void buildPartialOneofs(com.google.showcase.v1beta1.BlockRequest result) { result.responseCase_ = responseCase_; result.response_ = this.response_; - if (responseCase_ == 2 && - errorBuilder_ != null) { + if (responseCase_ == 2 && errorBuilder_ != null) { result.response_ = errorBuilder_.build(); } - if (responseCase_ == 3 && - successBuilder_ != null) { + if (responseCase_ == 3 && successBuilder_ != null) { result.response_ = successBuilder_.build(); } } @@ -532,38 +590,39 @@ private void buildPartialOneofs(com.google.showcase.v1beta1.BlockRequest result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.BlockRequest) { - return mergeFrom((com.google.showcase.v1beta1.BlockRequest)other); + return mergeFrom((com.google.showcase.v1beta1.BlockRequest) other); } else { super.mergeFrom(other); return this; @@ -576,17 +635,20 @@ public Builder mergeFrom(com.google.showcase.v1beta1.BlockRequest other) { mergeResponseDelay(other.getResponseDelay()); } switch (other.getResponseCase()) { - case ERROR: { - mergeError(other.getError()); - break; - } - case SUCCESS: { - mergeSuccess(other.getSuccess()); - break; - } - case RESPONSE_NOT_SET: { - break; - } + case ERROR: + { + mergeError(other.getError()); + break; + } + case SUCCESS: + { + mergeSuccess(other.getSuccess()); + break; + } + case RESPONSE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -614,33 +676,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getResponseDelayFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getErrorFieldBuilder().getBuilder(), - extensionRegistry); - responseCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getSuccessFieldBuilder().getBuilder(), - extensionRegistry); - responseCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getResponseDelayFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getSuccessFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,12 +710,12 @@ public Builder mergeFrom( } // finally return this; } + private int responseCase_ = 0; private java.lang.Object response_; - public ResponseCase - getResponseCase() { - return ResponseCase.forNumber( - responseCase_); + + public ResponseCase getResponseCase() { + return ResponseCase.forNumber(responseCase_); } public Builder clearResponse() { @@ -669,34 +729,47 @@ public Builder clearResponse() { private com.google.protobuf.Duration responseDelay_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> responseDelayBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + responseDelayBuilder_; /** + * + * *
      * The amount of time to block before returning a response.
      * 
* * .google.protobuf.Duration response_delay = 1; + * * @return Whether the responseDelay field is set. */ public boolean hasResponseDelay() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The amount of time to block before returning a response.
      * 
* * .google.protobuf.Duration response_delay = 1; + * * @return The responseDelay. */ public com.google.protobuf.Duration getResponseDelay() { if (responseDelayBuilder_ == null) { - return responseDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : responseDelay_; + return responseDelay_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : responseDelay_; } else { return responseDelayBuilder_.getMessage(); } } /** + * + * *
      * The amount of time to block before returning a response.
      * 
@@ -717,14 +790,15 @@ public Builder setResponseDelay(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * The amount of time to block before returning a response.
      * 
* * .google.protobuf.Duration response_delay = 1; */ - public Builder setResponseDelay( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setResponseDelay(com.google.protobuf.Duration.Builder builderForValue) { if (responseDelayBuilder_ == null) { responseDelay_ = builderForValue.build(); } else { @@ -735,6 +809,8 @@ public Builder setResponseDelay( return this; } /** + * + * *
      * The amount of time to block before returning a response.
      * 
@@ -743,9 +819,9 @@ public Builder setResponseDelay( */ public Builder mergeResponseDelay(com.google.protobuf.Duration value) { if (responseDelayBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - responseDelay_ != null && - responseDelay_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && responseDelay_ != null + && responseDelay_ != com.google.protobuf.Duration.getDefaultInstance()) { getResponseDelayBuilder().mergeFrom(value); } else { responseDelay_ = value; @@ -760,6 +836,8 @@ public Builder mergeResponseDelay(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * The amount of time to block before returning a response.
      * 
@@ -777,6 +855,8 @@ public Builder clearResponseDelay() { return this; } /** + * + * *
      * The amount of time to block before returning a response.
      * 
@@ -789,6 +869,8 @@ public com.google.protobuf.Duration.Builder getResponseDelayBuilder() { return getResponseDelayFieldBuilder().getBuilder(); } /** + * + * *
      * The amount of time to block before returning a response.
      * 
@@ -799,11 +881,14 @@ public com.google.protobuf.DurationOrBuilder getResponseDelayOrBuilder() { if (responseDelayBuilder_ != null) { return responseDelayBuilder_.getMessageOrBuilder(); } else { - return responseDelay_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : responseDelay_; + return responseDelay_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : responseDelay_; } } /** + * + * *
      * The amount of time to block before returning a response.
      * 
@@ -811,28 +896,35 @@ public com.google.protobuf.DurationOrBuilder getResponseDelayOrBuilder() { * .google.protobuf.Duration response_delay = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getResponseDelayFieldBuilder() { if (responseDelayBuilder_ == null) { - responseDelayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getResponseDelay(), - getParentForChildren(), - isClean()); + responseDelayBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getResponseDelay(), getParentForChildren(), isClean()); responseDelay_ = null; } return responseDelayBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
      * The error that will be returned by the server. If this code is specified
      * to be the OK rpc code, an empty response will be returned.
      * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ @java.lang.Override @@ -840,12 +932,15 @@ public boolean hasError() { return responseCase_ == 2; } /** + * + * *
      * The error that will be returned by the server. If this code is specified
      * to be the OK rpc code, an empty response will be returned.
      * 
* * .google.rpc.Status error = 2; + * * @return The error. */ @java.lang.Override @@ -863,6 +958,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * The error that will be returned by the server. If this code is specified
      * to be the OK rpc code, an empty response will be returned.
@@ -884,6 +981,8 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The error that will be returned by the server. If this code is specified
      * to be the OK rpc code, an empty response will be returned.
@@ -891,8 +990,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 2;
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         response_ = builderForValue.build();
         onChanged();
@@ -903,6 +1001,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * The error that will be returned by the server. If this code is specified
      * to be the OK rpc code, an empty response will be returned.
@@ -912,10 +1012,11 @@ public Builder setError(
      */
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
-        if (responseCase_ == 2 &&
-            response_ != com.google.rpc.Status.getDefaultInstance()) {
-          response_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_)
-              .mergeFrom(value).buildPartial();
+        if (responseCase_ == 2 && response_ != com.google.rpc.Status.getDefaultInstance()) {
+          response_ =
+              com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           response_ = value;
         }
@@ -931,6 +1032,8 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The error that will be returned by the server. If this code is specified
      * to be the OK rpc code, an empty response will be returned.
@@ -955,6 +1058,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The error that will be returned by the server. If this code is specified
      * to be the OK rpc code, an empty response will be returned.
@@ -966,6 +1071,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() {
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The error that will be returned by the server. If this code is specified
      * to be the OK rpc code, an empty response will be returned.
@@ -985,6 +1092,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * The error that will be returned by the server. If this code is specified
      * to be the OK rpc code, an empty response will be returned.
@@ -993,17 +1102,18 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
         if (!(responseCase_ == 2)) {
           response_ = com.google.rpc.Status.getDefaultInstance();
         }
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                (com.google.rpc.Status) response_,
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(
+                (com.google.rpc.Status) response_, getParentForChildren(), isClean());
         response_ = null;
       }
       responseCase_ = 2;
@@ -1012,13 +1122,19 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.BlockResponse, com.google.showcase.v1beta1.BlockResponse.Builder, com.google.showcase.v1beta1.BlockResponseOrBuilder> successBuilder_;
+            com.google.showcase.v1beta1.BlockResponse,
+            com.google.showcase.v1beta1.BlockResponse.Builder,
+            com.google.showcase.v1beta1.BlockResponseOrBuilder>
+        successBuilder_;
     /**
+     *
+     *
      * 
      * The response to be returned that will signify successful method call.
      * 
* * .google.showcase.v1beta1.BlockResponse success = 3; + * * @return Whether the success field is set. */ @java.lang.Override @@ -1026,11 +1142,14 @@ public boolean hasSuccess() { return responseCase_ == 3; } /** + * + * *
      * The response to be returned that will signify successful method call.
      * 
* * .google.showcase.v1beta1.BlockResponse success = 3; + * * @return The success. */ @java.lang.Override @@ -1048,6 +1167,8 @@ public com.google.showcase.v1beta1.BlockResponse getSuccess() { } } /** + * + * *
      * The response to be returned that will signify successful method call.
      * 
@@ -1068,14 +1189,15 @@ public Builder setSuccess(com.google.showcase.v1beta1.BlockResponse value) { return this; } /** + * + * *
      * The response to be returned that will signify successful method call.
      * 
* * .google.showcase.v1beta1.BlockResponse success = 3; */ - public Builder setSuccess( - com.google.showcase.v1beta1.BlockResponse.Builder builderForValue) { + public Builder setSuccess(com.google.showcase.v1beta1.BlockResponse.Builder builderForValue) { if (successBuilder_ == null) { response_ = builderForValue.build(); onChanged(); @@ -1086,6 +1208,8 @@ public Builder setSuccess( return this; } /** + * + * *
      * The response to be returned that will signify successful method call.
      * 
@@ -1094,10 +1218,13 @@ public Builder setSuccess( */ public Builder mergeSuccess(com.google.showcase.v1beta1.BlockResponse value) { if (successBuilder_ == null) { - if (responseCase_ == 3 && - response_ != com.google.showcase.v1beta1.BlockResponse.getDefaultInstance()) { - response_ = com.google.showcase.v1beta1.BlockResponse.newBuilder((com.google.showcase.v1beta1.BlockResponse) response_) - .mergeFrom(value).buildPartial(); + if (responseCase_ == 3 + && response_ != com.google.showcase.v1beta1.BlockResponse.getDefaultInstance()) { + response_ = + com.google.showcase.v1beta1.BlockResponse.newBuilder( + (com.google.showcase.v1beta1.BlockResponse) response_) + .mergeFrom(value) + .buildPartial(); } else { response_ = value; } @@ -1113,6 +1240,8 @@ public Builder mergeSuccess(com.google.showcase.v1beta1.BlockResponse value) { return this; } /** + * + * *
      * The response to be returned that will signify successful method call.
      * 
@@ -1136,6 +1265,8 @@ public Builder clearSuccess() { return this; } /** + * + * *
      * The response to be returned that will signify successful method call.
      * 
@@ -1146,6 +1277,8 @@ public com.google.showcase.v1beta1.BlockResponse.Builder getSuccessBuilder() { return getSuccessFieldBuilder().getBuilder(); } /** + * + * *
      * The response to be returned that will signify successful method call.
      * 
@@ -1164,6 +1297,8 @@ public com.google.showcase.v1beta1.BlockResponseOrBuilder getSuccessOrBuilder() } } /** + * + * *
      * The response to be returned that will signify successful method call.
      * 
@@ -1171,14 +1306,19 @@ public com.google.showcase.v1beta1.BlockResponseOrBuilder getSuccessOrBuilder() * .google.showcase.v1beta1.BlockResponse success = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.BlockResponse, com.google.showcase.v1beta1.BlockResponse.Builder, com.google.showcase.v1beta1.BlockResponseOrBuilder> + com.google.showcase.v1beta1.BlockResponse, + com.google.showcase.v1beta1.BlockResponse.Builder, + com.google.showcase.v1beta1.BlockResponseOrBuilder> getSuccessFieldBuilder() { if (successBuilder_ == null) { if (!(responseCase_ == 3)) { response_ = com.google.showcase.v1beta1.BlockResponse.getDefaultInstance(); } - successBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.BlockResponse, com.google.showcase.v1beta1.BlockResponse.Builder, com.google.showcase.v1beta1.BlockResponseOrBuilder>( + successBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.BlockResponse, + com.google.showcase.v1beta1.BlockResponse.Builder, + com.google.showcase.v1beta1.BlockResponseOrBuilder>( (com.google.showcase.v1beta1.BlockResponse) response_, getParentForChildren(), isClean()); @@ -1188,9 +1328,9 @@ public com.google.showcase.v1beta1.BlockResponseOrBuilder getSuccessOrBuilder() onChanged(); return successBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1200,12 +1340,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.BlockRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.BlockRequest) private static final com.google.showcase.v1beta1.BlockRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.BlockRequest(); } @@ -1214,27 +1354,27 @@ public static com.google.showcase.v1beta1.BlockRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1249,6 +1389,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.BlockRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequestOrBuilder.java similarity index 78% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequestOrBuilder.java index dfac12dd81..5b34f5a04d 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockRequestOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface BlockRequestOrBuilder extends +public interface BlockRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.BlockRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The amount of time to block before returning a response.
    * 
* * .google.protobuf.Duration response_delay = 1; + * * @return Whether the responseDelay field is set. */ boolean hasResponseDelay(); /** + * + * *
    * The amount of time to block before returning a response.
    * 
* * .google.protobuf.Duration response_delay = 1; + * * @return The responseDelay. */ com.google.protobuf.Duration getResponseDelay(); /** + * + * *
    * The amount of time to block before returning a response.
    * 
@@ -36,26 +60,34 @@ public interface BlockRequestOrBuilder extends com.google.protobuf.DurationOrBuilder getResponseDelayOrBuilder(); /** + * + * *
    * The error that will be returned by the server. If this code is specified
    * to be the OK rpc code, an empty response will be returned.
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * The error that will be returned by the server. If this code is specified
    * to be the OK rpc code, an empty response will be returned.
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * The error that will be returned by the server. If this code is specified
    * to be the OK rpc code, an empty response will be returned.
@@ -66,24 +98,32 @@ public interface BlockRequestOrBuilder extends
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
+   *
+   *
    * 
    * The response to be returned that will signify successful method call.
    * 
* * .google.showcase.v1beta1.BlockResponse success = 3; + * * @return Whether the success field is set. */ boolean hasSuccess(); /** + * + * *
    * The response to be returned that will signify successful method call.
    * 
* * .google.showcase.v1beta1.BlockResponse success = 3; + * * @return The success. */ com.google.showcase.v1beta1.BlockResponse getSuccess(); /** + * + * *
    * The response to be returned that will signify successful method call.
    * 
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponse.java similarity index 65% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponse.java index e5da2f7f20..fdef82364c 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto @@ -5,55 +20,63 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The response for Block method.
  * 
* * Protobuf type {@code google.showcase.v1beta1.BlockResponse} */ -public final class BlockResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BlockResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.BlockResponse) BlockResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BlockResponse.newBuilder() to construct. private BlockResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BlockResponse() { content_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BlockResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_BlockResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockResponse_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_BlockResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.BlockResponse.class, com.google.showcase.v1beta1.BlockResponse.Builder.class); + com.google.showcase.v1beta1.BlockResponse.class, + com.google.showcase.v1beta1.BlockResponse.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object content_ = ""; /** + * + * *
    * This content can contain anything, the server will not depend on a value
    * here.
    * 
* * string content = 1; + * * @return The content. */ @java.lang.Override @@ -62,30 +85,30 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** + * + * *
    * This content can contain anything, the server will not depend on a value
    * here.
    * 
* * string content = 1; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -94,6 +117,7 @@ public java.lang.String getContent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -105,8 +129,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } @@ -130,15 +153,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.BlockResponse)) { return super.equals(obj); } - com.google.showcase.v1beta1.BlockResponse other = (com.google.showcase.v1beta1.BlockResponse) obj; + com.google.showcase.v1beta1.BlockResponse other = + (com.google.showcase.v1beta1.BlockResponse) obj; - if (!getContent() - .equals(other.getContent())) return false; + if (!getContent().equals(other.getContent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,132 +180,136 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.BlockResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.BlockResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.BlockResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.BlockResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.BlockResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.BlockResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.BlockResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.BlockResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.BlockResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.BlockResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.BlockResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.BlockResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.BlockResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.BlockResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.BlockResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response for Block method.
    * 
* * Protobuf type {@code google.showcase.v1beta1.BlockResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.BlockResponse) com.google.showcase.v1beta1.BlockResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_BlockResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockResponse_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_BlockResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.BlockResponse.class, com.google.showcase.v1beta1.BlockResponse.Builder.class); + com.google.showcase.v1beta1.BlockResponse.class, + com.google.showcase.v1beta1.BlockResponse.Builder.class); } // Construct using com.google.showcase.v1beta1.BlockResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +319,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_BlockResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_BlockResponse_descriptor; } @java.lang.Override @@ -313,8 +340,11 @@ public com.google.showcase.v1beta1.BlockResponse build() { @java.lang.Override public com.google.showcase.v1beta1.BlockResponse buildPartial() { - com.google.showcase.v1beta1.BlockResponse result = new com.google.showcase.v1beta1.BlockResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.BlockResponse result = + new com.google.showcase.v1beta1.BlockResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +360,39 @@ private void buildPartial0(com.google.showcase.v1beta1.BlockResponse result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.BlockResponse) { - return mergeFrom((com.google.showcase.v1beta1.BlockResponse)other); + return mergeFrom((com.google.showcase.v1beta1.BlockResponse) other); } else { super.mergeFrom(other); return this; @@ -401,17 +432,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - content_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,23 +454,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object content_ = ""; /** + * + * *
      * This content can contain anything, the server will not depend on a value
      * here.
      * 
* * string content = 1; + * * @return The content. */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -446,21 +482,22 @@ public java.lang.String getContent() { } } /** + * + * *
      * This content can contain anything, the server will not depend on a value
      * here.
      * 
* * string content = 1; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -468,30 +505,37 @@ public java.lang.String getContent() { } } /** + * + * *
      * This content can contain anything, the server will not depend on a value
      * here.
      * 
* * string content = 1; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } content_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * This content can contain anything, the server will not depend on a value
      * here.
      * 
* * string content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -501,27 +545,31 @@ public Builder clearContent() { return this; } /** + * + * *
      * This content can contain anything, the server will not depend on a value
      * here.
      * 
* * string content = 1; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); content_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -531,12 +579,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.BlockResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.BlockResponse) private static final com.google.showcase.v1beta1.BlockResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.BlockResponse(); } @@ -545,27 +593,27 @@ public static com.google.showcase.v1beta1.BlockResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -580,6 +628,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.BlockResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponseOrBuilder.java similarity index 50% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponseOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponseOrBuilder.java index a166b04d08..b84bfec072 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponseOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlockResponseOrBuilder.java @@ -1,32 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface BlockResponseOrBuilder extends +public interface BlockResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.BlockResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * This content can contain anything, the server will not depend on a value
    * here.
    * 
* * string content = 1; + * * @return The content. */ java.lang.String getContent(); /** + * + * *
    * This content can contain anything, the server will not depend on a value
    * here.
    * 
* * string content = 1; + * * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + com.google.protobuf.ByteString getContentBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Blurb.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Blurb.java similarity index 68% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Blurb.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Blurb.java index 58f52fb75b..66f56c0ce3 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Blurb.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Blurb.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * This protocol buffer message represents a blurb sent to a chat room or
  * posted on a user profile.
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.Blurb}
  */
-public final class Blurb extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Blurb extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.Blurb)
     BlurbOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Blurb.newBuilder() to construct.
   private Blurb(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Blurb() {
     name_ = "";
     user_ = "";
@@ -28,35 +46,40 @@ private Blurb() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Blurb();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Blurb_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_Blurb_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Blurb_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_Blurb_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.Blurb.class, com.google.showcase.v1beta1.Blurb.Builder.class);
+            com.google.showcase.v1beta1.Blurb.class,
+            com.google.showcase.v1beta1.Blurb.Builder.class);
   }
 
   private int bitField0_;
   private int contentCase_ = 0;
+
   @SuppressWarnings("serial")
   private java.lang.Object content_;
+
   public enum ContentCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     TEXT(3),
     IMAGE(4),
     CONTENT_NOT_SET(0);
     private final int value;
+
     private ContentCase(int value) {
       this.value = value;
     }
@@ -72,33 +95,40 @@ public static ContentCase valueOf(int value) {
 
     public static ContentCase forNumber(int value) {
       switch (value) {
-        case 3: return TEXT;
-        case 4: return IMAGE;
-        case 0: return CONTENT_NOT_SET;
-        default: return null;
+        case 3:
+          return TEXT;
+        case 4:
+          return IMAGE;
+        case 0:
+          return CONTENT_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ContentCase
-  getContentCase() {
-    return ContentCase.forNumber(
-        contentCase_);
+  public ContentCase getContentCase() {
+    return ContentCase.forNumber(contentCase_);
   }
 
   private int legacyIdCase_ = 0;
+
   @SuppressWarnings("serial")
   private java.lang.Object legacyId_;
+
   public enum LegacyIdCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     LEGACY_ROOM_ID(7),
     LEGACY_USER_ID(8),
     LEGACYID_NOT_SET(0);
     private final int value;
+
     private LegacyIdCase(int value) {
       this.value = value;
     }
@@ -114,32 +144,39 @@ public static LegacyIdCase valueOf(int value) {
 
     public static LegacyIdCase forNumber(int value) {
       switch (value) {
-        case 7: return LEGACY_ROOM_ID;
-        case 8: return LEGACY_USER_ID;
-        case 0: return LEGACYID_NOT_SET;
-        default: return null;
+        case 7:
+          return LEGACY_ROOM_ID;
+        case 8:
+          return LEGACY_USER_ID;
+        case 0:
+          return LEGACYID_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public LegacyIdCase
-  getLegacyIdCase() {
-    return LegacyIdCase.forNumber(
-        legacyIdCase_);
+  public LegacyIdCase getLegacyIdCase() {
+    return LegacyIdCase.forNumber(legacyIdCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * The resource name of the chat room.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -148,29 +185,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the chat room.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -179,14 +216,20 @@ public java.lang.String getName() { } public static final int USER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object user_ = ""; /** + * + * *
    * The resource name of the blurb's author.
    * 
* - * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The user. */ @java.lang.Override @@ -195,29 +238,31 @@ public java.lang.String getUser() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); user_ = s; return s; } } /** + * + * *
    * The resource name of the blurb's author.
    * 
* - * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for user. */ @java.lang.Override - public com.google.protobuf.ByteString - getUserBytes() { + public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); user_ = b; return b; } else { @@ -227,22 +272,28 @@ public java.lang.String getUser() { public static final int TEXT_FIELD_NUMBER = 3; /** + * + * *
    * The textual content of this blurb.
    * 
* * string text = 3; + * * @return Whether the text field is set. */ public boolean hasText() { return contentCase_ == 3; } /** + * + * *
    * The textual content of this blurb.
    * 
* * string text = 3; + * * @return The text. */ public java.lang.String getText() { @@ -253,8 +304,7 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (contentCase_ == 3) { content_ = s; @@ -263,23 +313,24 @@ public java.lang.String getText() { } } /** + * + * *
    * The textual content of this blurb.
    * 
* * string text = 3; + * * @return The bytes for text. */ - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = ""; if (contentCase_ == 3) { ref = content_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (contentCase_ == 3) { content_ = b; } @@ -291,11 +342,14 @@ public java.lang.String getText() { public static final int IMAGE_FIELD_NUMBER = 4; /** + * + * *
    * The image content of this blurb.
    * 
* * bytes image = 4; + * * @return Whether the image field is set. */ @java.lang.Override @@ -303,11 +357,14 @@ public boolean hasImage() { return contentCase_ == 4; } /** + * + * *
    * The image content of this blurb.
    * 
* * bytes image = 4; + * * @return The image. */ @java.lang.Override @@ -321,11 +378,15 @@ public com.google.protobuf.ByteString getImage() { public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The timestamp at which the blurb was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -333,11 +394,15 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The timestamp at which the blurb was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -345,11 +410,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The timestamp at which the blurb was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -359,11 +427,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The latest timestamp at which the blurb was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -371,11 +443,15 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * The latest timestamp at which the blurb was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -383,11 +459,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The latest timestamp at which the blurb was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -396,6 +475,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int LEGACY_ROOM_ID_FIELD_NUMBER = 7; /** + * + * *
    * The legacy id of the room. This field is used to signal
    * the use of the compound resource pattern
@@ -403,12 +484,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string legacy_room_id = 7; + * * @return Whether the legacyRoomId field is set. */ public boolean hasLegacyRoomId() { return legacyIdCase_ == 7; } /** + * + * *
    * The legacy id of the room. This field is used to signal
    * the use of the compound resource pattern
@@ -416,6 +500,7 @@ public boolean hasLegacyRoomId() {
    * 
* * string legacy_room_id = 7; + * * @return The legacyRoomId. */ public java.lang.String getLegacyRoomId() { @@ -426,8 +511,7 @@ public java.lang.String getLegacyRoomId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (legacyIdCase_ == 7) { legacyId_ = s; @@ -436,6 +520,8 @@ public java.lang.String getLegacyRoomId() { } } /** + * + * *
    * The legacy id of the room. This field is used to signal
    * the use of the compound resource pattern
@@ -443,18 +529,17 @@ public java.lang.String getLegacyRoomId() {
    * 
* * string legacy_room_id = 7; + * * @return The bytes for legacyRoomId. */ - public com.google.protobuf.ByteString - getLegacyRoomIdBytes() { + public com.google.protobuf.ByteString getLegacyRoomIdBytes() { java.lang.Object ref = ""; if (legacyIdCase_ == 7) { ref = legacyId_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (legacyIdCase_ == 7) { legacyId_ = b; } @@ -466,6 +551,8 @@ public java.lang.String getLegacyRoomId() { public static final int LEGACY_USER_ID_FIELD_NUMBER = 8; /** + * + * *
    * The legacy id of the user. This field is used to signal
    * the use of the compound resource pattern
@@ -473,12 +560,15 @@ public java.lang.String getLegacyRoomId() {
    * 
* * string legacy_user_id = 8; + * * @return Whether the legacyUserId field is set. */ public boolean hasLegacyUserId() { return legacyIdCase_ == 8; } /** + * + * *
    * The legacy id of the user. This field is used to signal
    * the use of the compound resource pattern
@@ -486,6 +576,7 @@ public boolean hasLegacyUserId() {
    * 
* * string legacy_user_id = 8; + * * @return The legacyUserId. */ public java.lang.String getLegacyUserId() { @@ -496,8 +587,7 @@ public java.lang.String getLegacyUserId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (legacyIdCase_ == 8) { legacyId_ = s; @@ -506,6 +596,8 @@ public java.lang.String getLegacyUserId() { } } /** + * + * *
    * The legacy id of the user. This field is used to signal
    * the use of the compound resource pattern
@@ -513,18 +605,17 @@ public java.lang.String getLegacyUserId() {
    * 
* * string legacy_user_id = 8; + * * @return The bytes for legacyUserId. */ - public com.google.protobuf.ByteString - getLegacyUserIdBytes() { + public com.google.protobuf.ByteString getLegacyUserIdBytes() { java.lang.Object ref = ""; if (legacyIdCase_ == 8) { ref = legacyId_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (legacyIdCase_ == 8) { legacyId_ = b; } @@ -535,6 +626,7 @@ public java.lang.String getLegacyUserId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -546,8 +638,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -558,8 +649,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 3, content_); } if (contentCase_ == 4) { - output.writeBytes( - 4, (com.google.protobuf.ByteString) content_); + output.writeBytes(4, (com.google.protobuf.ByteString) content_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getCreateTime()); @@ -592,17 +682,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, content_); } if (contentCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 4, (com.google.protobuf.ByteString) content_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 4, (com.google.protobuf.ByteString) content_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } if (legacyIdCase_ == 7) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, legacyId_); @@ -618,36 +706,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.Blurb)) { return super.equals(obj); } com.google.showcase.v1beta1.Blurb other = (com.google.showcase.v1beta1.Blurb) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUser() - .equals(other.getUser())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUser().equals(other.getUser())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!getContentCase().equals(other.getContentCase())) return false; switch (contentCase_) { case 3: - if (!getText() - .equals(other.getText())) return false; + if (!getText().equals(other.getText())) return false; break; case 4: - if (!getImage() - .equals(other.getImage())) return false; + if (!getImage().equals(other.getImage())) return false; break; case 0: default: @@ -655,12 +737,10 @@ public boolean equals(final java.lang.Object obj) { if (!getLegacyIdCase().equals(other.getLegacyIdCase())) return false; switch (legacyIdCase_) { case 7: - if (!getLegacyRoomId() - .equals(other.getLegacyRoomId())) return false; + if (!getLegacyRoomId().equals(other.getLegacyRoomId())) return false; break; case 8: - if (!getLegacyUserId() - .equals(other.getLegacyUserId())) return false; + if (!getLegacyUserId().equals(other.getLegacyUserId())) return false; break; case 0: default: @@ -717,99 +797,103 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.Blurb parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.Blurb parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Blurb parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.Blurb parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.showcase.v1beta1.Blurb parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Blurb parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.Blurb parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Blurb parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.Blurb parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.Blurb parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.showcase.v1beta1.Blurb parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.Blurb parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.Blurb parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.Blurb parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.Blurb prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * This protocol buffer message represents a blurb sent to a chat room or
    * posted on a user profile.
@@ -817,21 +901,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.Blurb}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.Blurb)
       com.google.showcase.v1beta1.BlurbOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Blurb_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_Blurb_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Blurb_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_Blurb_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.Blurb.class, com.google.showcase.v1beta1.Blurb.Builder.class);
+              com.google.showcase.v1beta1.Blurb.class,
+              com.google.showcase.v1beta1.Blurb.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.Blurb.newBuilder()
@@ -839,18 +925,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getCreateTimeFieldBuilder();
         getUpdateTimeFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -875,9 +961,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Blurb_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_Blurb_descriptor;
     }
 
     @java.lang.Override
@@ -897,7 +983,9 @@ public com.google.showcase.v1beta1.Blurb build() {
     @java.lang.Override
     public com.google.showcase.v1beta1.Blurb buildPartial() {
       com.google.showcase.v1beta1.Blurb result = new com.google.showcase.v1beta1.Blurb(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -913,15 +1001,11 @@ private void buildPartial0(com.google.showcase.v1beta1.Blurb result) {
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       result.bitField0_ |= to_bitField0_;
@@ -938,38 +1022,39 @@ private void buildPartialOneofs(com.google.showcase.v1beta1.Blurb result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.Blurb) {
-        return mergeFrom((com.google.showcase.v1beta1.Blurb)other);
+        return mergeFrom((com.google.showcase.v1beta1.Blurb) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -995,36 +1080,42 @@ public Builder mergeFrom(com.google.showcase.v1beta1.Blurb other) {
         mergeUpdateTime(other.getUpdateTime());
       }
       switch (other.getContentCase()) {
-        case TEXT: {
-          contentCase_ = 3;
-          content_ = other.content_;
-          onChanged();
-          break;
-        }
-        case IMAGE: {
-          setImage(other.getImage());
-          break;
-        }
-        case CONTENT_NOT_SET: {
-          break;
-        }
+        case TEXT:
+          {
+            contentCase_ = 3;
+            content_ = other.content_;
+            onChanged();
+            break;
+          }
+        case IMAGE:
+          {
+            setImage(other.getImage());
+            break;
+          }
+        case CONTENT_NOT_SET:
+          {
+            break;
+          }
       }
       switch (other.getLegacyIdCase()) {
-        case LEGACY_ROOM_ID: {
-          legacyIdCase_ = 7;
-          legacyId_ = other.legacyId_;
-          onChanged();
-          break;
-        }
-        case LEGACY_USER_ID: {
-          legacyIdCase_ = 8;
-          legacyId_ = other.legacyId_;
-          onChanged();
-          break;
-        }
-        case LEGACYID_NOT_SET: {
-          break;
-        }
+        case LEGACY_ROOM_ID:
+          {
+            legacyIdCase_ = 7;
+            legacyId_ = other.legacyId_;
+            onChanged();
+            break;
+          }
+        case LEGACY_USER_ID:
+          {
+            legacyIdCase_ = 8;
+            legacyId_ = other.legacyId_;
+            onChanged();
+            break;
+          }
+        case LEGACYID_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1052,59 +1143,64 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              user_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              contentCase_ = 3;
-              content_ = s;
-              break;
-            } // case 26
-            case 34: {
-              content_ = input.readBytes();
-              contentCase_ = 4;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 58: {
-              java.lang.String s = input.readStringRequireUtf8();
-              legacyIdCase_ = 7;
-              legacyId_ = s;
-              break;
-            } // case 58
-            case 66: {
-              java.lang.String s = input.readStringRequireUtf8();
-              legacyIdCase_ = 8;
-              legacyId_ = s;
-              break;
-            } // case 66
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                user_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                contentCase_ = 3;
+                content_ = s;
+                break;
+              } // case 26
+            case 34:
+              {
+                content_ = input.readBytes();
+                contentCase_ = 4;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 58:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                legacyIdCase_ = 7;
+                legacyId_ = s;
+                break;
+              } // case 58
+            case 66:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                legacyIdCase_ = 8;
+                legacyId_ = s;
+                break;
+              } // case 66
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1114,12 +1210,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int contentCase_ = 0;
     private java.lang.Object content_;
-    public ContentCase
-        getContentCase() {
-      return ContentCase.forNumber(
-          contentCase_);
+
+    public ContentCase getContentCase() {
+      return ContentCase.forNumber(contentCase_);
     }
 
     public Builder clearContent() {
@@ -1131,10 +1227,9 @@ public Builder clearContent() {
 
     private int legacyIdCase_ = 0;
     private java.lang.Object legacyId_;
-    public LegacyIdCase
-        getLegacyIdCase() {
-      return LegacyIdCase.forNumber(
-          legacyIdCase_);
+
+    public LegacyIdCase getLegacyIdCase() {
+      return LegacyIdCase.forNumber(legacyIdCase_);
     }
 
     public Builder clearLegacyId() {
@@ -1148,18 +1243,20 @@ public Builder clearLegacyId() {
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the chat room.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1168,20 +1265,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the chat room.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1189,28 +1287,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the chat room.
      * 
* * 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(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the chat room.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1220,17 +1325,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the chat room.
      * 
* * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1240,18 +1349,22 @@ public Builder setNameBytes( private java.lang.Object user_ = ""; /** + * + * *
      * The resource name of the blurb's author.
      * 
* - * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The user. */ public java.lang.String getUser() { java.lang.Object ref = user_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); user_ = s; return s; @@ -1260,20 +1373,23 @@ public java.lang.String getUser() { } } /** + * + * *
      * The resource name of the blurb's author.
      * 
* - * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for user. */ - public com.google.protobuf.ByteString - getUserBytes() { + public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); user_ = b; return b; } else { @@ -1281,28 +1397,39 @@ public java.lang.String getUser() { } } /** + * + * *
      * The resource name of the blurb's author.
      * 
* - * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The user to set. * @return This builder for chaining. */ - public Builder setUser( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUser(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } user_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The resource name of the blurb's author.
      * 
* - * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearUser() { @@ -1312,17 +1439,23 @@ public Builder clearUser() { return this; } /** + * + * *
      * The resource name of the blurb's author.
      * 
* - * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for user to set. * @return This builder for chaining. */ - public Builder setUserBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUserBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); user_ = value; bitField0_ |= 0x00000002; @@ -1331,11 +1464,14 @@ public Builder setUserBytes( } /** + * + * *
      * The textual content of this blurb.
      * 
* * string text = 3; + * * @return Whether the text field is set. */ @java.lang.Override @@ -1343,11 +1479,14 @@ public boolean hasText() { return contentCase_ == 3; } /** + * + * *
      * The textual content of this blurb.
      * 
* * string text = 3; + * * @return The text. */ @java.lang.Override @@ -1357,8 +1496,7 @@ public java.lang.String getText() { ref = content_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (contentCase_ == 3) { content_ = s; @@ -1369,24 +1507,25 @@ public java.lang.String getText() { } } /** + * + * *
      * The textual content of this blurb.
      * 
* * string text = 3; + * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = ""; if (contentCase_ == 3) { ref = content_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (contentCase_ == 3) { content_ = b; } @@ -1396,28 +1535,35 @@ public java.lang.String getText() { } } /** + * + * *
      * The textual content of this blurb.
      * 
* * string text = 3; + * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } contentCase_ = 3; content_ = value; onChanged(); return this; } /** + * + * *
      * The textual content of this blurb.
      * 
* * string text = 3; + * * @return This builder for chaining. */ public Builder clearText() { @@ -1429,17 +1575,21 @@ public Builder clearText() { return this; } /** + * + * *
      * The textual content of this blurb.
      * 
* * string text = 3; + * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); contentCase_ = 3; content_ = value; @@ -1448,22 +1598,28 @@ public Builder setTextBytes( } /** + * + * *
      * The image content of this blurb.
      * 
* * bytes image = 4; + * * @return Whether the image field is set. */ public boolean hasImage() { return contentCase_ == 4; } /** + * + * *
      * The image content of this blurb.
      * 
* * bytes image = 4; + * * @return The image. */ public com.google.protobuf.ByteString getImage() { @@ -1473,27 +1629,35 @@ public com.google.protobuf.ByteString getImage() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * The image content of this blurb.
      * 
* * bytes image = 4; + * * @param value The image to set. * @return This builder for chaining. */ public Builder setImage(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } contentCase_ = 4; content_ = value; onChanged(); return this; } /** + * + * *
      * The image content of this blurb.
      * 
* * bytes image = 4; + * * @return This builder for chaining. */ public Builder clearImage() { @@ -1507,39 +1671,58 @@ public Builder clearImage() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The timestamp at which the blurb was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * The timestamp at which the blurb was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The timestamp at which the blurb was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1555,14 +1738,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The timestamp at which the blurb was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1573,17 +1759,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The timestamp at which the blurb was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1598,11 +1788,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The timestamp at which the blurb was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1615,11 +1809,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The timestamp at which the blurb was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000010; @@ -1627,36 +1825,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The timestamp at which the blurb was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The timestamp at which the blurb was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1664,39 +1874,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * The latest timestamp at which the blurb was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * The latest timestamp at which the blurb was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * The latest timestamp at which the blurb was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1712,14 +1941,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The latest timestamp at which the blurb was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1730,17 +1962,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The latest timestamp at which the blurb was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1755,11 +1991,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The latest timestamp at which the blurb was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1772,11 +2012,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The latest timestamp at which the blurb was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000020; @@ -1784,42 +2028,56 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The latest timestamp at which the blurb was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The latest timestamp at which the blurb was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } /** + * + * *
      * The legacy id of the room. This field is used to signal
      * the use of the compound resource pattern
@@ -1827,6 +2085,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * string legacy_room_id = 7; + * * @return Whether the legacyRoomId field is set. */ @java.lang.Override @@ -1834,6 +2093,8 @@ public boolean hasLegacyRoomId() { return legacyIdCase_ == 7; } /** + * + * *
      * The legacy id of the room. This field is used to signal
      * the use of the compound resource pattern
@@ -1841,6 +2102,7 @@ public boolean hasLegacyRoomId() {
      * 
* * string legacy_room_id = 7; + * * @return The legacyRoomId. */ @java.lang.Override @@ -1850,8 +2112,7 @@ public java.lang.String getLegacyRoomId() { ref = legacyId_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (legacyIdCase_ == 7) { legacyId_ = s; @@ -1862,6 +2123,8 @@ public java.lang.String getLegacyRoomId() { } } /** + * + * *
      * The legacy id of the room. This field is used to signal
      * the use of the compound resource pattern
@@ -1869,19 +2132,18 @@ public java.lang.String getLegacyRoomId() {
      * 
* * string legacy_room_id = 7; + * * @return The bytes for legacyRoomId. */ @java.lang.Override - public com.google.protobuf.ByteString - getLegacyRoomIdBytes() { + public com.google.protobuf.ByteString getLegacyRoomIdBytes() { java.lang.Object ref = ""; if (legacyIdCase_ == 7) { ref = legacyId_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (legacyIdCase_ == 7) { legacyId_ = b; } @@ -1891,6 +2153,8 @@ public java.lang.String getLegacyRoomId() { } } /** + * + * *
      * The legacy id of the room. This field is used to signal
      * the use of the compound resource pattern
@@ -1898,18 +2162,22 @@ public java.lang.String getLegacyRoomId() {
      * 
* * string legacy_room_id = 7; + * * @param value The legacyRoomId to set. * @return This builder for chaining. */ - public Builder setLegacyRoomId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLegacyRoomId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } legacyIdCase_ = 7; legacyId_ = value; onChanged(); return this; } /** + * + * *
      * The legacy id of the room. This field is used to signal
      * the use of the compound resource pattern
@@ -1917,6 +2185,7 @@ public Builder setLegacyRoomId(
      * 
* * string legacy_room_id = 7; + * * @return This builder for chaining. */ public Builder clearLegacyRoomId() { @@ -1928,6 +2197,8 @@ public Builder clearLegacyRoomId() { return this; } /** + * + * *
      * The legacy id of the room. This field is used to signal
      * the use of the compound resource pattern
@@ -1935,12 +2206,14 @@ public Builder clearLegacyRoomId() {
      * 
* * string legacy_room_id = 7; + * * @param value The bytes for legacyRoomId to set. * @return This builder for chaining. */ - public Builder setLegacyRoomIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLegacyRoomIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); legacyIdCase_ = 7; legacyId_ = value; @@ -1949,6 +2222,8 @@ public Builder setLegacyRoomIdBytes( } /** + * + * *
      * The legacy id of the user. This field is used to signal
      * the use of the compound resource pattern
@@ -1956,6 +2231,7 @@ public Builder setLegacyRoomIdBytes(
      * 
* * string legacy_user_id = 8; + * * @return Whether the legacyUserId field is set. */ @java.lang.Override @@ -1963,6 +2239,8 @@ public boolean hasLegacyUserId() { return legacyIdCase_ == 8; } /** + * + * *
      * The legacy id of the user. This field is used to signal
      * the use of the compound resource pattern
@@ -1970,6 +2248,7 @@ public boolean hasLegacyUserId() {
      * 
* * string legacy_user_id = 8; + * * @return The legacyUserId. */ @java.lang.Override @@ -1979,8 +2258,7 @@ public java.lang.String getLegacyUserId() { ref = legacyId_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (legacyIdCase_ == 8) { legacyId_ = s; @@ -1991,6 +2269,8 @@ public java.lang.String getLegacyUserId() { } } /** + * + * *
      * The legacy id of the user. This field is used to signal
      * the use of the compound resource pattern
@@ -1998,19 +2278,18 @@ public java.lang.String getLegacyUserId() {
      * 
* * string legacy_user_id = 8; + * * @return The bytes for legacyUserId. */ @java.lang.Override - public com.google.protobuf.ByteString - getLegacyUserIdBytes() { + public com.google.protobuf.ByteString getLegacyUserIdBytes() { java.lang.Object ref = ""; if (legacyIdCase_ == 8) { ref = legacyId_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (legacyIdCase_ == 8) { legacyId_ = b; } @@ -2020,6 +2299,8 @@ public java.lang.String getLegacyUserId() { } } /** + * + * *
      * The legacy id of the user. This field is used to signal
      * the use of the compound resource pattern
@@ -2027,18 +2308,22 @@ public java.lang.String getLegacyUserId() {
      * 
* * string legacy_user_id = 8; + * * @param value The legacyUserId to set. * @return This builder for chaining. */ - public Builder setLegacyUserId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLegacyUserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } legacyIdCase_ = 8; legacyId_ = value; onChanged(); return this; } /** + * + * *
      * The legacy id of the user. This field is used to signal
      * the use of the compound resource pattern
@@ -2046,6 +2331,7 @@ public Builder setLegacyUserId(
      * 
* * string legacy_user_id = 8; + * * @return This builder for chaining. */ public Builder clearLegacyUserId() { @@ -2057,6 +2343,8 @@ public Builder clearLegacyUserId() { return this; } /** + * + * *
      * The legacy id of the user. This field is used to signal
      * the use of the compound resource pattern
@@ -2064,21 +2352,23 @@ public Builder clearLegacyUserId() {
      * 
* * string legacy_user_id = 8; + * * @param value The bytes for legacyUserId to set. * @return This builder for chaining. */ - public Builder setLegacyUserIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLegacyUserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); legacyIdCase_ = 8; legacyId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2088,12 +2378,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.Blurb) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.Blurb) private static final com.google.showcase.v1beta1.Blurb DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.Blurb(); } @@ -2102,27 +2392,27 @@ public static com.google.showcase.v1beta1.Blurb getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Blurb parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Blurb parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2137,6 +2427,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.Blurb getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java similarity index 100% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbOrBuilder.java similarity index 74% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbOrBuilder.java index 2723023349..f7dd77ae49 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbOrBuilder.java @@ -1,156 +1,224 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface BlurbOrBuilder extends +public interface BlurbOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.Blurb) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the chat room.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the chat room.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The resource name of the blurb's author.
    * 
* - * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The user. */ java.lang.String getUser(); /** + * + * *
    * The resource name of the blurb's author.
    * 
* - * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string user = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for user. */ - com.google.protobuf.ByteString - getUserBytes(); + com.google.protobuf.ByteString getUserBytes(); /** + * + * *
    * The textual content of this blurb.
    * 
* * string text = 3; + * * @return Whether the text field is set. */ boolean hasText(); /** + * + * *
    * The textual content of this blurb.
    * 
* * string text = 3; + * * @return The text. */ java.lang.String getText(); /** + * + * *
    * The textual content of this blurb.
    * 
* * string text = 3; + * * @return The bytes for text. */ - com.google.protobuf.ByteString - getTextBytes(); + com.google.protobuf.ByteString getTextBytes(); /** + * + * *
    * The image content of this blurb.
    * 
* * bytes image = 4; + * * @return Whether the image field is set. */ boolean hasImage(); /** + * + * *
    * The image content of this blurb.
    * 
* * bytes image = 4; + * * @return The image. */ com.google.protobuf.ByteString getImage(); /** + * + * *
    * The timestamp at which the blurb was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The timestamp at which the blurb was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The timestamp at which the blurb was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The latest timestamp at which the blurb was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The latest timestamp at which the blurb was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The latest timestamp at which the blurb was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * The legacy id of the room. This field is used to signal
    * the use of the compound resource pattern
@@ -158,10 +226,13 @@ public interface BlurbOrBuilder extends
    * 
* * string legacy_room_id = 7; + * * @return Whether the legacyRoomId field is set. */ boolean hasLegacyRoomId(); /** + * + * *
    * The legacy id of the room. This field is used to signal
    * the use of the compound resource pattern
@@ -169,10 +240,13 @@ public interface BlurbOrBuilder extends
    * 
* * string legacy_room_id = 7; + * * @return The legacyRoomId. */ java.lang.String getLegacyRoomId(); /** + * + * *
    * The legacy id of the room. This field is used to signal
    * the use of the compound resource pattern
@@ -180,12 +254,14 @@ public interface BlurbOrBuilder extends
    * 
* * string legacy_room_id = 7; + * * @return The bytes for legacyRoomId. */ - com.google.protobuf.ByteString - getLegacyRoomIdBytes(); + com.google.protobuf.ByteString getLegacyRoomIdBytes(); /** + * + * *
    * The legacy id of the user. This field is used to signal
    * the use of the compound resource pattern
@@ -193,10 +269,13 @@ public interface BlurbOrBuilder extends
    * 
* * string legacy_user_id = 8; + * * @return Whether the legacyUserId field is set. */ boolean hasLegacyUserId(); /** + * + * *
    * The legacy id of the user. This field is used to signal
    * the use of the compound resource pattern
@@ -204,10 +283,13 @@ public interface BlurbOrBuilder extends
    * 
* * string legacy_user_id = 8; + * * @return The legacyUserId. */ java.lang.String getLegacyUserId(); /** + * + * *
    * The legacy id of the user. This field is used to signal
    * the use of the compound resource pattern
@@ -215,10 +297,10 @@ public interface BlurbOrBuilder extends
    * 
* * string legacy_user_id = 8; + * * @return The bytes for legacyUserId. */ - com.google.protobuf.ByteString - getLegacyUserIdBytes(); + com.google.protobuf.ByteString getLegacyUserIdBytes(); com.google.showcase.v1beta1.Blurb.ContentCase getContentCase(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceData.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceData.java similarity index 70% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceData.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceData.java index 8841c7628f..cd5669f048 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceData.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceData.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/compliance.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * ComplianceData is a message used for testing REST transcoding of
  * different data types.
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.ComplianceData}
  */
-public final class ComplianceData extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ComplianceData extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ComplianceData)
     ComplianceDataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ComplianceData.newBuilder() to construct.
   private ComplianceData(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ComplianceData() {
     fString_ = "";
     fBytes_ = com.google.protobuf.ByteString.EMPTY;
@@ -31,90 +49,59 @@ private ComplianceData() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ComplianceData();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceData_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.ComplianceOuterClass
+        .internal_static_google_showcase_v1beta1_ComplianceData_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceData_fieldAccessorTable
+    return com.google.showcase.v1beta1.ComplianceOuterClass
+        .internal_static_google_showcase_v1beta1_ComplianceData_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.ComplianceData.class, com.google.showcase.v1beta1.ComplianceData.Builder.class);
+            com.google.showcase.v1beta1.ComplianceData.class,
+            com.google.showcase.v1beta1.ComplianceData.Builder.class);
   }
 
-  /**
-   * Protobuf enum {@code google.showcase.v1beta1.ComplianceData.LifeKingdom}
-   */
-  public enum LifeKingdom
-      implements com.google.protobuf.ProtocolMessageEnum {
-    /**
-     * LIFE_KINGDOM_UNSPECIFIED = 0;
-     */
+  /** Protobuf enum {@code google.showcase.v1beta1.ComplianceData.LifeKingdom} */
+  public enum LifeKingdom implements com.google.protobuf.ProtocolMessageEnum {
+    /** LIFE_KINGDOM_UNSPECIFIED = 0; */
     LIFE_KINGDOM_UNSPECIFIED(0),
-    /**
-     * ARCHAEBACTERIA = 1;
-     */
+    /** ARCHAEBACTERIA = 1; */
     ARCHAEBACTERIA(1),
-    /**
-     * EUBACTERIA = 2;
-     */
+    /** EUBACTERIA = 2; */
     EUBACTERIA(2),
-    /**
-     * PROTISTA = 3;
-     */
+    /** PROTISTA = 3; */
     PROTISTA(3),
-    /**
-     * FUNGI = 4;
-     */
+    /** FUNGI = 4; */
     FUNGI(4),
-    /**
-     * PLANTAE = 5;
-     */
+    /** PLANTAE = 5; */
     PLANTAE(5),
-    /**
-     * ANIMALIA = 6;
-     */
+    /** ANIMALIA = 6; */
     ANIMALIA(6),
     UNRECOGNIZED(-1),
     ;
 
-    /**
-     * LIFE_KINGDOM_UNSPECIFIED = 0;
-     */
+    /** LIFE_KINGDOM_UNSPECIFIED = 0; */
     public static final int LIFE_KINGDOM_UNSPECIFIED_VALUE = 0;
-    /**
-     * ARCHAEBACTERIA = 1;
-     */
+    /** ARCHAEBACTERIA = 1; */
     public static final int ARCHAEBACTERIA_VALUE = 1;
-    /**
-     * EUBACTERIA = 2;
-     */
+    /** EUBACTERIA = 2; */
     public static final int EUBACTERIA_VALUE = 2;
-    /**
-     * PROTISTA = 3;
-     */
+    /** PROTISTA = 3; */
     public static final int PROTISTA_VALUE = 3;
-    /**
-     * FUNGI = 4;
-     */
+    /** FUNGI = 4; */
     public static final int FUNGI_VALUE = 4;
-    /**
-     * PLANTAE = 5;
-     */
+    /** PLANTAE = 5; */
     public static final int PLANTAE_VALUE = 5;
-    /**
-     * ANIMALIA = 6;
-     */
+    /** ANIMALIA = 6; */
     public static final int ANIMALIA_VALUE = 6;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -139,53 +126,57 @@ public static LifeKingdom valueOf(int value) {
      */
     public static LifeKingdom forNumber(int value) {
       switch (value) {
-        case 0: return LIFE_KINGDOM_UNSPECIFIED;
-        case 1: return ARCHAEBACTERIA;
-        case 2: return EUBACTERIA;
-        case 3: return PROTISTA;
-        case 4: return FUNGI;
-        case 5: return PLANTAE;
-        case 6: return ANIMALIA;
-        default: return null;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+        case 0:
+          return LIFE_KINGDOM_UNSPECIFIED;
+        case 1:
+          return ARCHAEBACTERIA;
+        case 2:
+          return EUBACTERIA;
+        case 3:
+          return PROTISTA;
+        case 4:
+          return FUNGI;
+        case 5:
+          return PLANTAE;
+        case 6:
+          return ANIMALIA;
+        default:
+          return null;
+      }
+    }
+
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        LifeKingdom> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public LifeKingdom findValueByNumber(int number) {
-              return LifeKingdom.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public LifeKingdom findValueByNumber(int number) {
+            return LifeKingdom.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.showcase.v1beta1.ComplianceData.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final LifeKingdom[] VALUES = values();
 
-    public static LifeKingdom valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static LifeKingdom valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -204,10 +195,12 @@ private LifeKingdom(int value) {
 
   private int bitField0_;
   public static final int F_STRING_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object fString_ = "";
   /**
    * string f_string = 1;
+   *
    * @return The fString.
    */
   @java.lang.Override
@@ -216,8 +209,7 @@ public java.lang.String getFString() {
     if (ref instanceof java.lang.String) {
       return (java.lang.String) ref;
     } else {
-      com.google.protobuf.ByteString bs = 
-          (com.google.protobuf.ByteString) ref;
+      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
       java.lang.String s = bs.toStringUtf8();
       fString_ = s;
       return s;
@@ -225,16 +217,15 @@ public java.lang.String getFString() {
   }
   /**
    * string f_string = 1;
+   *
    * @return The bytes for fString.
    */
   @java.lang.Override
-  public com.google.protobuf.ByteString
-      getFStringBytes() {
+  public com.google.protobuf.ByteString getFStringBytes() {
     java.lang.Object ref = fString_;
     if (ref instanceof java.lang.String) {
-      com.google.protobuf.ByteString b = 
-          com.google.protobuf.ByteString.copyFromUtf8(
-              (java.lang.String) ref);
+      com.google.protobuf.ByteString b =
+          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
       fString_ = b;
       return b;
     } else {
@@ -246,6 +237,7 @@ public java.lang.String getFString() {
   private int fInt32_ = 0;
   /**
    * int32 f_int32 = 2;
+   *
    * @return The fInt32.
    */
   @java.lang.Override
@@ -257,6 +249,7 @@ public int getFInt32() {
   private int fSint32_ = 0;
   /**
    * sint32 f_sint32 = 3;
+   *
    * @return The fSint32.
    */
   @java.lang.Override
@@ -268,6 +261,7 @@ public int getFSint32() {
   private int fSfixed32_ = 0;
   /**
    * sfixed32 f_sfixed32 = 4;
+   *
    * @return The fSfixed32.
    */
   @java.lang.Override
@@ -279,6 +273,7 @@ public int getFSfixed32() {
   private int fUint32_ = 0;
   /**
    * uint32 f_uint32 = 5;
+   *
    * @return The fUint32.
    */
   @java.lang.Override
@@ -290,6 +285,7 @@ public int getFUint32() {
   private int fFixed32_ = 0;
   /**
    * fixed32 f_fixed32 = 6;
+   *
    * @return The fFixed32.
    */
   @java.lang.Override
@@ -301,6 +297,7 @@ public int getFFixed32() {
   private long fInt64_ = 0L;
   /**
    * int64 f_int64 = 7;
+   *
    * @return The fInt64.
    */
   @java.lang.Override
@@ -312,6 +309,7 @@ public long getFInt64() {
   private long fSint64_ = 0L;
   /**
    * sint64 f_sint64 = 8;
+   *
    * @return The fSint64.
    */
   @java.lang.Override
@@ -323,6 +321,7 @@ public long getFSint64() {
   private long fSfixed64_ = 0L;
   /**
    * sfixed64 f_sfixed64 = 9;
+   *
    * @return The fSfixed64.
    */
   @java.lang.Override
@@ -334,6 +333,7 @@ public long getFSfixed64() {
   private long fUint64_ = 0L;
   /**
    * uint64 f_uint64 = 10;
+   *
    * @return The fUint64.
    */
   @java.lang.Override
@@ -345,6 +345,7 @@ public long getFUint64() {
   private long fFixed64_ = 0L;
   /**
    * fixed64 f_fixed64 = 11;
+   *
    * @return The fFixed64.
    */
   @java.lang.Override
@@ -356,6 +357,7 @@ public long getFFixed64() {
   private double fDouble_ = 0D;
   /**
    * double f_double = 12;
+   *
    * @return The fDouble.
    */
   @java.lang.Override
@@ -367,6 +369,7 @@ public double getFDouble() {
   private float fFloat_ = 0F;
   /**
    * float f_float = 13;
+   *
    * @return The fFloat.
    */
   @java.lang.Override
@@ -378,6 +381,7 @@ public float getFFloat() {
   private boolean fBool_ = false;
   /**
    * bool f_bool = 14;
+   *
    * @return The fBool.
    */
   @java.lang.Override
@@ -389,6 +393,7 @@ public boolean getFBool() {
   private com.google.protobuf.ByteString fBytes_ = com.google.protobuf.ByteString.EMPTY;
   /**
    * bytes f_bytes = 15;
+   *
    * @return The fBytes.
    */
   @java.lang.Override
@@ -400,24 +405,32 @@ public com.google.protobuf.ByteString getFBytes() {
   private int fKingdom_ = 0;
   /**
    * .google.showcase.v1beta1.ComplianceData.LifeKingdom f_kingdom = 22;
+   *
    * @return The enum numeric value on the wire for fKingdom.
    */
-  @java.lang.Override public int getFKingdomValue() {
+  @java.lang.Override
+  public int getFKingdomValue() {
     return fKingdom_;
   }
   /**
    * .google.showcase.v1beta1.ComplianceData.LifeKingdom f_kingdom = 22;
+   *
    * @return The fKingdom.
    */
-  @java.lang.Override public com.google.showcase.v1beta1.ComplianceData.LifeKingdom getFKingdom() {
-    com.google.showcase.v1beta1.ComplianceData.LifeKingdom result = com.google.showcase.v1beta1.ComplianceData.LifeKingdom.forNumber(fKingdom_);
-    return result == null ? com.google.showcase.v1beta1.ComplianceData.LifeKingdom.UNRECOGNIZED : result;
+  @java.lang.Override
+  public com.google.showcase.v1beta1.ComplianceData.LifeKingdom getFKingdom() {
+    com.google.showcase.v1beta1.ComplianceData.LifeKingdom result =
+        com.google.showcase.v1beta1.ComplianceData.LifeKingdom.forNumber(fKingdom_);
+    return result == null
+        ? com.google.showcase.v1beta1.ComplianceData.LifeKingdom.UNRECOGNIZED
+        : result;
   }
 
   public static final int F_CHILD_FIELD_NUMBER = 16;
   private com.google.showcase.v1beta1.ComplianceDataChild fChild_;
   /**
    * .google.showcase.v1beta1.ComplianceDataChild f_child = 16;
+   *
    * @return Whether the fChild field is set.
    */
   @java.lang.Override
@@ -426,25 +439,30 @@ public boolean hasFChild() {
   }
   /**
    * .google.showcase.v1beta1.ComplianceDataChild f_child = 16;
+   *
    * @return The fChild.
    */
   @java.lang.Override
   public com.google.showcase.v1beta1.ComplianceDataChild getFChild() {
-    return fChild_ == null ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance() : fChild_;
+    return fChild_ == null
+        ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance()
+        : fChild_;
   }
-  /**
-   * .google.showcase.v1beta1.ComplianceDataChild f_child = 16;
-   */
+  /** .google.showcase.v1beta1.ComplianceDataChild f_child = 16; */
   @java.lang.Override
   public com.google.showcase.v1beta1.ComplianceDataChildOrBuilder getFChildOrBuilder() {
-    return fChild_ == null ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance() : fChild_;
+    return fChild_ == null
+        ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance()
+        : fChild_;
   }
 
   public static final int P_STRING_FIELD_NUMBER = 17;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object pString_ = "";
   /**
    * optional string p_string = 17;
+   *
    * @return Whether the pString field is set.
    */
   @java.lang.Override
@@ -453,6 +471,7 @@ public boolean hasPString() {
   }
   /**
    * optional string p_string = 17;
+   *
    * @return The pString.
    */
   @java.lang.Override
@@ -461,8 +480,7 @@ public java.lang.String getPString() {
     if (ref instanceof java.lang.String) {
       return (java.lang.String) ref;
     } else {
-      com.google.protobuf.ByteString bs = 
-          (com.google.protobuf.ByteString) ref;
+      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
       java.lang.String s = bs.toStringUtf8();
       pString_ = s;
       return s;
@@ -470,16 +488,15 @@ public java.lang.String getPString() {
   }
   /**
    * optional string p_string = 17;
+   *
    * @return The bytes for pString.
    */
   @java.lang.Override
-  public com.google.protobuf.ByteString
-      getPStringBytes() {
+  public com.google.protobuf.ByteString getPStringBytes() {
     java.lang.Object ref = pString_;
     if (ref instanceof java.lang.String) {
-      com.google.protobuf.ByteString b = 
-          com.google.protobuf.ByteString.copyFromUtf8(
-              (java.lang.String) ref);
+      com.google.protobuf.ByteString b =
+          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
       pString_ = b;
       return b;
     } else {
@@ -491,6 +508,7 @@ public java.lang.String getPString() {
   private int pInt32_ = 0;
   /**
    * optional int32 p_int32 = 18;
+   *
    * @return Whether the pInt32 field is set.
    */
   @java.lang.Override
@@ -499,6 +517,7 @@ public boolean hasPInt32() {
   }
   /**
    * optional int32 p_int32 = 18;
+   *
    * @return The pInt32.
    */
   @java.lang.Override
@@ -510,6 +529,7 @@ public int getPInt32() {
   private double pDouble_ = 0D;
   /**
    * optional double p_double = 19;
+   *
    * @return Whether the pDouble field is set.
    */
   @java.lang.Override
@@ -518,6 +538,7 @@ public boolean hasPDouble() {
   }
   /**
    * optional double p_double = 19;
+   *
    * @return The pDouble.
    */
   @java.lang.Override
@@ -529,6 +550,7 @@ public double getPDouble() {
   private boolean pBool_ = false;
   /**
    * optional bool p_bool = 20;
+   *
    * @return Whether the pBool field is set.
    */
   @java.lang.Override
@@ -537,6 +559,7 @@ public boolean hasPBool() {
   }
   /**
    * optional bool p_bool = 20;
+   *
    * @return The pBool.
    */
   @java.lang.Override
@@ -548,31 +571,41 @@ public boolean getPBool() {
   private int pKingdom_ = 0;
   /**
    * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23;
+   *
    * @return Whether the pKingdom field is set.
    */
-  @java.lang.Override public boolean hasPKingdom() {
+  @java.lang.Override
+  public boolean hasPKingdom() {
     return ((bitField0_ & 0x00000020) != 0);
   }
   /**
    * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23;
+   *
    * @return The enum numeric value on the wire for pKingdom.
    */
-  @java.lang.Override public int getPKingdomValue() {
+  @java.lang.Override
+  public int getPKingdomValue() {
     return pKingdom_;
   }
   /**
    * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23;
+   *
    * @return The pKingdom.
    */
-  @java.lang.Override public com.google.showcase.v1beta1.ComplianceData.LifeKingdom getPKingdom() {
-    com.google.showcase.v1beta1.ComplianceData.LifeKingdom result = com.google.showcase.v1beta1.ComplianceData.LifeKingdom.forNumber(pKingdom_);
-    return result == null ? com.google.showcase.v1beta1.ComplianceData.LifeKingdom.UNRECOGNIZED : result;
+  @java.lang.Override
+  public com.google.showcase.v1beta1.ComplianceData.LifeKingdom getPKingdom() {
+    com.google.showcase.v1beta1.ComplianceData.LifeKingdom result =
+        com.google.showcase.v1beta1.ComplianceData.LifeKingdom.forNumber(pKingdom_);
+    return result == null
+        ? com.google.showcase.v1beta1.ComplianceData.LifeKingdom.UNRECOGNIZED
+        : result;
   }
 
   public static final int P_CHILD_FIELD_NUMBER = 21;
   private com.google.showcase.v1beta1.ComplianceDataChild pChild_;
   /**
    * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21;
+   *
    * @return Whether the pChild field is set.
    */
   @java.lang.Override
@@ -581,21 +614,25 @@ public boolean hasPChild() {
   }
   /**
    * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21;
+   *
    * @return The pChild.
    */
   @java.lang.Override
   public com.google.showcase.v1beta1.ComplianceDataChild getPChild() {
-    return pChild_ == null ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance() : pChild_;
+    return pChild_ == null
+        ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance()
+        : pChild_;
   }
-  /**
-   * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21;
-   */
+  /** optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; */
   @java.lang.Override
   public com.google.showcase.v1beta1.ComplianceDataChildOrBuilder getPChildOrBuilder() {
-    return pChild_ == null ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance() : pChild_;
+    return pChild_ == null
+        ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance()
+        : pChild_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -607,8 +644,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fString_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fString_);
     }
@@ -672,7 +708,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (((bitField0_ & 0x00000040) != 0)) {
       output.writeMessage(21, getPChild());
     }
-    if (fKingdom_ != com.google.showcase.v1beta1.ComplianceData.LifeKingdom.LIFE_KINGDOM_UNSPECIFIED.getNumber()) {
+    if (fKingdom_
+        != com.google.showcase.v1beta1.ComplianceData.LifeKingdom.LIFE_KINGDOM_UNSPECIFIED
+            .getNumber()) {
       output.writeEnum(22, fKingdom_);
     }
     if (((bitField0_ & 0x00000020) != 0)) {
@@ -691,91 +729,72 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fString_);
     }
     if (fInt32_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt32Size(2, fInt32_);
+      size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, fInt32_);
     }
     if (fSint32_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeSInt32Size(3, fSint32_);
+      size += com.google.protobuf.CodedOutputStream.computeSInt32Size(3, fSint32_);
     }
     if (fSfixed32_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeSFixed32Size(4, fSfixed32_);
+      size += com.google.protobuf.CodedOutputStream.computeSFixed32Size(4, fSfixed32_);
     }
     if (fUint32_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeUInt32Size(5, fUint32_);
+      size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, fUint32_);
     }
     if (fFixed32_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFixed32Size(6, fFixed32_);
+      size += com.google.protobuf.CodedOutputStream.computeFixed32Size(6, fFixed32_);
     }
     if (fInt64_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(7, fInt64_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, fInt64_);
     }
     if (fSint64_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeSInt64Size(8, fSint64_);
+      size += com.google.protobuf.CodedOutputStream.computeSInt64Size(8, fSint64_);
     }
     if (fSfixed64_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeSFixed64Size(9, fSfixed64_);
+      size += com.google.protobuf.CodedOutputStream.computeSFixed64Size(9, fSfixed64_);
     }
     if (fUint64_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeUInt64Size(10, fUint64_);
+      size += com.google.protobuf.CodedOutputStream.computeUInt64Size(10, fUint64_);
     }
     if (fFixed64_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFixed64Size(11, fFixed64_);
+      size += com.google.protobuf.CodedOutputStream.computeFixed64Size(11, fFixed64_);
     }
     if (java.lang.Double.doubleToRawLongBits(fDouble_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeDoubleSize(12, fDouble_);
+      size += com.google.protobuf.CodedOutputStream.computeDoubleSize(12, fDouble_);
     }
     if (java.lang.Float.floatToRawIntBits(fFloat_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(13, fFloat_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(13, fFloat_);
     }
     if (fBool_ != false) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBoolSize(14, fBool_);
+      size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, fBool_);
     }
     if (!fBytes_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBytesSize(15, fBytes_);
+      size += com.google.protobuf.CodedOutputStream.computeBytesSize(15, fBytes_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(16, getFChild());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getFChild());
     }
     if (((bitField0_ & 0x00000002) != 0)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, pString_);
     }
     if (((bitField0_ & 0x00000004) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt32Size(18, pInt32_);
+      size += com.google.protobuf.CodedOutputStream.computeInt32Size(18, pInt32_);
     }
     if (((bitField0_ & 0x00000008) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeDoubleSize(19, pDouble_);
+      size += com.google.protobuf.CodedOutputStream.computeDoubleSize(19, pDouble_);
     }
     if (((bitField0_ & 0x00000010) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBoolSize(20, pBool_);
+      size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, pBool_);
     }
     if (((bitField0_ & 0x00000040) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(21, getPChild());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getPChild());
     }
-    if (fKingdom_ != com.google.showcase.v1beta1.ComplianceData.LifeKingdom.LIFE_KINGDOM_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(22, fKingdom_);
+    if (fKingdom_
+        != com.google.showcase.v1beta1.ComplianceData.LifeKingdom.LIFE_KINGDOM_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, fKingdom_);
     }
     if (((bitField0_ & 0x00000020) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(23, pKingdom_);
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(23, pKingdom_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -785,71 +804,52 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.showcase.v1beta1.ComplianceData)) {
       return super.equals(obj);
     }
-    com.google.showcase.v1beta1.ComplianceData other = (com.google.showcase.v1beta1.ComplianceData) obj;
-
-    if (!getFString()
-        .equals(other.getFString())) return false;
-    if (getFInt32()
-        != other.getFInt32()) return false;
-    if (getFSint32()
-        != other.getFSint32()) return false;
-    if (getFSfixed32()
-        != other.getFSfixed32()) return false;
-    if (getFUint32()
-        != other.getFUint32()) return false;
-    if (getFFixed32()
-        != other.getFFixed32()) return false;
-    if (getFInt64()
-        != other.getFInt64()) return false;
-    if (getFSint64()
-        != other.getFSint64()) return false;
-    if (getFSfixed64()
-        != other.getFSfixed64()) return false;
-    if (getFUint64()
-        != other.getFUint64()) return false;
-    if (getFFixed64()
-        != other.getFFixed64()) return false;
+    com.google.showcase.v1beta1.ComplianceData other =
+        (com.google.showcase.v1beta1.ComplianceData) obj;
+
+    if (!getFString().equals(other.getFString())) return false;
+    if (getFInt32() != other.getFInt32()) return false;
+    if (getFSint32() != other.getFSint32()) return false;
+    if (getFSfixed32() != other.getFSfixed32()) return false;
+    if (getFUint32() != other.getFUint32()) return false;
+    if (getFFixed32() != other.getFFixed32()) return false;
+    if (getFInt64() != other.getFInt64()) return false;
+    if (getFSint64() != other.getFSint64()) return false;
+    if (getFSfixed64() != other.getFSfixed64()) return false;
+    if (getFUint64() != other.getFUint64()) return false;
+    if (getFFixed64() != other.getFFixed64()) return false;
     if (java.lang.Double.doubleToLongBits(getFDouble())
-        != java.lang.Double.doubleToLongBits(
-            other.getFDouble())) return false;
+        != java.lang.Double.doubleToLongBits(other.getFDouble())) return false;
     if (java.lang.Float.floatToIntBits(getFFloat())
-        != java.lang.Float.floatToIntBits(
-            other.getFFloat())) return false;
-    if (getFBool()
-        != other.getFBool()) return false;
-    if (!getFBytes()
-        .equals(other.getFBytes())) return false;
+        != java.lang.Float.floatToIntBits(other.getFFloat())) return false;
+    if (getFBool() != other.getFBool()) return false;
+    if (!getFBytes().equals(other.getFBytes())) return false;
     if (fKingdom_ != other.fKingdom_) return false;
     if (hasFChild() != other.hasFChild()) return false;
     if (hasFChild()) {
-      if (!getFChild()
-          .equals(other.getFChild())) return false;
+      if (!getFChild().equals(other.getFChild())) return false;
     }
     if (hasPString() != other.hasPString()) return false;
     if (hasPString()) {
-      if (!getPString()
-          .equals(other.getPString())) return false;
+      if (!getPString().equals(other.getPString())) return false;
     }
     if (hasPInt32() != other.hasPInt32()) return false;
     if (hasPInt32()) {
-      if (getPInt32()
-          != other.getPInt32()) return false;
+      if (getPInt32() != other.getPInt32()) return false;
     }
     if (hasPDouble() != other.hasPDouble()) return false;
     if (hasPDouble()) {
       if (java.lang.Double.doubleToLongBits(getPDouble())
-          != java.lang.Double.doubleToLongBits(
-              other.getPDouble())) return false;
+          != java.lang.Double.doubleToLongBits(other.getPDouble())) return false;
     }
     if (hasPBool() != other.hasPBool()) return false;
     if (hasPBool()) {
-      if (getPBool()
-          != other.getPBool()) return false;
+      if (getPBool() != other.getPBool()) return false;
     }
     if (hasPKingdom() != other.hasPKingdom()) return false;
     if (hasPKingdom()) {
@@ -857,8 +857,7 @@ public boolean equals(final java.lang.Object obj) {
     }
     if (hasPChild() != other.hasPChild()) return false;
     if (hasPChild()) {
-      if (!getPChild()
-          .equals(other.getPChild())) return false;
+      if (!getPChild().equals(other.getPChild())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -884,29 +883,24 @@ public int hashCode() {
     hash = (37 * hash) + F_FIXED32_FIELD_NUMBER;
     hash = (53 * hash) + getFFixed32();
     hash = (37 * hash) + F_INT64_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getFInt64());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFInt64());
     hash = (37 * hash) + F_SINT64_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getFSint64());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFSint64());
     hash = (37 * hash) + F_SFIXED64_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getFSfixed64());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFSfixed64());
     hash = (37 * hash) + F_UINT64_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getFUint64());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFUint64());
     hash = (37 * hash) + F_FIXED64_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getFFixed64());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFFixed64());
     hash = (37 * hash) + F_DOUBLE_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        java.lang.Double.doubleToLongBits(getFDouble()));
+    hash =
+        (53 * hash)
+            + com.google.protobuf.Internal.hashLong(
+                java.lang.Double.doubleToLongBits(getFDouble()));
     hash = (37 * hash) + F_FLOAT_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getFFloat());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getFFloat());
     hash = (37 * hash) + F_BOOL_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-        getFBool());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFBool());
     hash = (37 * hash) + F_BYTES_FIELD_NUMBER;
     hash = (53 * hash) + getFBytes().hashCode();
     hash = (37 * hash) + F_KINGDOM_FIELD_NUMBER;
@@ -925,13 +919,14 @@ public int hashCode() {
     }
     if (hasPDouble()) {
       hash = (37 * hash) + P_DOUBLE_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-          java.lang.Double.doubleToLongBits(getPDouble()));
+      hash =
+          (53 * hash)
+              + com.google.protobuf.Internal.hashLong(
+                  java.lang.Double.doubleToLongBits(getPDouble()));
     }
     if (hasPBool()) {
       hash = (37 * hash) + P_BOOL_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-          getPBool());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPBool());
     }
     if (hasPKingdom()) {
       hash = (37 * hash) + P_KINGDOM_FIELD_NUMBER;
@@ -946,99 +941,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.showcase.v1beta1.ComplianceData parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.showcase.v1beta1.ComplianceData parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.ComplianceData parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceData parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.ComplianceData parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceData parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.ComplianceData parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceData parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.ComplianceData parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.showcase.v1beta1.ComplianceData parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.showcase.v1beta1.ComplianceData parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.showcase.v1beta1.ComplianceData parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceData parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.ComplianceData parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.showcase.v1beta1.ComplianceData prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * ComplianceData is a message used for testing REST transcoding of
    * different data types.
@@ -1046,21 +1046,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.ComplianceData}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ComplianceData)
       com.google.showcase.v1beta1.ComplianceDataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceData_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.ComplianceOuterClass
+          .internal_static_google_showcase_v1beta1_ComplianceData_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceData_fieldAccessorTable
+      return com.google.showcase.v1beta1.ComplianceOuterClass
+          .internal_static_google_showcase_v1beta1_ComplianceData_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.ComplianceData.class, com.google.showcase.v1beta1.ComplianceData.Builder.class);
+              com.google.showcase.v1beta1.ComplianceData.class,
+              com.google.showcase.v1beta1.ComplianceData.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.ComplianceData.newBuilder()
@@ -1068,18 +1070,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getFChildFieldBuilder();
         getPChildFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1119,9 +1121,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceData_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.ComplianceOuterClass
+          .internal_static_google_showcase_v1beta1_ComplianceData_descriptor;
     }
 
     @java.lang.Override
@@ -1140,8 +1142,11 @@ public com.google.showcase.v1beta1.ComplianceData build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.ComplianceData buildPartial() {
-      com.google.showcase.v1beta1.ComplianceData result = new com.google.showcase.v1beta1.ComplianceData(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.ComplianceData result =
+          new com.google.showcase.v1beta1.ComplianceData(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1198,9 +1203,7 @@ private void buildPartial0(com.google.showcase.v1beta1.ComplianceData result) {
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00010000) != 0)) {
-        result.fChild_ = fChildBuilder_ == null
-            ? fChild_
-            : fChildBuilder_.build();
+        result.fChild_ = fChildBuilder_ == null ? fChild_ : fChildBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00020000) != 0)) {
@@ -1224,9 +1227,7 @@ private void buildPartial0(com.google.showcase.v1beta1.ComplianceData result) {
         to_bitField0_ |= 0x00000020;
       }
       if (((from_bitField0_ & 0x00400000) != 0)) {
-        result.pChild_ = pChildBuilder_ == null
-            ? pChild_
-            : pChildBuilder_.build();
+        result.pChild_ = pChildBuilder_ == null ? pChild_ : pChildBuilder_.build();
         to_bitField0_ |= 0x00000040;
       }
       result.bitField0_ |= to_bitField0_;
@@ -1236,38 +1237,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ComplianceData result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.ComplianceData) {
-        return mergeFrom((com.google.showcase.v1beta1.ComplianceData)other);
+        return mergeFrom((com.google.showcase.v1beta1.ComplianceData) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1375,131 +1377,151 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              fString_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              fInt32_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              fSint32_ = input.readSInt32();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 37: {
-              fSfixed32_ = input.readSFixed32();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 37
-            case 40: {
-              fUint32_ = input.readUInt32();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            case 53: {
-              fFixed32_ = input.readFixed32();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 53
-            case 56: {
-              fInt64_ = input.readInt64();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 56
-            case 64: {
-              fSint64_ = input.readSInt64();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 64
-            case 73: {
-              fSfixed64_ = input.readSFixed64();
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 73
-            case 80: {
-              fUint64_ = input.readUInt64();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 80
-            case 89: {
-              fFixed64_ = input.readFixed64();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 89
-            case 97: {
-              fDouble_ = input.readDouble();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 97
-            case 109: {
-              fFloat_ = input.readFloat();
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 109
-            case 112: {
-              fBool_ = input.readBool();
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 112
-            case 122: {
-              fBytes_ = input.readBytes();
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 122
-            case 130: {
-              input.readMessage(
-                  getFChildFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00010000;
-              break;
-            } // case 130
-            case 138: {
-              pString_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00020000;
-              break;
-            } // case 138
-            case 144: {
-              pInt32_ = input.readInt32();
-              bitField0_ |= 0x00040000;
-              break;
-            } // case 144
-            case 153: {
-              pDouble_ = input.readDouble();
-              bitField0_ |= 0x00080000;
-              break;
-            } // case 153
-            case 160: {
-              pBool_ = input.readBool();
-              bitField0_ |= 0x00100000;
-              break;
-            } // case 160
-            case 170: {
-              input.readMessage(
-                  getPChildFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00400000;
-              break;
-            } // case 170
-            case 176: {
-              fKingdom_ = input.readEnum();
-              bitField0_ |= 0x00008000;
-              break;
-            } // case 176
-            case 184: {
-              pKingdom_ = input.readEnum();
-              bitField0_ |= 0x00200000;
-              break;
-            } // case 184
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                fString_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                fInt32_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                fSint32_ = input.readSInt32();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 37:
+              {
+                fSfixed32_ = input.readSFixed32();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 37
+            case 40:
+              {
+                fUint32_ = input.readUInt32();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            case 53:
+              {
+                fFixed32_ = input.readFixed32();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 53
+            case 56:
+              {
+                fInt64_ = input.readInt64();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 56
+            case 64:
+              {
+                fSint64_ = input.readSInt64();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 64
+            case 73:
+              {
+                fSfixed64_ = input.readSFixed64();
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 73
+            case 80:
+              {
+                fUint64_ = input.readUInt64();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 80
+            case 89:
+              {
+                fFixed64_ = input.readFixed64();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 89
+            case 97:
+              {
+                fDouble_ = input.readDouble();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 97
+            case 109:
+              {
+                fFloat_ = input.readFloat();
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 109
+            case 112:
+              {
+                fBool_ = input.readBool();
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 112
+            case 122:
+              {
+                fBytes_ = input.readBytes();
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 122
+            case 130:
+              {
+                input.readMessage(getFChildFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00010000;
+                break;
+              } // case 130
+            case 138:
+              {
+                pString_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00020000;
+                break;
+              } // case 138
+            case 144:
+              {
+                pInt32_ = input.readInt32();
+                bitField0_ |= 0x00040000;
+                break;
+              } // case 144
+            case 153:
+              {
+                pDouble_ = input.readDouble();
+                bitField0_ |= 0x00080000;
+                break;
+              } // case 153
+            case 160:
+              {
+                pBool_ = input.readBool();
+                bitField0_ |= 0x00100000;
+                break;
+              } // case 160
+            case 170:
+              {
+                input.readMessage(getPChildFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00400000;
+                break;
+              } // case 170
+            case 176:
+              {
+                fKingdom_ = input.readEnum();
+                bitField0_ |= 0x00008000;
+                break;
+              } // case 176
+            case 184:
+              {
+                pKingdom_ = input.readEnum();
+                bitField0_ |= 0x00200000;
+                break;
+              } // case 184
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1509,18 +1531,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object fString_ = "";
     /**
      * string f_string = 1;
+     *
      * @return The fString.
      */
     public java.lang.String getFString() {
       java.lang.Object ref = fString_;
       if (!(ref instanceof java.lang.String)) {
-        com.google.protobuf.ByteString bs =
-            (com.google.protobuf.ByteString) ref;
+        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
         java.lang.String s = bs.toStringUtf8();
         fString_ = s;
         return s;
@@ -1530,15 +1553,14 @@ public java.lang.String getFString() {
     }
     /**
      * string f_string = 1;
+     *
      * @return The bytes for fString.
      */
-    public com.google.protobuf.ByteString
-        getFStringBytes() {
+    public com.google.protobuf.ByteString getFStringBytes() {
       java.lang.Object ref = fString_;
       if (ref instanceof String) {
-        com.google.protobuf.ByteString b = 
-            com.google.protobuf.ByteString.copyFromUtf8(
-                (java.lang.String) ref);
+        com.google.protobuf.ByteString b =
+            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
         fString_ = b;
         return b;
       } else {
@@ -1547,12 +1569,14 @@ public java.lang.String getFString() {
     }
     /**
      * string f_string = 1;
+     *
      * @param value The fString to set.
      * @return This builder for chaining.
      */
-    public Builder setFString(
-        java.lang.String value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setFString(java.lang.String value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       fString_ = value;
       bitField0_ |= 0x00000001;
       onChanged();
@@ -1560,6 +1584,7 @@ public Builder setFString(
     }
     /**
      * string f_string = 1;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFString() {
@@ -1570,12 +1595,14 @@ public Builder clearFString() {
     }
     /**
      * string f_string = 1;
+     *
      * @param value The bytes for fString to set.
      * @return This builder for chaining.
      */
-    public Builder setFStringBytes(
-        com.google.protobuf.ByteString value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setFStringBytes(com.google.protobuf.ByteString value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       checkByteStringIsUtf8(value);
       fString_ = value;
       bitField0_ |= 0x00000001;
@@ -1583,9 +1610,10 @@ public Builder setFStringBytes(
       return this;
     }
 
-    private int fInt32_ ;
+    private int fInt32_;
     /**
      * int32 f_int32 = 2;
+     *
      * @return The fInt32.
      */
     @java.lang.Override
@@ -1594,6 +1622,7 @@ public int getFInt32() {
     }
     /**
      * int32 f_int32 = 2;
+     *
      * @param value The fInt32 to set.
      * @return This builder for chaining.
      */
@@ -1606,6 +1635,7 @@ public Builder setFInt32(int value) {
     }
     /**
      * int32 f_int32 = 2;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFInt32() {
@@ -1615,9 +1645,10 @@ public Builder clearFInt32() {
       return this;
     }
 
-    private int fSint32_ ;
+    private int fSint32_;
     /**
      * sint32 f_sint32 = 3;
+     *
      * @return The fSint32.
      */
     @java.lang.Override
@@ -1626,6 +1657,7 @@ public int getFSint32() {
     }
     /**
      * sint32 f_sint32 = 3;
+     *
      * @param value The fSint32 to set.
      * @return This builder for chaining.
      */
@@ -1638,6 +1670,7 @@ public Builder setFSint32(int value) {
     }
     /**
      * sint32 f_sint32 = 3;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFSint32() {
@@ -1647,9 +1680,10 @@ public Builder clearFSint32() {
       return this;
     }
 
-    private int fSfixed32_ ;
+    private int fSfixed32_;
     /**
      * sfixed32 f_sfixed32 = 4;
+     *
      * @return The fSfixed32.
      */
     @java.lang.Override
@@ -1658,6 +1692,7 @@ public int getFSfixed32() {
     }
     /**
      * sfixed32 f_sfixed32 = 4;
+     *
      * @param value The fSfixed32 to set.
      * @return This builder for chaining.
      */
@@ -1670,6 +1705,7 @@ public Builder setFSfixed32(int value) {
     }
     /**
      * sfixed32 f_sfixed32 = 4;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFSfixed32() {
@@ -1679,9 +1715,10 @@ public Builder clearFSfixed32() {
       return this;
     }
 
-    private int fUint32_ ;
+    private int fUint32_;
     /**
      * uint32 f_uint32 = 5;
+     *
      * @return The fUint32.
      */
     @java.lang.Override
@@ -1690,6 +1727,7 @@ public int getFUint32() {
     }
     /**
      * uint32 f_uint32 = 5;
+     *
      * @param value The fUint32 to set.
      * @return This builder for chaining.
      */
@@ -1702,6 +1740,7 @@ public Builder setFUint32(int value) {
     }
     /**
      * uint32 f_uint32 = 5;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFUint32() {
@@ -1711,9 +1750,10 @@ public Builder clearFUint32() {
       return this;
     }
 
-    private int fFixed32_ ;
+    private int fFixed32_;
     /**
      * fixed32 f_fixed32 = 6;
+     *
      * @return The fFixed32.
      */
     @java.lang.Override
@@ -1722,6 +1762,7 @@ public int getFFixed32() {
     }
     /**
      * fixed32 f_fixed32 = 6;
+     *
      * @param value The fFixed32 to set.
      * @return This builder for chaining.
      */
@@ -1734,6 +1775,7 @@ public Builder setFFixed32(int value) {
     }
     /**
      * fixed32 f_fixed32 = 6;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFFixed32() {
@@ -1743,9 +1785,10 @@ public Builder clearFFixed32() {
       return this;
     }
 
-    private long fInt64_ ;
+    private long fInt64_;
     /**
      * int64 f_int64 = 7;
+     *
      * @return The fInt64.
      */
     @java.lang.Override
@@ -1754,6 +1797,7 @@ public long getFInt64() {
     }
     /**
      * int64 f_int64 = 7;
+     *
      * @param value The fInt64 to set.
      * @return This builder for chaining.
      */
@@ -1766,6 +1810,7 @@ public Builder setFInt64(long value) {
     }
     /**
      * int64 f_int64 = 7;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFInt64() {
@@ -1775,9 +1820,10 @@ public Builder clearFInt64() {
       return this;
     }
 
-    private long fSint64_ ;
+    private long fSint64_;
     /**
      * sint64 f_sint64 = 8;
+     *
      * @return The fSint64.
      */
     @java.lang.Override
@@ -1786,6 +1832,7 @@ public long getFSint64() {
     }
     /**
      * sint64 f_sint64 = 8;
+     *
      * @param value The fSint64 to set.
      * @return This builder for chaining.
      */
@@ -1798,6 +1845,7 @@ public Builder setFSint64(long value) {
     }
     /**
      * sint64 f_sint64 = 8;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFSint64() {
@@ -1807,9 +1855,10 @@ public Builder clearFSint64() {
       return this;
     }
 
-    private long fSfixed64_ ;
+    private long fSfixed64_;
     /**
      * sfixed64 f_sfixed64 = 9;
+     *
      * @return The fSfixed64.
      */
     @java.lang.Override
@@ -1818,6 +1867,7 @@ public long getFSfixed64() {
     }
     /**
      * sfixed64 f_sfixed64 = 9;
+     *
      * @param value The fSfixed64 to set.
      * @return This builder for chaining.
      */
@@ -1830,6 +1880,7 @@ public Builder setFSfixed64(long value) {
     }
     /**
      * sfixed64 f_sfixed64 = 9;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFSfixed64() {
@@ -1839,9 +1890,10 @@ public Builder clearFSfixed64() {
       return this;
     }
 
-    private long fUint64_ ;
+    private long fUint64_;
     /**
      * uint64 f_uint64 = 10;
+     *
      * @return The fUint64.
      */
     @java.lang.Override
@@ -1850,6 +1902,7 @@ public long getFUint64() {
     }
     /**
      * uint64 f_uint64 = 10;
+     *
      * @param value The fUint64 to set.
      * @return This builder for chaining.
      */
@@ -1862,6 +1915,7 @@ public Builder setFUint64(long value) {
     }
     /**
      * uint64 f_uint64 = 10;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFUint64() {
@@ -1871,9 +1925,10 @@ public Builder clearFUint64() {
       return this;
     }
 
-    private long fFixed64_ ;
+    private long fFixed64_;
     /**
      * fixed64 f_fixed64 = 11;
+     *
      * @return The fFixed64.
      */
     @java.lang.Override
@@ -1882,6 +1937,7 @@ public long getFFixed64() {
     }
     /**
      * fixed64 f_fixed64 = 11;
+     *
      * @param value The fFixed64 to set.
      * @return This builder for chaining.
      */
@@ -1894,6 +1950,7 @@ public Builder setFFixed64(long value) {
     }
     /**
      * fixed64 f_fixed64 = 11;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFFixed64() {
@@ -1903,9 +1960,10 @@ public Builder clearFFixed64() {
       return this;
     }
 
-    private double fDouble_ ;
+    private double fDouble_;
     /**
      * double f_double = 12;
+     *
      * @return The fDouble.
      */
     @java.lang.Override
@@ -1914,6 +1972,7 @@ public double getFDouble() {
     }
     /**
      * double f_double = 12;
+     *
      * @param value The fDouble to set.
      * @return This builder for chaining.
      */
@@ -1926,6 +1985,7 @@ public Builder setFDouble(double value) {
     }
     /**
      * double f_double = 12;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFDouble() {
@@ -1935,9 +1995,10 @@ public Builder clearFDouble() {
       return this;
     }
 
-    private float fFloat_ ;
+    private float fFloat_;
     /**
      * float f_float = 13;
+     *
      * @return The fFloat.
      */
     @java.lang.Override
@@ -1946,6 +2007,7 @@ public float getFFloat() {
     }
     /**
      * float f_float = 13;
+     *
      * @param value The fFloat to set.
      * @return This builder for chaining.
      */
@@ -1958,6 +2020,7 @@ public Builder setFFloat(float value) {
     }
     /**
      * float f_float = 13;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFFloat() {
@@ -1967,9 +2030,10 @@ public Builder clearFFloat() {
       return this;
     }
 
-    private boolean fBool_ ;
+    private boolean fBool_;
     /**
      * bool f_bool = 14;
+     *
      * @return The fBool.
      */
     @java.lang.Override
@@ -1978,6 +2042,7 @@ public boolean getFBool() {
     }
     /**
      * bool f_bool = 14;
+     *
      * @param value The fBool to set.
      * @return This builder for chaining.
      */
@@ -1990,6 +2055,7 @@ public Builder setFBool(boolean value) {
     }
     /**
      * bool f_bool = 14;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFBool() {
@@ -2002,6 +2068,7 @@ public Builder clearFBool() {
     private com.google.protobuf.ByteString fBytes_ = com.google.protobuf.ByteString.EMPTY;
     /**
      * bytes f_bytes = 15;
+     *
      * @return The fBytes.
      */
     @java.lang.Override
@@ -2010,11 +2077,14 @@ public com.google.protobuf.ByteString getFBytes() {
     }
     /**
      * bytes f_bytes = 15;
+     *
      * @param value The fBytes to set.
      * @return This builder for chaining.
      */
     public Builder setFBytes(com.google.protobuf.ByteString value) {
-      if (value == null) { throw new NullPointerException(); }
+      if (value == null) {
+        throw new NullPointerException();
+      }
       fBytes_ = value;
       bitField0_ |= 0x00004000;
       onChanged();
@@ -2022,6 +2092,7 @@ public Builder setFBytes(com.google.protobuf.ByteString value) {
     }
     /**
      * bytes f_bytes = 15;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFBytes() {
@@ -2034,13 +2105,16 @@ public Builder clearFBytes() {
     private int fKingdom_ = 0;
     /**
      * .google.showcase.v1beta1.ComplianceData.LifeKingdom f_kingdom = 22;
+     *
      * @return The enum numeric value on the wire for fKingdom.
      */
-    @java.lang.Override public int getFKingdomValue() {
+    @java.lang.Override
+    public int getFKingdomValue() {
       return fKingdom_;
     }
     /**
      * .google.showcase.v1beta1.ComplianceData.LifeKingdom f_kingdom = 22;
+     *
      * @param value The enum numeric value on the wire for fKingdom to set.
      * @return This builder for chaining.
      */
@@ -2052,15 +2126,20 @@ public Builder setFKingdomValue(int value) {
     }
     /**
      * .google.showcase.v1beta1.ComplianceData.LifeKingdom f_kingdom = 22;
+     *
      * @return The fKingdom.
      */
     @java.lang.Override
     public com.google.showcase.v1beta1.ComplianceData.LifeKingdom getFKingdom() {
-      com.google.showcase.v1beta1.ComplianceData.LifeKingdom result = com.google.showcase.v1beta1.ComplianceData.LifeKingdom.forNumber(fKingdom_);
-      return result == null ? com.google.showcase.v1beta1.ComplianceData.LifeKingdom.UNRECOGNIZED : result;
+      com.google.showcase.v1beta1.ComplianceData.LifeKingdom result =
+          com.google.showcase.v1beta1.ComplianceData.LifeKingdom.forNumber(fKingdom_);
+      return result == null
+          ? com.google.showcase.v1beta1.ComplianceData.LifeKingdom.UNRECOGNIZED
+          : result;
     }
     /**
      * .google.showcase.v1beta1.ComplianceData.LifeKingdom f_kingdom = 22;
+     *
      * @param value The fKingdom to set.
      * @return This builder for chaining.
      */
@@ -2075,6 +2154,7 @@ public Builder setFKingdom(com.google.showcase.v1beta1.ComplianceData.LifeKingdo
     }
     /**
      * .google.showcase.v1beta1.ComplianceData.LifeKingdom f_kingdom = 22;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFKingdom() {
@@ -2086,9 +2166,13 @@ public Builder clearFKingdom() {
 
     private com.google.showcase.v1beta1.ComplianceDataChild fChild_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.ComplianceDataChild, com.google.showcase.v1beta1.ComplianceDataChild.Builder, com.google.showcase.v1beta1.ComplianceDataChildOrBuilder> fChildBuilder_;
+            com.google.showcase.v1beta1.ComplianceDataChild,
+            com.google.showcase.v1beta1.ComplianceDataChild.Builder,
+            com.google.showcase.v1beta1.ComplianceDataChildOrBuilder>
+        fChildBuilder_;
     /**
      * .google.showcase.v1beta1.ComplianceDataChild f_child = 16;
+     *
      * @return Whether the fChild field is set.
      */
     public boolean hasFChild() {
@@ -2096,18 +2180,19 @@ public boolean hasFChild() {
     }
     /**
      * .google.showcase.v1beta1.ComplianceDataChild f_child = 16;
+     *
      * @return The fChild.
      */
     public com.google.showcase.v1beta1.ComplianceDataChild getFChild() {
       if (fChildBuilder_ == null) {
-        return fChild_ == null ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance() : fChild_;
+        return fChild_ == null
+            ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance()
+            : fChild_;
       } else {
         return fChildBuilder_.getMessage();
       }
     }
-    /**
-     * .google.showcase.v1beta1.ComplianceDataChild f_child = 16;
-     */
+    /** .google.showcase.v1beta1.ComplianceDataChild f_child = 16; */
     public Builder setFChild(com.google.showcase.v1beta1.ComplianceDataChild value) {
       if (fChildBuilder_ == null) {
         if (value == null) {
@@ -2121,9 +2206,7 @@ public Builder setFChild(com.google.showcase.v1beta1.ComplianceDataChild value)
       onChanged();
       return this;
     }
-    /**
-     * .google.showcase.v1beta1.ComplianceDataChild f_child = 16;
-     */
+    /** .google.showcase.v1beta1.ComplianceDataChild f_child = 16; */
     public Builder setFChild(
         com.google.showcase.v1beta1.ComplianceDataChild.Builder builderForValue) {
       if (fChildBuilder_ == null) {
@@ -2135,14 +2218,12 @@ public Builder setFChild(
       onChanged();
       return this;
     }
-    /**
-     * .google.showcase.v1beta1.ComplianceDataChild f_child = 16;
-     */
+    /** .google.showcase.v1beta1.ComplianceDataChild f_child = 16; */
     public Builder mergeFChild(com.google.showcase.v1beta1.ComplianceDataChild value) {
       if (fChildBuilder_ == null) {
-        if (((bitField0_ & 0x00010000) != 0) &&
-          fChild_ != null &&
-          fChild_ != com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance()) {
+        if (((bitField0_ & 0x00010000) != 0)
+            && fChild_ != null
+            && fChild_ != com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance()) {
           getFChildBuilder().mergeFrom(value);
         } else {
           fChild_ = value;
@@ -2156,9 +2237,7 @@ public Builder mergeFChild(com.google.showcase.v1beta1.ComplianceDataChild value
       }
       return this;
     }
-    /**
-     * .google.showcase.v1beta1.ComplianceDataChild f_child = 16;
-     */
+    /** .google.showcase.v1beta1.ComplianceDataChild f_child = 16; */
     public Builder clearFChild() {
       bitField0_ = (bitField0_ & ~0x00010000);
       fChild_ = null;
@@ -2169,37 +2248,35 @@ public Builder clearFChild() {
       onChanged();
       return this;
     }
-    /**
-     * .google.showcase.v1beta1.ComplianceDataChild f_child = 16;
-     */
+    /** .google.showcase.v1beta1.ComplianceDataChild f_child = 16; */
     public com.google.showcase.v1beta1.ComplianceDataChild.Builder getFChildBuilder() {
       bitField0_ |= 0x00010000;
       onChanged();
       return getFChildFieldBuilder().getBuilder();
     }
-    /**
-     * .google.showcase.v1beta1.ComplianceDataChild f_child = 16;
-     */
+    /** .google.showcase.v1beta1.ComplianceDataChild f_child = 16; */
     public com.google.showcase.v1beta1.ComplianceDataChildOrBuilder getFChildOrBuilder() {
       if (fChildBuilder_ != null) {
         return fChildBuilder_.getMessageOrBuilder();
       } else {
-        return fChild_ == null ?
-            com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance() : fChild_;
+        return fChild_ == null
+            ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance()
+            : fChild_;
       }
     }
-    /**
-     * .google.showcase.v1beta1.ComplianceDataChild f_child = 16;
-     */
+    /** .google.showcase.v1beta1.ComplianceDataChild f_child = 16; */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.ComplianceDataChild, com.google.showcase.v1beta1.ComplianceDataChild.Builder, com.google.showcase.v1beta1.ComplianceDataChildOrBuilder> 
+            com.google.showcase.v1beta1.ComplianceDataChild,
+            com.google.showcase.v1beta1.ComplianceDataChild.Builder,
+            com.google.showcase.v1beta1.ComplianceDataChildOrBuilder>
         getFChildFieldBuilder() {
       if (fChildBuilder_ == null) {
-        fChildBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.showcase.v1beta1.ComplianceDataChild, com.google.showcase.v1beta1.ComplianceDataChild.Builder, com.google.showcase.v1beta1.ComplianceDataChildOrBuilder>(
-                getFChild(),
-                getParentForChildren(),
-                isClean());
+        fChildBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.showcase.v1beta1.ComplianceDataChild,
+                com.google.showcase.v1beta1.ComplianceDataChild.Builder,
+                com.google.showcase.v1beta1.ComplianceDataChildOrBuilder>(
+                getFChild(), getParentForChildren(), isClean());
         fChild_ = null;
       }
       return fChildBuilder_;
@@ -2208,6 +2285,7 @@ public com.google.showcase.v1beta1.ComplianceDataChildOrBuilder getFChildOrBuild
     private java.lang.Object pString_ = "";
     /**
      * optional string p_string = 17;
+     *
      * @return Whether the pString field is set.
      */
     public boolean hasPString() {
@@ -2215,13 +2293,13 @@ public boolean hasPString() {
     }
     /**
      * optional string p_string = 17;
+     *
      * @return The pString.
      */
     public java.lang.String getPString() {
       java.lang.Object ref = pString_;
       if (!(ref instanceof java.lang.String)) {
-        com.google.protobuf.ByteString bs =
-            (com.google.protobuf.ByteString) ref;
+        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
         java.lang.String s = bs.toStringUtf8();
         pString_ = s;
         return s;
@@ -2231,15 +2309,14 @@ public java.lang.String getPString() {
     }
     /**
      * optional string p_string = 17;
+     *
      * @return The bytes for pString.
      */
-    public com.google.protobuf.ByteString
-        getPStringBytes() {
+    public com.google.protobuf.ByteString getPStringBytes() {
       java.lang.Object ref = pString_;
       if (ref instanceof String) {
-        com.google.protobuf.ByteString b = 
-            com.google.protobuf.ByteString.copyFromUtf8(
-                (java.lang.String) ref);
+        com.google.protobuf.ByteString b =
+            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
         pString_ = b;
         return b;
       } else {
@@ -2248,12 +2325,14 @@ public java.lang.String getPString() {
     }
     /**
      * optional string p_string = 17;
+     *
      * @param value The pString to set.
      * @return This builder for chaining.
      */
-    public Builder setPString(
-        java.lang.String value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setPString(java.lang.String value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       pString_ = value;
       bitField0_ |= 0x00020000;
       onChanged();
@@ -2261,6 +2340,7 @@ public Builder setPString(
     }
     /**
      * optional string p_string = 17;
+     *
      * @return This builder for chaining.
      */
     public Builder clearPString() {
@@ -2271,12 +2351,14 @@ public Builder clearPString() {
     }
     /**
      * optional string p_string = 17;
+     *
      * @param value The bytes for pString to set.
      * @return This builder for chaining.
      */
-    public Builder setPStringBytes(
-        com.google.protobuf.ByteString value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setPStringBytes(com.google.protobuf.ByteString value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       checkByteStringIsUtf8(value);
       pString_ = value;
       bitField0_ |= 0x00020000;
@@ -2284,9 +2366,10 @@ public Builder setPStringBytes(
       return this;
     }
 
-    private int pInt32_ ;
+    private int pInt32_;
     /**
      * optional int32 p_int32 = 18;
+     *
      * @return Whether the pInt32 field is set.
      */
     @java.lang.Override
@@ -2295,6 +2378,7 @@ public boolean hasPInt32() {
     }
     /**
      * optional int32 p_int32 = 18;
+     *
      * @return The pInt32.
      */
     @java.lang.Override
@@ -2303,6 +2387,7 @@ public int getPInt32() {
     }
     /**
      * optional int32 p_int32 = 18;
+     *
      * @param value The pInt32 to set.
      * @return This builder for chaining.
      */
@@ -2315,6 +2400,7 @@ public Builder setPInt32(int value) {
     }
     /**
      * optional int32 p_int32 = 18;
+     *
      * @return This builder for chaining.
      */
     public Builder clearPInt32() {
@@ -2324,9 +2410,10 @@ public Builder clearPInt32() {
       return this;
     }
 
-    private double pDouble_ ;
+    private double pDouble_;
     /**
      * optional double p_double = 19;
+     *
      * @return Whether the pDouble field is set.
      */
     @java.lang.Override
@@ -2335,6 +2422,7 @@ public boolean hasPDouble() {
     }
     /**
      * optional double p_double = 19;
+     *
      * @return The pDouble.
      */
     @java.lang.Override
@@ -2343,6 +2431,7 @@ public double getPDouble() {
     }
     /**
      * optional double p_double = 19;
+     *
      * @param value The pDouble to set.
      * @return This builder for chaining.
      */
@@ -2355,6 +2444,7 @@ public Builder setPDouble(double value) {
     }
     /**
      * optional double p_double = 19;
+     *
      * @return This builder for chaining.
      */
     public Builder clearPDouble() {
@@ -2364,9 +2454,10 @@ public Builder clearPDouble() {
       return this;
     }
 
-    private boolean pBool_ ;
+    private boolean pBool_;
     /**
      * optional bool p_bool = 20;
+     *
      * @return Whether the pBool field is set.
      */
     @java.lang.Override
@@ -2375,6 +2466,7 @@ public boolean hasPBool() {
     }
     /**
      * optional bool p_bool = 20;
+     *
      * @return The pBool.
      */
     @java.lang.Override
@@ -2383,6 +2475,7 @@ public boolean getPBool() {
     }
     /**
      * optional bool p_bool = 20;
+     *
      * @param value The pBool to set.
      * @return This builder for chaining.
      */
@@ -2395,6 +2488,7 @@ public Builder setPBool(boolean value) {
     }
     /**
      * optional bool p_bool = 20;
+     *
      * @return This builder for chaining.
      */
     public Builder clearPBool() {
@@ -2407,20 +2501,25 @@ public Builder clearPBool() {
     private int pKingdom_ = 0;
     /**
      * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23;
+     *
      * @return Whether the pKingdom field is set.
      */
-    @java.lang.Override public boolean hasPKingdom() {
+    @java.lang.Override
+    public boolean hasPKingdom() {
       return ((bitField0_ & 0x00200000) != 0);
     }
     /**
      * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23;
+     *
      * @return The enum numeric value on the wire for pKingdom.
      */
-    @java.lang.Override public int getPKingdomValue() {
+    @java.lang.Override
+    public int getPKingdomValue() {
       return pKingdom_;
     }
     /**
      * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23;
+     *
      * @param value The enum numeric value on the wire for pKingdom to set.
      * @return This builder for chaining.
      */
@@ -2432,15 +2531,20 @@ public Builder setPKingdomValue(int value) {
     }
     /**
      * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23;
+     *
      * @return The pKingdom.
      */
     @java.lang.Override
     public com.google.showcase.v1beta1.ComplianceData.LifeKingdom getPKingdom() {
-      com.google.showcase.v1beta1.ComplianceData.LifeKingdom result = com.google.showcase.v1beta1.ComplianceData.LifeKingdom.forNumber(pKingdom_);
-      return result == null ? com.google.showcase.v1beta1.ComplianceData.LifeKingdom.UNRECOGNIZED : result;
+      com.google.showcase.v1beta1.ComplianceData.LifeKingdom result =
+          com.google.showcase.v1beta1.ComplianceData.LifeKingdom.forNumber(pKingdom_);
+      return result == null
+          ? com.google.showcase.v1beta1.ComplianceData.LifeKingdom.UNRECOGNIZED
+          : result;
     }
     /**
      * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23;
+     *
      * @param value The pKingdom to set.
      * @return This builder for chaining.
      */
@@ -2455,6 +2559,7 @@ public Builder setPKingdom(com.google.showcase.v1beta1.ComplianceData.LifeKingdo
     }
     /**
      * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23;
+     *
      * @return This builder for chaining.
      */
     public Builder clearPKingdom() {
@@ -2466,9 +2571,13 @@ public Builder clearPKingdom() {
 
     private com.google.showcase.v1beta1.ComplianceDataChild pChild_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.ComplianceDataChild, com.google.showcase.v1beta1.ComplianceDataChild.Builder, com.google.showcase.v1beta1.ComplianceDataChildOrBuilder> pChildBuilder_;
+            com.google.showcase.v1beta1.ComplianceDataChild,
+            com.google.showcase.v1beta1.ComplianceDataChild.Builder,
+            com.google.showcase.v1beta1.ComplianceDataChildOrBuilder>
+        pChildBuilder_;
     /**
      * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21;
+     *
      * @return Whether the pChild field is set.
      */
     public boolean hasPChild() {
@@ -2476,18 +2585,19 @@ public boolean hasPChild() {
     }
     /**
      * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21;
+     *
      * @return The pChild.
      */
     public com.google.showcase.v1beta1.ComplianceDataChild getPChild() {
       if (pChildBuilder_ == null) {
-        return pChild_ == null ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance() : pChild_;
+        return pChild_ == null
+            ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance()
+            : pChild_;
       } else {
         return pChildBuilder_.getMessage();
       }
     }
-    /**
-     * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21;
-     */
+    /** optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; */
     public Builder setPChild(com.google.showcase.v1beta1.ComplianceDataChild value) {
       if (pChildBuilder_ == null) {
         if (value == null) {
@@ -2501,9 +2611,7 @@ public Builder setPChild(com.google.showcase.v1beta1.ComplianceDataChild value)
       onChanged();
       return this;
     }
-    /**
-     * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21;
-     */
+    /** optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; */
     public Builder setPChild(
         com.google.showcase.v1beta1.ComplianceDataChild.Builder builderForValue) {
       if (pChildBuilder_ == null) {
@@ -2515,14 +2623,12 @@ public Builder setPChild(
       onChanged();
       return this;
     }
-    /**
-     * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21;
-     */
+    /** optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; */
     public Builder mergePChild(com.google.showcase.v1beta1.ComplianceDataChild value) {
       if (pChildBuilder_ == null) {
-        if (((bitField0_ & 0x00400000) != 0) &&
-          pChild_ != null &&
-          pChild_ != com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance()) {
+        if (((bitField0_ & 0x00400000) != 0)
+            && pChild_ != null
+            && pChild_ != com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance()) {
           getPChildBuilder().mergeFrom(value);
         } else {
           pChild_ = value;
@@ -2536,9 +2642,7 @@ public Builder mergePChild(com.google.showcase.v1beta1.ComplianceDataChild value
       }
       return this;
     }
-    /**
-     * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21;
-     */
+    /** optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; */
     public Builder clearPChild() {
       bitField0_ = (bitField0_ & ~0x00400000);
       pChild_ = null;
@@ -2549,44 +2653,42 @@ public Builder clearPChild() {
       onChanged();
       return this;
     }
-    /**
-     * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21;
-     */
+    /** optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; */
     public com.google.showcase.v1beta1.ComplianceDataChild.Builder getPChildBuilder() {
       bitField0_ |= 0x00400000;
       onChanged();
       return getPChildFieldBuilder().getBuilder();
     }
-    /**
-     * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21;
-     */
+    /** optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; */
     public com.google.showcase.v1beta1.ComplianceDataChildOrBuilder getPChildOrBuilder() {
       if (pChildBuilder_ != null) {
         return pChildBuilder_.getMessageOrBuilder();
       } else {
-        return pChild_ == null ?
-            com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance() : pChild_;
+        return pChild_ == null
+            ? com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance()
+            : pChild_;
       }
     }
-    /**
-     * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21;
-     */
+    /** optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.ComplianceDataChild, com.google.showcase.v1beta1.ComplianceDataChild.Builder, com.google.showcase.v1beta1.ComplianceDataChildOrBuilder> 
+            com.google.showcase.v1beta1.ComplianceDataChild,
+            com.google.showcase.v1beta1.ComplianceDataChild.Builder,
+            com.google.showcase.v1beta1.ComplianceDataChildOrBuilder>
         getPChildFieldBuilder() {
       if (pChildBuilder_ == null) {
-        pChildBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.showcase.v1beta1.ComplianceDataChild, com.google.showcase.v1beta1.ComplianceDataChild.Builder, com.google.showcase.v1beta1.ComplianceDataChildOrBuilder>(
-                getPChild(),
-                getParentForChildren(),
-                isClean());
+        pChildBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.showcase.v1beta1.ComplianceDataChild,
+                com.google.showcase.v1beta1.ComplianceDataChild.Builder,
+                com.google.showcase.v1beta1.ComplianceDataChildOrBuilder>(
+                getPChild(), getParentForChildren(), isClean());
         pChild_ = null;
       }
       return pChildBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2596,12 +2698,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ComplianceData)
   }
 
   // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ComplianceData)
   private static final com.google.showcase.v1beta1.ComplianceData DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ComplianceData();
   }
@@ -2610,27 +2712,27 @@ public static com.google.showcase.v1beta1.ComplianceData getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ComplianceData parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ComplianceData parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2645,6 +2747,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.showcase.v1beta1.ComplianceData getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChild.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChild.java
similarity index 69%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChild.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChild.java
index 7a826afa06..ad0ac1ff7f 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChild.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChild.java
@@ -1,21 +1,35 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/compliance.proto
 
 // Protobuf Java Version: 3.25.5
 package com.google.showcase.v1beta1;
 
-/**
- * Protobuf type {@code google.showcase.v1beta1.ComplianceDataChild}
- */
-public final class ComplianceDataChild extends
-    com.google.protobuf.GeneratedMessageV3 implements
+/** Protobuf type {@code google.showcase.v1beta1.ComplianceDataChild} */
+public final class ComplianceDataChild extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ComplianceDataChild)
     ComplianceDataChildOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ComplianceDataChild.newBuilder() to construct.
   private ComplianceDataChild(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ComplianceDataChild() {
     fString_ = "";
     fContinent_ = 0;
@@ -25,30 +39,33 @@ private ComplianceDataChild() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ComplianceDataChild();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.ComplianceOuterClass
+        .internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataChild_fieldAccessorTable
+    return com.google.showcase.v1beta1.ComplianceOuterClass
+        .internal_static_google_showcase_v1beta1_ComplianceDataChild_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.ComplianceDataChild.class, com.google.showcase.v1beta1.ComplianceDataChild.Builder.class);
+            com.google.showcase.v1beta1.ComplianceDataChild.class,
+            com.google.showcase.v1beta1.ComplianceDataChild.Builder.class);
   }
 
   private int bitField0_;
   public static final int F_STRING_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object fString_ = "";
   /**
    * string f_string = 1;
+   *
    * @return The fString.
    */
   @java.lang.Override
@@ -57,8 +74,7 @@ public java.lang.String getFString() {
     if (ref instanceof java.lang.String) {
       return (java.lang.String) ref;
     } else {
-      com.google.protobuf.ByteString bs = 
-          (com.google.protobuf.ByteString) ref;
+      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
       java.lang.String s = bs.toStringUtf8();
       fString_ = s;
       return s;
@@ -66,16 +82,15 @@ public java.lang.String getFString() {
   }
   /**
    * string f_string = 1;
+   *
    * @return The bytes for fString.
    */
   @java.lang.Override
-  public com.google.protobuf.ByteString
-      getFStringBytes() {
+  public com.google.protobuf.ByteString getFStringBytes() {
     java.lang.Object ref = fString_;
     if (ref instanceof java.lang.String) {
-      com.google.protobuf.ByteString b = 
-          com.google.protobuf.ByteString.copyFromUtf8(
-              (java.lang.String) ref);
+      com.google.protobuf.ByteString b =
+          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
       fString_ = b;
       return b;
     } else {
@@ -87,6 +102,7 @@ public java.lang.String getFString() {
   private float fFloat_ = 0F;
   /**
    * float f_float = 2;
+   *
    * @return The fFloat.
    */
   @java.lang.Override
@@ -98,6 +114,7 @@ public float getFFloat() {
   private double fDouble_ = 0D;
   /**
    * double f_double = 3;
+   *
    * @return The fDouble.
    */
   @java.lang.Override
@@ -109,6 +126,7 @@ public double getFDouble() {
   private boolean fBool_ = false;
   /**
    * bool f_bool = 4;
+   *
    * @return The fBool.
    */
   @java.lang.Override
@@ -120,17 +138,22 @@ public boolean getFBool() {
   private int fContinent_ = 0;
   /**
    * .google.showcase.v1beta1.Continent f_continent = 11;
+   *
    * @return The enum numeric value on the wire for fContinent.
    */
-  @java.lang.Override public int getFContinentValue() {
+  @java.lang.Override
+  public int getFContinentValue() {
     return fContinent_;
   }
   /**
    * .google.showcase.v1beta1.Continent f_continent = 11;
+   *
    * @return The fContinent.
    */
-  @java.lang.Override public com.google.showcase.v1beta1.Continent getFContinent() {
-    com.google.showcase.v1beta1.Continent result = com.google.showcase.v1beta1.Continent.forNumber(fContinent_);
+  @java.lang.Override
+  public com.google.showcase.v1beta1.Continent getFContinent() {
+    com.google.showcase.v1beta1.Continent result =
+        com.google.showcase.v1beta1.Continent.forNumber(fContinent_);
     return result == null ? com.google.showcase.v1beta1.Continent.UNRECOGNIZED : result;
   }
 
@@ -138,6 +161,7 @@ public boolean getFBool() {
   private com.google.showcase.v1beta1.ComplianceDataGrandchild fChild_;
   /**
    * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5;
+   *
    * @return Whether the fChild field is set.
    */
   @java.lang.Override
@@ -146,25 +170,30 @@ public boolean hasFChild() {
   }
   /**
    * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5;
+   *
    * @return The fChild.
    */
   @java.lang.Override
   public com.google.showcase.v1beta1.ComplianceDataGrandchild getFChild() {
-    return fChild_ == null ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance() : fChild_;
+    return fChild_ == null
+        ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance()
+        : fChild_;
   }
-  /**
-   * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5;
-   */
+  /** .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; */
   @java.lang.Override
   public com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder getFChildOrBuilder() {
-    return fChild_ == null ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance() : fChild_;
+    return fChild_ == null
+        ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance()
+        : fChild_;
   }
 
   public static final int P_STRING_FIELD_NUMBER = 6;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object pString_ = "";
   /**
    * optional string p_string = 6;
+   *
    * @return Whether the pString field is set.
    */
   @java.lang.Override
@@ -173,6 +202,7 @@ public boolean hasPString() {
   }
   /**
    * optional string p_string = 6;
+   *
    * @return The pString.
    */
   @java.lang.Override
@@ -181,8 +211,7 @@ public java.lang.String getPString() {
     if (ref instanceof java.lang.String) {
       return (java.lang.String) ref;
     } else {
-      com.google.protobuf.ByteString bs = 
-          (com.google.protobuf.ByteString) ref;
+      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
       java.lang.String s = bs.toStringUtf8();
       pString_ = s;
       return s;
@@ -190,16 +219,15 @@ public java.lang.String getPString() {
   }
   /**
    * optional string p_string = 6;
+   *
    * @return The bytes for pString.
    */
   @java.lang.Override
-  public com.google.protobuf.ByteString
-      getPStringBytes() {
+  public com.google.protobuf.ByteString getPStringBytes() {
     java.lang.Object ref = pString_;
     if (ref instanceof java.lang.String) {
-      com.google.protobuf.ByteString b = 
-          com.google.protobuf.ByteString.copyFromUtf8(
-              (java.lang.String) ref);
+      com.google.protobuf.ByteString b =
+          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
       pString_ = b;
       return b;
     } else {
@@ -211,6 +239,7 @@ public java.lang.String getPString() {
   private float pFloat_ = 0F;
   /**
    * optional float p_float = 7;
+   *
    * @return Whether the pFloat field is set.
    */
   @java.lang.Override
@@ -219,6 +248,7 @@ public boolean hasPFloat() {
   }
   /**
    * optional float p_float = 7;
+   *
    * @return The pFloat.
    */
   @java.lang.Override
@@ -230,6 +260,7 @@ public float getPFloat() {
   private double pDouble_ = 0D;
   /**
    * optional double p_double = 8;
+   *
    * @return Whether the pDouble field is set.
    */
   @java.lang.Override
@@ -238,6 +269,7 @@ public boolean hasPDouble() {
   }
   /**
    * optional double p_double = 8;
+   *
    * @return The pDouble.
    */
   @java.lang.Override
@@ -249,6 +281,7 @@ public double getPDouble() {
   private boolean pBool_ = false;
   /**
    * optional bool p_bool = 9;
+   *
    * @return Whether the pBool field is set.
    */
   @java.lang.Override
@@ -257,6 +290,7 @@ public boolean hasPBool() {
   }
   /**
    * optional bool p_bool = 9;
+   *
    * @return The pBool.
    */
   @java.lang.Override
@@ -268,17 +302,22 @@ public boolean getPBool() {
   private int pContinent_ = 0;
   /**
    * .google.showcase.v1beta1.Continent p_continent = 12;
+   *
    * @return The enum numeric value on the wire for pContinent.
    */
-  @java.lang.Override public int getPContinentValue() {
+  @java.lang.Override
+  public int getPContinentValue() {
     return pContinent_;
   }
   /**
    * .google.showcase.v1beta1.Continent p_continent = 12;
+   *
    * @return The pContinent.
    */
-  @java.lang.Override public com.google.showcase.v1beta1.Continent getPContinent() {
-    com.google.showcase.v1beta1.Continent result = com.google.showcase.v1beta1.Continent.forNumber(pContinent_);
+  @java.lang.Override
+  public com.google.showcase.v1beta1.Continent getPContinent() {
+    com.google.showcase.v1beta1.Continent result =
+        com.google.showcase.v1beta1.Continent.forNumber(pContinent_);
     return result == null ? com.google.showcase.v1beta1.Continent.UNRECOGNIZED : result;
   }
 
@@ -286,6 +325,7 @@ public boolean getPBool() {
   private com.google.showcase.v1beta1.ComplianceDataGrandchild pChild_;
   /**
    * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10;
+   *
    * @return Whether the pChild field is set.
    */
   @java.lang.Override
@@ -294,21 +334,25 @@ public boolean hasPChild() {
   }
   /**
    * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10;
+   *
    * @return The pChild.
    */
   @java.lang.Override
   public com.google.showcase.v1beta1.ComplianceDataGrandchild getPChild() {
-    return pChild_ == null ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance() : pChild_;
+    return pChild_ == null
+        ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance()
+        : pChild_;
   }
-  /**
-   * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10;
-   */
+  /** optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; */
   @java.lang.Override
   public com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder getPChildOrBuilder() {
-    return pChild_ == null ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance() : pChild_;
+    return pChild_ == null
+        ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance()
+        : pChild_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -320,8 +364,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fString_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fString_);
     }
@@ -371,47 +414,37 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fString_);
     }
     if (java.lang.Float.floatToRawIntBits(fFloat_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(2, fFloat_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, fFloat_);
     }
     if (java.lang.Double.doubleToRawLongBits(fDouble_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeDoubleSize(3, fDouble_);
+      size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, fDouble_);
     }
     if (fBool_ != false) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBoolSize(4, fBool_);
+      size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, fBool_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getFChild());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFChild());
     }
     if (((bitField0_ & 0x00000002) != 0)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pString_);
     }
     if (((bitField0_ & 0x00000004) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(7, pFloat_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, pFloat_);
     }
     if (((bitField0_ & 0x00000008) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeDoubleSize(8, pDouble_);
+      size += com.google.protobuf.CodedOutputStream.computeDoubleSize(8, pDouble_);
     }
     if (((bitField0_ & 0x00000010) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBoolSize(9, pBool_);
+      size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, pBool_);
     }
     if (((bitField0_ & 0x00000020) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(10, getPChild());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getPChild());
     }
     if (fContinent_ != com.google.showcase.v1beta1.Continent.CONTINENT_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(11, fContinent_);
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, fContinent_);
     }
     if (pContinent_ != com.google.showcase.v1beta1.Continent.CONTINENT_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(12, pContinent_);
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, pContinent_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -421,56 +454,47 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.showcase.v1beta1.ComplianceDataChild)) {
       return super.equals(obj);
     }
-    com.google.showcase.v1beta1.ComplianceDataChild other = (com.google.showcase.v1beta1.ComplianceDataChild) obj;
+    com.google.showcase.v1beta1.ComplianceDataChild other =
+        (com.google.showcase.v1beta1.ComplianceDataChild) obj;
 
-    if (!getFString()
-        .equals(other.getFString())) return false;
+    if (!getFString().equals(other.getFString())) return false;
     if (java.lang.Float.floatToIntBits(getFFloat())
-        != java.lang.Float.floatToIntBits(
-            other.getFFloat())) return false;
+        != java.lang.Float.floatToIntBits(other.getFFloat())) return false;
     if (java.lang.Double.doubleToLongBits(getFDouble())
-        != java.lang.Double.doubleToLongBits(
-            other.getFDouble())) return false;
-    if (getFBool()
-        != other.getFBool()) return false;
+        != java.lang.Double.doubleToLongBits(other.getFDouble())) return false;
+    if (getFBool() != other.getFBool()) return false;
     if (fContinent_ != other.fContinent_) return false;
     if (hasFChild() != other.hasFChild()) return false;
     if (hasFChild()) {
-      if (!getFChild()
-          .equals(other.getFChild())) return false;
+      if (!getFChild().equals(other.getFChild())) return false;
     }
     if (hasPString() != other.hasPString()) return false;
     if (hasPString()) {
-      if (!getPString()
-          .equals(other.getPString())) return false;
+      if (!getPString().equals(other.getPString())) return false;
     }
     if (hasPFloat() != other.hasPFloat()) return false;
     if (hasPFloat()) {
       if (java.lang.Float.floatToIntBits(getPFloat())
-          != java.lang.Float.floatToIntBits(
-              other.getPFloat())) return false;
+          != java.lang.Float.floatToIntBits(other.getPFloat())) return false;
     }
     if (hasPDouble() != other.hasPDouble()) return false;
     if (hasPDouble()) {
       if (java.lang.Double.doubleToLongBits(getPDouble())
-          != java.lang.Double.doubleToLongBits(
-              other.getPDouble())) return false;
+          != java.lang.Double.doubleToLongBits(other.getPDouble())) return false;
     }
     if (hasPBool() != other.hasPBool()) return false;
     if (hasPBool()) {
-      if (getPBool()
-          != other.getPBool()) return false;
+      if (getPBool() != other.getPBool()) return false;
     }
     if (pContinent_ != other.pContinent_) return false;
     if (hasPChild() != other.hasPChild()) return false;
     if (hasPChild()) {
-      if (!getPChild()
-          .equals(other.getPChild())) return false;
+      if (!getPChild().equals(other.getPChild())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -486,14 +510,14 @@ public int hashCode() {
     hash = (37 * hash) + F_STRING_FIELD_NUMBER;
     hash = (53 * hash) + getFString().hashCode();
     hash = (37 * hash) + F_FLOAT_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getFFloat());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getFFloat());
     hash = (37 * hash) + F_DOUBLE_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        java.lang.Double.doubleToLongBits(getFDouble()));
+    hash =
+        (53 * hash)
+            + com.google.protobuf.Internal.hashLong(
+                java.lang.Double.doubleToLongBits(getFDouble()));
     hash = (37 * hash) + F_BOOL_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-        getFBool());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFBool());
     hash = (37 * hash) + F_CONTINENT_FIELD_NUMBER;
     hash = (53 * hash) + fContinent_;
     if (hasFChild()) {
@@ -506,18 +530,18 @@ public int hashCode() {
     }
     if (hasPFloat()) {
       hash = (37 * hash) + P_FLOAT_FIELD_NUMBER;
-      hash = (53 * hash) + java.lang.Float.floatToIntBits(
-          getPFloat());
+      hash = (53 * hash) + java.lang.Float.floatToIntBits(getPFloat());
     }
     if (hasPDouble()) {
       hash = (37 * hash) + P_DOUBLE_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-          java.lang.Double.doubleToLongBits(getPDouble()));
+      hash =
+          (53 * hash)
+              + com.google.protobuf.Internal.hashLong(
+                  java.lang.Double.doubleToLongBits(getPDouble()));
     }
     if (hasPBool()) {
       hash = (37 * hash) + P_BOOL_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-          getPBool());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPBool());
     }
     hash = (37 * hash) + P_CONTINENT_FIELD_NUMBER;
     hash = (53 * hash) + pContinent_;
@@ -530,116 +554,119 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.showcase.v1beta1.ComplianceDataChild parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.showcase.v1beta1.ComplianceDataChild parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.showcase.v1beta1.ComplianceDataChild parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.ComplianceDataChild parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.showcase.v1beta1.ComplianceDataChild prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
-  /**
-   * Protobuf type {@code google.showcase.v1beta1.ComplianceDataChild}
-   */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  /** Protobuf type {@code google.showcase.v1beta1.ComplianceDataChild} */
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ComplianceDataChild)
       com.google.showcase.v1beta1.ComplianceDataChildOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.ComplianceOuterClass
+          .internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataChild_fieldAccessorTable
+      return com.google.showcase.v1beta1.ComplianceOuterClass
+          .internal_static_google_showcase_v1beta1_ComplianceDataChild_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.ComplianceDataChild.class, com.google.showcase.v1beta1.ComplianceDataChild.Builder.class);
+              com.google.showcase.v1beta1.ComplianceDataChild.class,
+              com.google.showcase.v1beta1.ComplianceDataChild.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.ComplianceDataChild.newBuilder()
@@ -647,18 +674,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getFChildFieldBuilder();
         getPChildFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -687,9 +714,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.ComplianceOuterClass
+          .internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor;
     }
 
     @java.lang.Override
@@ -708,8 +735,11 @@ public com.google.showcase.v1beta1.ComplianceDataChild build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.ComplianceDataChild buildPartial() {
-      com.google.showcase.v1beta1.ComplianceDataChild result = new com.google.showcase.v1beta1.ComplianceDataChild(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.ComplianceDataChild result =
+          new com.google.showcase.v1beta1.ComplianceDataChild(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -733,9 +763,7 @@ private void buildPartial0(com.google.showcase.v1beta1.ComplianceDataChild resul
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.fChild_ = fChildBuilder_ == null
-            ? fChild_
-            : fChildBuilder_.build();
+        result.fChild_ = fChildBuilder_ == null ? fChild_ : fChildBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
@@ -758,9 +786,7 @@ private void buildPartial0(com.google.showcase.v1beta1.ComplianceDataChild resul
         result.pContinent_ = pContinent_;
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.pChild_ = pChildBuilder_ == null
-            ? pChild_
-            : pChildBuilder_.build();
+        result.pChild_ = pChildBuilder_ == null ? pChild_ : pChildBuilder_.build();
         to_bitField0_ |= 0x00000020;
       }
       result.bitField0_ |= to_bitField0_;
@@ -770,38 +796,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ComplianceDataChild resul
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.ComplianceDataChild) {
-        return mergeFrom((com.google.showcase.v1beta1.ComplianceDataChild)other);
+        return mergeFrom((com.google.showcase.v1beta1.ComplianceDataChild) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -809,7 +836,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.showcase.v1beta1.ComplianceDataChild other) {
-      if (other == com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance()) return this;
+      if (other == com.google.showcase.v1beta1.ComplianceDataChild.getDefaultInstance())
+        return this;
       if (!other.getFString().isEmpty()) {
         fString_ = other.fString_;
         bitField0_ |= 0x00000001;
@@ -876,76 +904,85 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              fString_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 21: {
-              fFloat_ = input.readFloat();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 21
-            case 25: {
-              fDouble_ = input.readDouble();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 25
-            case 32: {
-              fBool_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 42: {
-              input.readMessage(
-                  getFChildFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 42
-            case 50: {
-              pString_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 50
-            case 61: {
-              pFloat_ = input.readFloat();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 61
-            case 65: {
-              pDouble_ = input.readDouble();
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 65
-            case 72: {
-              pBool_ = input.readBool();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 72
-            case 82: {
-              input.readMessage(
-                  getPChildFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 82
-            case 88: {
-              fContinent_ = input.readEnum();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 88
-            case 96: {
-              pContinent_ = input.readEnum();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 96
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                fString_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 21:
+              {
+                fFloat_ = input.readFloat();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 21
+            case 25:
+              {
+                fDouble_ = input.readDouble();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 25
+            case 32:
+              {
+                fBool_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 42:
+              {
+                input.readMessage(getFChildFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 42
+            case 50:
+              {
+                pString_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 50
+            case 61:
+              {
+                pFloat_ = input.readFloat();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 61
+            case 65:
+              {
+                pDouble_ = input.readDouble();
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 65
+            case 72:
+              {
+                pBool_ = input.readBool();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 72
+            case 82:
+              {
+                input.readMessage(getPChildFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 82
+            case 88:
+              {
+                fContinent_ = input.readEnum();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 88
+            case 96:
+              {
+                pContinent_ = input.readEnum();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 96
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -955,18 +992,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object fString_ = "";
     /**
      * string f_string = 1;
+     *
      * @return The fString.
      */
     public java.lang.String getFString() {
       java.lang.Object ref = fString_;
       if (!(ref instanceof java.lang.String)) {
-        com.google.protobuf.ByteString bs =
-            (com.google.protobuf.ByteString) ref;
+        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
         java.lang.String s = bs.toStringUtf8();
         fString_ = s;
         return s;
@@ -976,15 +1014,14 @@ public java.lang.String getFString() {
     }
     /**
      * string f_string = 1;
+     *
      * @return The bytes for fString.
      */
-    public com.google.protobuf.ByteString
-        getFStringBytes() {
+    public com.google.protobuf.ByteString getFStringBytes() {
       java.lang.Object ref = fString_;
       if (ref instanceof String) {
-        com.google.protobuf.ByteString b = 
-            com.google.protobuf.ByteString.copyFromUtf8(
-                (java.lang.String) ref);
+        com.google.protobuf.ByteString b =
+            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
         fString_ = b;
         return b;
       } else {
@@ -993,12 +1030,14 @@ public java.lang.String getFString() {
     }
     /**
      * string f_string = 1;
+     *
      * @param value The fString to set.
      * @return This builder for chaining.
      */
-    public Builder setFString(
-        java.lang.String value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setFString(java.lang.String value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       fString_ = value;
       bitField0_ |= 0x00000001;
       onChanged();
@@ -1006,6 +1045,7 @@ public Builder setFString(
     }
     /**
      * string f_string = 1;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFString() {
@@ -1016,12 +1056,14 @@ public Builder clearFString() {
     }
     /**
      * string f_string = 1;
+     *
      * @param value The bytes for fString to set.
      * @return This builder for chaining.
      */
-    public Builder setFStringBytes(
-        com.google.protobuf.ByteString value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setFStringBytes(com.google.protobuf.ByteString value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       checkByteStringIsUtf8(value);
       fString_ = value;
       bitField0_ |= 0x00000001;
@@ -1029,9 +1071,10 @@ public Builder setFStringBytes(
       return this;
     }
 
-    private float fFloat_ ;
+    private float fFloat_;
     /**
      * float f_float = 2;
+     *
      * @return The fFloat.
      */
     @java.lang.Override
@@ -1040,6 +1083,7 @@ public float getFFloat() {
     }
     /**
      * float f_float = 2;
+     *
      * @param value The fFloat to set.
      * @return This builder for chaining.
      */
@@ -1052,6 +1096,7 @@ public Builder setFFloat(float value) {
     }
     /**
      * float f_float = 2;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFFloat() {
@@ -1061,9 +1106,10 @@ public Builder clearFFloat() {
       return this;
     }
 
-    private double fDouble_ ;
+    private double fDouble_;
     /**
      * double f_double = 3;
+     *
      * @return The fDouble.
      */
     @java.lang.Override
@@ -1072,6 +1118,7 @@ public double getFDouble() {
     }
     /**
      * double f_double = 3;
+     *
      * @param value The fDouble to set.
      * @return This builder for chaining.
      */
@@ -1084,6 +1131,7 @@ public Builder setFDouble(double value) {
     }
     /**
      * double f_double = 3;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFDouble() {
@@ -1093,9 +1141,10 @@ public Builder clearFDouble() {
       return this;
     }
 
-    private boolean fBool_ ;
+    private boolean fBool_;
     /**
      * bool f_bool = 4;
+     *
      * @return The fBool.
      */
     @java.lang.Override
@@ -1104,6 +1153,7 @@ public boolean getFBool() {
     }
     /**
      * bool f_bool = 4;
+     *
      * @param value The fBool to set.
      * @return This builder for chaining.
      */
@@ -1116,6 +1166,7 @@ public Builder setFBool(boolean value) {
     }
     /**
      * bool f_bool = 4;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFBool() {
@@ -1128,13 +1179,16 @@ public Builder clearFBool() {
     private int fContinent_ = 0;
     /**
      * .google.showcase.v1beta1.Continent f_continent = 11;
+     *
      * @return The enum numeric value on the wire for fContinent.
      */
-    @java.lang.Override public int getFContinentValue() {
+    @java.lang.Override
+    public int getFContinentValue() {
       return fContinent_;
     }
     /**
      * .google.showcase.v1beta1.Continent f_continent = 11;
+     *
      * @param value The enum numeric value on the wire for fContinent to set.
      * @return This builder for chaining.
      */
@@ -1146,15 +1200,18 @@ public Builder setFContinentValue(int value) {
     }
     /**
      * .google.showcase.v1beta1.Continent f_continent = 11;
+     *
      * @return The fContinent.
      */
     @java.lang.Override
     public com.google.showcase.v1beta1.Continent getFContinent() {
-      com.google.showcase.v1beta1.Continent result = com.google.showcase.v1beta1.Continent.forNumber(fContinent_);
+      com.google.showcase.v1beta1.Continent result =
+          com.google.showcase.v1beta1.Continent.forNumber(fContinent_);
       return result == null ? com.google.showcase.v1beta1.Continent.UNRECOGNIZED : result;
     }
     /**
      * .google.showcase.v1beta1.Continent f_continent = 11;
+     *
      * @param value The fContinent to set.
      * @return This builder for chaining.
      */
@@ -1169,6 +1226,7 @@ public Builder setFContinent(com.google.showcase.v1beta1.Continent value) {
     }
     /**
      * .google.showcase.v1beta1.Continent f_continent = 11;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFContinent() {
@@ -1180,9 +1238,13 @@ public Builder clearFContinent() {
 
     private com.google.showcase.v1beta1.ComplianceDataGrandchild fChild_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.ComplianceDataGrandchild, com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder, com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder> fChildBuilder_;
+            com.google.showcase.v1beta1.ComplianceDataGrandchild,
+            com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder,
+            com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder>
+        fChildBuilder_;
     /**
      * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5;
+     *
      * @return Whether the fChild field is set.
      */
     public boolean hasFChild() {
@@ -1190,18 +1252,19 @@ public boolean hasFChild() {
     }
     /**
      * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5;
+     *
      * @return The fChild.
      */
     public com.google.showcase.v1beta1.ComplianceDataGrandchild getFChild() {
       if (fChildBuilder_ == null) {
-        return fChild_ == null ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance() : fChild_;
+        return fChild_ == null
+            ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance()
+            : fChild_;
       } else {
         return fChildBuilder_.getMessage();
       }
     }
-    /**
-     * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5;
-     */
+    /** .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; */
     public Builder setFChild(com.google.showcase.v1beta1.ComplianceDataGrandchild value) {
       if (fChildBuilder_ == null) {
         if (value == null) {
@@ -1215,9 +1278,7 @@ public Builder setFChild(com.google.showcase.v1beta1.ComplianceDataGrandchild va
       onChanged();
       return this;
     }
-    /**
-     * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5;
-     */
+    /** .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; */
     public Builder setFChild(
         com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder builderForValue) {
       if (fChildBuilder_ == null) {
@@ -1229,14 +1290,13 @@ public Builder setFChild(
       onChanged();
       return this;
     }
-    /**
-     * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5;
-     */
+    /** .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; */
     public Builder mergeFChild(com.google.showcase.v1beta1.ComplianceDataGrandchild value) {
       if (fChildBuilder_ == null) {
-        if (((bitField0_ & 0x00000020) != 0) &&
-          fChild_ != null &&
-          fChild_ != com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000020) != 0)
+            && fChild_ != null
+            && fChild_
+                != com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance()) {
           getFChildBuilder().mergeFrom(value);
         } else {
           fChild_ = value;
@@ -1250,9 +1310,7 @@ public Builder mergeFChild(com.google.showcase.v1beta1.ComplianceDataGrandchild
       }
       return this;
     }
-    /**
-     * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5;
-     */
+    /** .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; */
     public Builder clearFChild() {
       bitField0_ = (bitField0_ & ~0x00000020);
       fChild_ = null;
@@ -1263,37 +1321,35 @@ public Builder clearFChild() {
       onChanged();
       return this;
     }
-    /**
-     * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5;
-     */
+    /** .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; */
     public com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder getFChildBuilder() {
       bitField0_ |= 0x00000020;
       onChanged();
       return getFChildFieldBuilder().getBuilder();
     }
-    /**
-     * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5;
-     */
+    /** .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; */
     public com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder getFChildOrBuilder() {
       if (fChildBuilder_ != null) {
         return fChildBuilder_.getMessageOrBuilder();
       } else {
-        return fChild_ == null ?
-            com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance() : fChild_;
+        return fChild_ == null
+            ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance()
+            : fChild_;
       }
     }
-    /**
-     * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5;
-     */
+    /** .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.ComplianceDataGrandchild, com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder, com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder> 
+            com.google.showcase.v1beta1.ComplianceDataGrandchild,
+            com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder,
+            com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder>
         getFChildFieldBuilder() {
       if (fChildBuilder_ == null) {
-        fChildBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.showcase.v1beta1.ComplianceDataGrandchild, com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder, com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder>(
-                getFChild(),
-                getParentForChildren(),
-                isClean());
+        fChildBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.showcase.v1beta1.ComplianceDataGrandchild,
+                com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder,
+                com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder>(
+                getFChild(), getParentForChildren(), isClean());
         fChild_ = null;
       }
       return fChildBuilder_;
@@ -1302,6 +1358,7 @@ public com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder getFChildOr
     private java.lang.Object pString_ = "";
     /**
      * optional string p_string = 6;
+     *
      * @return Whether the pString field is set.
      */
     public boolean hasPString() {
@@ -1309,13 +1366,13 @@ public boolean hasPString() {
     }
     /**
      * optional string p_string = 6;
+     *
      * @return The pString.
      */
     public java.lang.String getPString() {
       java.lang.Object ref = pString_;
       if (!(ref instanceof java.lang.String)) {
-        com.google.protobuf.ByteString bs =
-            (com.google.protobuf.ByteString) ref;
+        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
         java.lang.String s = bs.toStringUtf8();
         pString_ = s;
         return s;
@@ -1325,15 +1382,14 @@ public java.lang.String getPString() {
     }
     /**
      * optional string p_string = 6;
+     *
      * @return The bytes for pString.
      */
-    public com.google.protobuf.ByteString
-        getPStringBytes() {
+    public com.google.protobuf.ByteString getPStringBytes() {
       java.lang.Object ref = pString_;
       if (ref instanceof String) {
-        com.google.protobuf.ByteString b = 
-            com.google.protobuf.ByteString.copyFromUtf8(
-                (java.lang.String) ref);
+        com.google.protobuf.ByteString b =
+            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
         pString_ = b;
         return b;
       } else {
@@ -1342,12 +1398,14 @@ public java.lang.String getPString() {
     }
     /**
      * optional string p_string = 6;
+     *
      * @param value The pString to set.
      * @return This builder for chaining.
      */
-    public Builder setPString(
-        java.lang.String value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setPString(java.lang.String value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       pString_ = value;
       bitField0_ |= 0x00000040;
       onChanged();
@@ -1355,6 +1413,7 @@ public Builder setPString(
     }
     /**
      * optional string p_string = 6;
+     *
      * @return This builder for chaining.
      */
     public Builder clearPString() {
@@ -1365,12 +1424,14 @@ public Builder clearPString() {
     }
     /**
      * optional string p_string = 6;
+     *
      * @param value The bytes for pString to set.
      * @return This builder for chaining.
      */
-    public Builder setPStringBytes(
-        com.google.protobuf.ByteString value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setPStringBytes(com.google.protobuf.ByteString value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       checkByteStringIsUtf8(value);
       pString_ = value;
       bitField0_ |= 0x00000040;
@@ -1378,9 +1439,10 @@ public Builder setPStringBytes(
       return this;
     }
 
-    private float pFloat_ ;
+    private float pFloat_;
     /**
      * optional float p_float = 7;
+     *
      * @return Whether the pFloat field is set.
      */
     @java.lang.Override
@@ -1389,6 +1451,7 @@ public boolean hasPFloat() {
     }
     /**
      * optional float p_float = 7;
+     *
      * @return The pFloat.
      */
     @java.lang.Override
@@ -1397,6 +1460,7 @@ public float getPFloat() {
     }
     /**
      * optional float p_float = 7;
+     *
      * @param value The pFloat to set.
      * @return This builder for chaining.
      */
@@ -1409,6 +1473,7 @@ public Builder setPFloat(float value) {
     }
     /**
      * optional float p_float = 7;
+     *
      * @return This builder for chaining.
      */
     public Builder clearPFloat() {
@@ -1418,9 +1483,10 @@ public Builder clearPFloat() {
       return this;
     }
 
-    private double pDouble_ ;
+    private double pDouble_;
     /**
      * optional double p_double = 8;
+     *
      * @return Whether the pDouble field is set.
      */
     @java.lang.Override
@@ -1429,6 +1495,7 @@ public boolean hasPDouble() {
     }
     /**
      * optional double p_double = 8;
+     *
      * @return The pDouble.
      */
     @java.lang.Override
@@ -1437,6 +1504,7 @@ public double getPDouble() {
     }
     /**
      * optional double p_double = 8;
+     *
      * @param value The pDouble to set.
      * @return This builder for chaining.
      */
@@ -1449,6 +1517,7 @@ public Builder setPDouble(double value) {
     }
     /**
      * optional double p_double = 8;
+     *
      * @return This builder for chaining.
      */
     public Builder clearPDouble() {
@@ -1458,9 +1527,10 @@ public Builder clearPDouble() {
       return this;
     }
 
-    private boolean pBool_ ;
+    private boolean pBool_;
     /**
      * optional bool p_bool = 9;
+     *
      * @return Whether the pBool field is set.
      */
     @java.lang.Override
@@ -1469,6 +1539,7 @@ public boolean hasPBool() {
     }
     /**
      * optional bool p_bool = 9;
+     *
      * @return The pBool.
      */
     @java.lang.Override
@@ -1477,6 +1548,7 @@ public boolean getPBool() {
     }
     /**
      * optional bool p_bool = 9;
+     *
      * @param value The pBool to set.
      * @return This builder for chaining.
      */
@@ -1489,6 +1561,7 @@ public Builder setPBool(boolean value) {
     }
     /**
      * optional bool p_bool = 9;
+     *
      * @return This builder for chaining.
      */
     public Builder clearPBool() {
@@ -1501,13 +1574,16 @@ public Builder clearPBool() {
     private int pContinent_ = 0;
     /**
      * .google.showcase.v1beta1.Continent p_continent = 12;
+     *
      * @return The enum numeric value on the wire for pContinent.
      */
-    @java.lang.Override public int getPContinentValue() {
+    @java.lang.Override
+    public int getPContinentValue() {
       return pContinent_;
     }
     /**
      * .google.showcase.v1beta1.Continent p_continent = 12;
+     *
      * @param value The enum numeric value on the wire for pContinent to set.
      * @return This builder for chaining.
      */
@@ -1519,15 +1595,18 @@ public Builder setPContinentValue(int value) {
     }
     /**
      * .google.showcase.v1beta1.Continent p_continent = 12;
+     *
      * @return The pContinent.
      */
     @java.lang.Override
     public com.google.showcase.v1beta1.Continent getPContinent() {
-      com.google.showcase.v1beta1.Continent result = com.google.showcase.v1beta1.Continent.forNumber(pContinent_);
+      com.google.showcase.v1beta1.Continent result =
+          com.google.showcase.v1beta1.Continent.forNumber(pContinent_);
       return result == null ? com.google.showcase.v1beta1.Continent.UNRECOGNIZED : result;
     }
     /**
      * .google.showcase.v1beta1.Continent p_continent = 12;
+     *
      * @param value The pContinent to set.
      * @return This builder for chaining.
      */
@@ -1542,6 +1621,7 @@ public Builder setPContinent(com.google.showcase.v1beta1.Continent value) {
     }
     /**
      * .google.showcase.v1beta1.Continent p_continent = 12;
+     *
      * @return This builder for chaining.
      */
     public Builder clearPContinent() {
@@ -1553,9 +1633,13 @@ public Builder clearPContinent() {
 
     private com.google.showcase.v1beta1.ComplianceDataGrandchild pChild_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.ComplianceDataGrandchild, com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder, com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder> pChildBuilder_;
+            com.google.showcase.v1beta1.ComplianceDataGrandchild,
+            com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder,
+            com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder>
+        pChildBuilder_;
     /**
      * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10;
+     *
      * @return Whether the pChild field is set.
      */
     public boolean hasPChild() {
@@ -1563,18 +1647,19 @@ public boolean hasPChild() {
     }
     /**
      * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10;
+     *
      * @return The pChild.
      */
     public com.google.showcase.v1beta1.ComplianceDataGrandchild getPChild() {
       if (pChildBuilder_ == null) {
-        return pChild_ == null ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance() : pChild_;
+        return pChild_ == null
+            ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance()
+            : pChild_;
       } else {
         return pChildBuilder_.getMessage();
       }
     }
-    /**
-     * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10;
-     */
+    /** optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; */
     public Builder setPChild(com.google.showcase.v1beta1.ComplianceDataGrandchild value) {
       if (pChildBuilder_ == null) {
         if (value == null) {
@@ -1588,9 +1673,7 @@ public Builder setPChild(com.google.showcase.v1beta1.ComplianceDataGrandchild va
       onChanged();
       return this;
     }
-    /**
-     * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10;
-     */
+    /** optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; */
     public Builder setPChild(
         com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder builderForValue) {
       if (pChildBuilder_ == null) {
@@ -1602,14 +1685,13 @@ public Builder setPChild(
       onChanged();
       return this;
     }
-    /**
-     * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10;
-     */
+    /** optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; */
     public Builder mergePChild(com.google.showcase.v1beta1.ComplianceDataGrandchild value) {
       if (pChildBuilder_ == null) {
-        if (((bitField0_ & 0x00000800) != 0) &&
-          pChild_ != null &&
-          pChild_ != com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000800) != 0)
+            && pChild_ != null
+            && pChild_
+                != com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance()) {
           getPChildBuilder().mergeFrom(value);
         } else {
           pChild_ = value;
@@ -1623,9 +1705,7 @@ public Builder mergePChild(com.google.showcase.v1beta1.ComplianceDataGrandchild
       }
       return this;
     }
-    /**
-     * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10;
-     */
+    /** optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; */
     public Builder clearPChild() {
       bitField0_ = (bitField0_ & ~0x00000800);
       pChild_ = null;
@@ -1636,44 +1716,42 @@ public Builder clearPChild() {
       onChanged();
       return this;
     }
-    /**
-     * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10;
-     */
+    /** optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; */
     public com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder getPChildBuilder() {
       bitField0_ |= 0x00000800;
       onChanged();
       return getPChildFieldBuilder().getBuilder();
     }
-    /**
-     * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10;
-     */
+    /** optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; */
     public com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder getPChildOrBuilder() {
       if (pChildBuilder_ != null) {
         return pChildBuilder_.getMessageOrBuilder();
       } else {
-        return pChild_ == null ?
-            com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance() : pChild_;
+        return pChild_ == null
+            ? com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance()
+            : pChild_;
       }
     }
-    /**
-     * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10;
-     */
+    /** optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.ComplianceDataGrandchild, com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder, com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder> 
+            com.google.showcase.v1beta1.ComplianceDataGrandchild,
+            com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder,
+            com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder>
         getPChildFieldBuilder() {
       if (pChildBuilder_ == null) {
-        pChildBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.showcase.v1beta1.ComplianceDataGrandchild, com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder, com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder>(
-                getPChild(),
-                getParentForChildren(),
-                isClean());
+        pChildBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.showcase.v1beta1.ComplianceDataGrandchild,
+                com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder,
+                com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder>(
+                getPChild(), getParentForChildren(), isClean());
         pChild_ = null;
       }
       return pChildBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1683,12 +1761,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ComplianceDataChild)
   }
 
   // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ComplianceDataChild)
   private static final com.google.showcase.v1beta1.ComplianceDataChild DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ComplianceDataChild();
   }
@@ -1697,27 +1775,27 @@ public static com.google.showcase.v1beta1.ComplianceDataChild getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ComplianceDataChild parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ComplianceDataChild parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1732,6 +1810,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.showcase.v1beta1.ComplianceDataChild getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChildOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChildOrBuilder.java
similarity index 76%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChildOrBuilder.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChildOrBuilder.java
index 8f58816417..11ad58dcae 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChildOrBuilder.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataChildOrBuilder.java
@@ -1,142 +1,174 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/compliance.proto
 
 // Protobuf Java Version: 3.25.5
 package com.google.showcase.v1beta1;
 
-public interface ComplianceDataChildOrBuilder extends
+public interface ComplianceDataChildOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ComplianceDataChild)
     com.google.protobuf.MessageOrBuilder {
 
   /**
    * string f_string = 1;
+   *
    * @return The fString.
    */
   java.lang.String getFString();
   /**
    * string f_string = 1;
+   *
    * @return The bytes for fString.
    */
-  com.google.protobuf.ByteString
-      getFStringBytes();
+  com.google.protobuf.ByteString getFStringBytes();
 
   /**
    * float f_float = 2;
+   *
    * @return The fFloat.
    */
   float getFFloat();
 
   /**
    * double f_double = 3;
+   *
    * @return The fDouble.
    */
   double getFDouble();
 
   /**
    * bool f_bool = 4;
+   *
    * @return The fBool.
    */
   boolean getFBool();
 
   /**
    * .google.showcase.v1beta1.Continent f_continent = 11;
+   *
    * @return The enum numeric value on the wire for fContinent.
    */
   int getFContinentValue();
   /**
    * .google.showcase.v1beta1.Continent f_continent = 11;
+   *
    * @return The fContinent.
    */
   com.google.showcase.v1beta1.Continent getFContinent();
 
   /**
    * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5;
+   *
    * @return Whether the fChild field is set.
    */
   boolean hasFChild();
   /**
    * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5;
+   *
    * @return The fChild.
    */
   com.google.showcase.v1beta1.ComplianceDataGrandchild getFChild();
-  /**
-   * .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5;
-   */
+  /** .google.showcase.v1beta1.ComplianceDataGrandchild f_child = 5; */
   com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder getFChildOrBuilder();
 
   /**
    * optional string p_string = 6;
+   *
    * @return Whether the pString field is set.
    */
   boolean hasPString();
   /**
    * optional string p_string = 6;
+   *
    * @return The pString.
    */
   java.lang.String getPString();
   /**
    * optional string p_string = 6;
+   *
    * @return The bytes for pString.
    */
-  com.google.protobuf.ByteString
-      getPStringBytes();
+  com.google.protobuf.ByteString getPStringBytes();
 
   /**
    * optional float p_float = 7;
+   *
    * @return Whether the pFloat field is set.
    */
   boolean hasPFloat();
   /**
    * optional float p_float = 7;
+   *
    * @return The pFloat.
    */
   float getPFloat();
 
   /**
    * optional double p_double = 8;
+   *
    * @return Whether the pDouble field is set.
    */
   boolean hasPDouble();
   /**
    * optional double p_double = 8;
+   *
    * @return The pDouble.
    */
   double getPDouble();
 
   /**
    * optional bool p_bool = 9;
+   *
    * @return Whether the pBool field is set.
    */
   boolean hasPBool();
   /**
    * optional bool p_bool = 9;
+   *
    * @return The pBool.
    */
   boolean getPBool();
 
   /**
    * .google.showcase.v1beta1.Continent p_continent = 12;
+   *
    * @return The enum numeric value on the wire for pContinent.
    */
   int getPContinentValue();
   /**
    * .google.showcase.v1beta1.Continent p_continent = 12;
+   *
    * @return The pContinent.
    */
   com.google.showcase.v1beta1.Continent getPContinent();
 
   /**
    * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10;
+   *
    * @return Whether the pChild field is set.
    */
   boolean hasPChild();
   /**
    * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10;
+   *
    * @return The pChild.
    */
   com.google.showcase.v1beta1.ComplianceDataGrandchild getPChild();
-  /**
-   * optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10;
-   */
+  /** optional .google.showcase.v1beta1.ComplianceDataGrandchild p_child = 10; */
   com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder getPChildOrBuilder();
 }
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchild.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchild.java
similarity index 65%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchild.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchild.java
index 2948cb56ad..d03df0b443 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchild.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchild.java
@@ -1,50 +1,67 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/compliance.proto
 
 // Protobuf Java Version: 3.25.5
 package com.google.showcase.v1beta1;
 
-/**
- * Protobuf type {@code google.showcase.v1beta1.ComplianceDataGrandchild}
- */
-public final class ComplianceDataGrandchild extends
-    com.google.protobuf.GeneratedMessageV3 implements
+/** Protobuf type {@code google.showcase.v1beta1.ComplianceDataGrandchild} */
+public final class ComplianceDataGrandchild extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ComplianceDataGrandchild)
     ComplianceDataGrandchildOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ComplianceDataGrandchild.newBuilder() to construct.
   private ComplianceDataGrandchild(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ComplianceDataGrandchild() {
     fString_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ComplianceDataGrandchild();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.ComplianceOuterClass
+        .internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_fieldAccessorTable
+    return com.google.showcase.v1beta1.ComplianceOuterClass
+        .internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.ComplianceDataGrandchild.class, com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder.class);
+            com.google.showcase.v1beta1.ComplianceDataGrandchild.class,
+            com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder.class);
   }
 
   public static final int F_STRING_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object fString_ = "";
   /**
    * string f_string = 1;
+   *
    * @return The fString.
    */
   @java.lang.Override
@@ -53,8 +70,7 @@ public java.lang.String getFString() {
     if (ref instanceof java.lang.String) {
       return (java.lang.String) ref;
     } else {
-      com.google.protobuf.ByteString bs = 
-          (com.google.protobuf.ByteString) ref;
+      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
       java.lang.String s = bs.toStringUtf8();
       fString_ = s;
       return s;
@@ -62,16 +78,15 @@ public java.lang.String getFString() {
   }
   /**
    * string f_string = 1;
+   *
    * @return The bytes for fString.
    */
   @java.lang.Override
-  public com.google.protobuf.ByteString
-      getFStringBytes() {
+  public com.google.protobuf.ByteString getFStringBytes() {
     java.lang.Object ref = fString_;
     if (ref instanceof java.lang.String) {
-      com.google.protobuf.ByteString b = 
-          com.google.protobuf.ByteString.copyFromUtf8(
-              (java.lang.String) ref);
+      com.google.protobuf.ByteString b =
+          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
       fString_ = b;
       return b;
     } else {
@@ -83,6 +98,7 @@ public java.lang.String getFString() {
   private double fDouble_ = 0D;
   /**
    * double f_double = 2;
+   *
    * @return The fDouble.
    */
   @java.lang.Override
@@ -94,6 +110,7 @@ public double getFDouble() {
   private boolean fBool_ = false;
   /**
    * bool f_bool = 3;
+   *
    * @return The fBool.
    */
   @java.lang.Override
@@ -102,6 +119,7 @@ public boolean getFBool() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -113,8 +131,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fString_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fString_);
     }
@@ -137,12 +154,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fString_);
     }
     if (java.lang.Double.doubleToRawLongBits(fDouble_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeDoubleSize(2, fDouble_);
+      size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, fDouble_);
     }
     if (fBool_ != false) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBoolSize(3, fBool_);
+      size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, fBool_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -152,20 +167,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.showcase.v1beta1.ComplianceDataGrandchild)) {
       return super.equals(obj);
     }
-    com.google.showcase.v1beta1.ComplianceDataGrandchild other = (com.google.showcase.v1beta1.ComplianceDataGrandchild) obj;
+    com.google.showcase.v1beta1.ComplianceDataGrandchild other =
+        (com.google.showcase.v1beta1.ComplianceDataGrandchild) obj;
 
-    if (!getFString()
-        .equals(other.getFString())) return false;
+    if (!getFString().equals(other.getFString())) return false;
     if (java.lang.Double.doubleToLongBits(getFDouble())
-        != java.lang.Double.doubleToLongBits(
-            other.getFDouble())) return false;
-    if (getFBool()
-        != other.getFBool()) return false;
+        != java.lang.Double.doubleToLongBits(other.getFDouble())) return false;
+    if (getFBool() != other.getFBool()) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -180,138 +193,139 @@ public int hashCode() {
     hash = (37 * hash) + F_STRING_FIELD_NUMBER;
     hash = (53 * hash) + getFString().hashCode();
     hash = (37 * hash) + F_DOUBLE_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        java.lang.Double.doubleToLongBits(getFDouble()));
+    hash =
+        (53 * hash)
+            + com.google.protobuf.Internal.hashLong(
+                java.lang.Double.doubleToLongBits(getFDouble()));
     hash = (37 * hash) + F_BOOL_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-        getFBool());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFBool());
     hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
 
   public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.ComplianceDataGrandchild parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.showcase.v1beta1.ComplianceDataGrandchild prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
-  /**
-   * Protobuf type {@code google.showcase.v1beta1.ComplianceDataGrandchild}
-   */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  /** Protobuf type {@code google.showcase.v1beta1.ComplianceDataGrandchild} */
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ComplianceDataGrandchild)
       com.google.showcase.v1beta1.ComplianceDataGrandchildOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.ComplianceOuterClass
+          .internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_fieldAccessorTable
+      return com.google.showcase.v1beta1.ComplianceOuterClass
+          .internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.ComplianceDataGrandchild.class, com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder.class);
+              com.google.showcase.v1beta1.ComplianceDataGrandchild.class,
+              com.google.showcase.v1beta1.ComplianceDataGrandchild.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.ComplianceDataGrandchild.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -323,9 +337,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.ComplianceOuterClass
+          .internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor;
     }
 
     @java.lang.Override
@@ -344,8 +358,11 @@ public com.google.showcase.v1beta1.ComplianceDataGrandchild build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.ComplianceDataGrandchild buildPartial() {
-      com.google.showcase.v1beta1.ComplianceDataGrandchild result = new com.google.showcase.v1beta1.ComplianceDataGrandchild(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.ComplianceDataGrandchild result =
+          new com.google.showcase.v1beta1.ComplianceDataGrandchild(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -367,38 +384,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ComplianceDataGrandchild
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.ComplianceDataGrandchild) {
-        return mergeFrom((com.google.showcase.v1beta1.ComplianceDataGrandchild)other);
+        return mergeFrom((com.google.showcase.v1beta1.ComplianceDataGrandchild) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -406,7 +424,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.showcase.v1beta1.ComplianceDataGrandchild other) {
-      if (other == com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance()) return this;
+      if (other == com.google.showcase.v1beta1.ComplianceDataGrandchild.getDefaultInstance())
+        return this;
       if (!other.getFString().isEmpty()) {
         fString_ = other.fString_;
         bitField0_ |= 0x00000001;
@@ -444,27 +463,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              fString_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 17: {
-              fDouble_ = input.readDouble();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 17
-            case 24: {
-              fBool_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                fString_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 17:
+              {
+                fDouble_ = input.readDouble();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 17
+            case 24:
+              {
+                fBool_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -474,18 +497,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object fString_ = "";
     /**
      * string f_string = 1;
+     *
      * @return The fString.
      */
     public java.lang.String getFString() {
       java.lang.Object ref = fString_;
       if (!(ref instanceof java.lang.String)) {
-        com.google.protobuf.ByteString bs =
-            (com.google.protobuf.ByteString) ref;
+        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
         java.lang.String s = bs.toStringUtf8();
         fString_ = s;
         return s;
@@ -495,15 +519,14 @@ public java.lang.String getFString() {
     }
     /**
      * string f_string = 1;
+     *
      * @return The bytes for fString.
      */
-    public com.google.protobuf.ByteString
-        getFStringBytes() {
+    public com.google.protobuf.ByteString getFStringBytes() {
       java.lang.Object ref = fString_;
       if (ref instanceof String) {
-        com.google.protobuf.ByteString b = 
-            com.google.protobuf.ByteString.copyFromUtf8(
-                (java.lang.String) ref);
+        com.google.protobuf.ByteString b =
+            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
         fString_ = b;
         return b;
       } else {
@@ -512,12 +535,14 @@ public java.lang.String getFString() {
     }
     /**
      * string f_string = 1;
+     *
      * @param value The fString to set.
      * @return This builder for chaining.
      */
-    public Builder setFString(
-        java.lang.String value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setFString(java.lang.String value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       fString_ = value;
       bitField0_ |= 0x00000001;
       onChanged();
@@ -525,6 +550,7 @@ public Builder setFString(
     }
     /**
      * string f_string = 1;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFString() {
@@ -535,12 +561,14 @@ public Builder clearFString() {
     }
     /**
      * string f_string = 1;
+     *
      * @param value The bytes for fString to set.
      * @return This builder for chaining.
      */
-    public Builder setFStringBytes(
-        com.google.protobuf.ByteString value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setFStringBytes(com.google.protobuf.ByteString value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       checkByteStringIsUtf8(value);
       fString_ = value;
       bitField0_ |= 0x00000001;
@@ -548,9 +576,10 @@ public Builder setFStringBytes(
       return this;
     }
 
-    private double fDouble_ ;
+    private double fDouble_;
     /**
      * double f_double = 2;
+     *
      * @return The fDouble.
      */
     @java.lang.Override
@@ -559,6 +588,7 @@ public double getFDouble() {
     }
     /**
      * double f_double = 2;
+     *
      * @param value The fDouble to set.
      * @return This builder for chaining.
      */
@@ -571,6 +601,7 @@ public Builder setFDouble(double value) {
     }
     /**
      * double f_double = 2;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFDouble() {
@@ -580,9 +611,10 @@ public Builder clearFDouble() {
       return this;
     }
 
-    private boolean fBool_ ;
+    private boolean fBool_;
     /**
      * bool f_bool = 3;
+     *
      * @return The fBool.
      */
     @java.lang.Override
@@ -591,6 +623,7 @@ public boolean getFBool() {
     }
     /**
      * bool f_bool = 3;
+     *
      * @param value The fBool to set.
      * @return This builder for chaining.
      */
@@ -603,6 +636,7 @@ public Builder setFBool(boolean value) {
     }
     /**
      * bool f_bool = 3;
+     *
      * @return This builder for chaining.
      */
     public Builder clearFBool() {
@@ -611,9 +645,9 @@ public Builder clearFBool() {
       onChanged();
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -623,12 +657,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ComplianceDataGrandchild)
   }
 
   // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ComplianceDataGrandchild)
   private static final com.google.showcase.v1beta1.ComplianceDataGrandchild DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ComplianceDataGrandchild();
   }
@@ -637,27 +671,27 @@ public static com.google.showcase.v1beta1.ComplianceDataGrandchild getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ComplianceDataGrandchild parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ComplianceDataGrandchild parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -672,6 +706,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.showcase.v1beta1.ComplianceDataGrandchild getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchildOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchildOrBuilder.java
new file mode 100644
index 0000000000..0ae55a0a75
--- /dev/null
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchildOrBuilder.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: schema/google/showcase/v1beta1/compliance.proto
+
+// Protobuf Java Version: 3.25.5
+package com.google.showcase.v1beta1;
+
+public interface ComplianceDataGrandchildOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ComplianceDataGrandchild)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * string f_string = 1;
+   *
+   * @return The fString.
+   */
+  java.lang.String getFString();
+  /**
+   * string f_string = 1;
+   *
+   * @return The bytes for fString.
+   */
+  com.google.protobuf.ByteString getFStringBytes();
+
+  /**
+   * double f_double = 2;
+   *
+   * @return The fDouble.
+   */
+  double getFDouble();
+
+  /**
+   * bool f_bool = 3;
+   *
+   * @return The fBool.
+   */
+  boolean getFBool();
+}
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataOrBuilder.java
similarity index 81%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataOrBuilder.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataOrBuilder.java
index c1703e9286..873cdfbf6f 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataOrBuilder.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataOrBuilder.java
@@ -1,213 +1,257 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/compliance.proto
 
 // Protobuf Java Version: 3.25.5
 package com.google.showcase.v1beta1;
 
-public interface ComplianceDataOrBuilder extends
+public interface ComplianceDataOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ComplianceData)
     com.google.protobuf.MessageOrBuilder {
 
   /**
    * string f_string = 1;
+   *
    * @return The fString.
    */
   java.lang.String getFString();
   /**
    * string f_string = 1;
+   *
    * @return The bytes for fString.
    */
-  com.google.protobuf.ByteString
-      getFStringBytes();
+  com.google.protobuf.ByteString getFStringBytes();
 
   /**
    * int32 f_int32 = 2;
+   *
    * @return The fInt32.
    */
   int getFInt32();
 
   /**
    * sint32 f_sint32 = 3;
+   *
    * @return The fSint32.
    */
   int getFSint32();
 
   /**
    * sfixed32 f_sfixed32 = 4;
+   *
    * @return The fSfixed32.
    */
   int getFSfixed32();
 
   /**
    * uint32 f_uint32 = 5;
+   *
    * @return The fUint32.
    */
   int getFUint32();
 
   /**
    * fixed32 f_fixed32 = 6;
+   *
    * @return The fFixed32.
    */
   int getFFixed32();
 
   /**
    * int64 f_int64 = 7;
+   *
    * @return The fInt64.
    */
   long getFInt64();
 
   /**
    * sint64 f_sint64 = 8;
+   *
    * @return The fSint64.
    */
   long getFSint64();
 
   /**
    * sfixed64 f_sfixed64 = 9;
+   *
    * @return The fSfixed64.
    */
   long getFSfixed64();
 
   /**
    * uint64 f_uint64 = 10;
+   *
    * @return The fUint64.
    */
   long getFUint64();
 
   /**
    * fixed64 f_fixed64 = 11;
+   *
    * @return The fFixed64.
    */
   long getFFixed64();
 
   /**
    * double f_double = 12;
+   *
    * @return The fDouble.
    */
   double getFDouble();
 
   /**
    * float f_float = 13;
+   *
    * @return The fFloat.
    */
   float getFFloat();
 
   /**
    * bool f_bool = 14;
+   *
    * @return The fBool.
    */
   boolean getFBool();
 
   /**
    * bytes f_bytes = 15;
+   *
    * @return The fBytes.
    */
   com.google.protobuf.ByteString getFBytes();
 
   /**
    * .google.showcase.v1beta1.ComplianceData.LifeKingdom f_kingdom = 22;
+   *
    * @return The enum numeric value on the wire for fKingdom.
    */
   int getFKingdomValue();
   /**
    * .google.showcase.v1beta1.ComplianceData.LifeKingdom f_kingdom = 22;
+   *
    * @return The fKingdom.
    */
   com.google.showcase.v1beta1.ComplianceData.LifeKingdom getFKingdom();
 
   /**
    * .google.showcase.v1beta1.ComplianceDataChild f_child = 16;
+   *
    * @return Whether the fChild field is set.
    */
   boolean hasFChild();
   /**
    * .google.showcase.v1beta1.ComplianceDataChild f_child = 16;
+   *
    * @return The fChild.
    */
   com.google.showcase.v1beta1.ComplianceDataChild getFChild();
-  /**
-   * .google.showcase.v1beta1.ComplianceDataChild f_child = 16;
-   */
+  /** .google.showcase.v1beta1.ComplianceDataChild f_child = 16; */
   com.google.showcase.v1beta1.ComplianceDataChildOrBuilder getFChildOrBuilder();
 
   /**
    * optional string p_string = 17;
+   *
    * @return Whether the pString field is set.
    */
   boolean hasPString();
   /**
    * optional string p_string = 17;
+   *
    * @return The pString.
    */
   java.lang.String getPString();
   /**
    * optional string p_string = 17;
+   *
    * @return The bytes for pString.
    */
-  com.google.protobuf.ByteString
-      getPStringBytes();
+  com.google.protobuf.ByteString getPStringBytes();
 
   /**
    * optional int32 p_int32 = 18;
+   *
    * @return Whether the pInt32 field is set.
    */
   boolean hasPInt32();
   /**
    * optional int32 p_int32 = 18;
+   *
    * @return The pInt32.
    */
   int getPInt32();
 
   /**
    * optional double p_double = 19;
+   *
    * @return Whether the pDouble field is set.
    */
   boolean hasPDouble();
   /**
    * optional double p_double = 19;
+   *
    * @return The pDouble.
    */
   double getPDouble();
 
   /**
    * optional bool p_bool = 20;
+   *
    * @return Whether the pBool field is set.
    */
   boolean hasPBool();
   /**
    * optional bool p_bool = 20;
+   *
    * @return The pBool.
    */
   boolean getPBool();
 
   /**
    * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23;
+   *
    * @return Whether the pKingdom field is set.
    */
   boolean hasPKingdom();
   /**
    * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23;
+   *
    * @return The enum numeric value on the wire for pKingdom.
    */
   int getPKingdomValue();
   /**
    * optional .google.showcase.v1beta1.ComplianceData.LifeKingdom p_kingdom = 23;
+   *
    * @return The pKingdom.
    */
   com.google.showcase.v1beta1.ComplianceData.LifeKingdom getPKingdom();
 
   /**
    * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21;
+   *
    * @return Whether the pChild field is set.
    */
   boolean hasPChild();
   /**
    * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21;
+   *
    * @return The pChild.
    */
   com.google.showcase.v1beta1.ComplianceDataChild getPChild();
-  /**
-   * optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21;
-   */
+  /** optional .google.showcase.v1beta1.ComplianceDataChild p_child = 21; */
   com.google.showcase.v1beta1.ComplianceDataChildOrBuilder getPChildOrBuilder();
 }
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroup.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroup.java
similarity index 65%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroup.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroup.java
index 3ee10c9a41..195c09a080 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroup.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroup.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/compliance.proto
 
@@ -5,6 +20,8 @@
 package com.google.showcase.v1beta1;
 
 /**
+ *
+ *
  * 
  * ComplianceGroups encapsulates a group of RPC requests to the Compliance
  * server: one request for each combination of elements of `rpcs` and of
@@ -13,47 +30,50 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.ComplianceGroup}
  */
-public final class ComplianceGroup extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ComplianceGroup extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ComplianceGroup)
     ComplianceGroupOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ComplianceGroup.newBuilder() to construct.
   private ComplianceGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ComplianceGroup() {
     name_ = "";
-    rpcs_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    rpcs_ = com.google.protobuf.LazyStringArrayList.emptyList();
     requests_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ComplianceGroup();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.ComplianceOuterClass
+        .internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceGroup_fieldAccessorTable
+    return com.google.showcase.v1beta1.ComplianceOuterClass
+        .internal_static_google_showcase_v1beta1_ComplianceGroup_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.ComplianceGroup.class, com.google.showcase.v1beta1.ComplianceGroup.Builder.class);
+            com.google.showcase.v1beta1.ComplianceGroup.class,
+            com.google.showcase.v1beta1.ComplianceGroup.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
    * string name = 1;
+   *
    * @return The name.
    */
   @java.lang.Override
@@ -62,8 +82,7 @@ public java.lang.String getName() {
     if (ref instanceof java.lang.String) {
       return (java.lang.String) ref;
     } else {
-      com.google.protobuf.ByteString bs = 
-          (com.google.protobuf.ByteString) ref;
+      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
       java.lang.String s = bs.toStringUtf8();
       name_ = s;
       return s;
@@ -71,16 +90,15 @@ public java.lang.String getName() {
   }
   /**
    * string name = 1;
+   *
    * @return The bytes for name.
    */
   @java.lang.Override
-  public com.google.protobuf.ByteString
-      getNameBytes() {
+  public com.google.protobuf.ByteString getNameBytes() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
-      com.google.protobuf.ByteString b = 
-          com.google.protobuf.ByteString.copyFromUtf8(
-              (java.lang.String) ref);
+      com.google.protobuf.ByteString b =
+          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
       name_ = b;
       return b;
     } else {
@@ -89,19 +107,21 @@ public java.lang.String getName() {
   }
 
   public static final int RPCS_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList rpcs_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
    * repeated string rpcs = 2;
+   *
    * @return A list containing the rpcs.
    */
-  public com.google.protobuf.ProtocolStringList
-      getRpcsList() {
+  public com.google.protobuf.ProtocolStringList getRpcsList() {
     return rpcs_;
   }
   /**
    * repeated string rpcs = 2;
+   *
    * @return The count of rpcs.
    */
   public int getRpcsCount() {
@@ -109,6 +129,7 @@ public int getRpcsCount() {
   }
   /**
    * repeated string rpcs = 2;
+   *
    * @param index The index of the element to return.
    * @return The rpcs at the given index.
    */
@@ -117,56 +138,47 @@ public java.lang.String getRpcs(int index) {
   }
   /**
    * repeated string rpcs = 2;
+   *
    * @param index The index of the value to return.
    * @return The bytes of the rpcs at the given index.
    */
-  public com.google.protobuf.ByteString
-      getRpcsBytes(int index) {
+  public com.google.protobuf.ByteString getRpcsBytes(int index) {
     return rpcs_.getByteString(index);
   }
 
   public static final int REQUESTS_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private java.util.List requests_;
-  /**
-   * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-   */
+  /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
   @java.lang.Override
   public java.util.List getRequestsList() {
     return requests_;
   }
-  /**
-   * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-   */
+  /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getRequestsOrBuilderList() {
     return requests_;
   }
-  /**
-   * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-   */
+  /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
   @java.lang.Override
   public int getRequestsCount() {
     return requests_.size();
   }
-  /**
-   * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-   */
+  /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
   @java.lang.Override
   public com.google.showcase.v1beta1.RepeatRequest getRequests(int index) {
     return requests_.get(index);
   }
-  /**
-   * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-   */
+  /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
   @java.lang.Override
-  public com.google.showcase.v1beta1.RepeatRequestOrBuilder getRequestsOrBuilder(
-      int index) {
+  public com.google.showcase.v1beta1.RepeatRequestOrBuilder getRequestsOrBuilder(int index) {
     return requests_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -178,8 +190,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -210,8 +221,7 @@ public int getSerializedSize() {
       size += 1 * getRpcsList().size();
     }
     for (int i = 0; i < requests_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, requests_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, requests_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -221,19 +231,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.showcase.v1beta1.ComplianceGroup)) {
       return super.equals(obj);
     }
-    com.google.showcase.v1beta1.ComplianceGroup other = (com.google.showcase.v1beta1.ComplianceGroup) obj;
+    com.google.showcase.v1beta1.ComplianceGroup other =
+        (com.google.showcase.v1beta1.ComplianceGroup) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getRpcsList()
-        .equals(other.getRpcsList())) return false;
-    if (!getRequestsList()
-        .equals(other.getRequestsList())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getRpcsList().equals(other.getRpcsList())) return false;
+    if (!getRequestsList().equals(other.getRequestsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -260,99 +268,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.showcase.v1beta1.ComplianceGroup parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.showcase.v1beta1.ComplianceGroup parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.ComplianceGroup parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceGroup parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.ComplianceGroup parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceGroup parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.ComplianceGroup parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceGroup parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.ComplianceGroup parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.showcase.v1beta1.ComplianceGroup parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.showcase.v1beta1.ComplianceGroup parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.showcase.v1beta1.ComplianceGroup parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceGroup parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.ComplianceGroup parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.showcase.v1beta1.ComplianceGroup prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * ComplianceGroups encapsulates a group of RPC requests to the Compliance
    * server: one request for each combination of elements of `rpcs` and of
@@ -361,40 +374,38 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.ComplianceGroup}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ComplianceGroup)
       com.google.showcase.v1beta1.ComplianceGroupOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.ComplianceOuterClass
+          .internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceGroup_fieldAccessorTable
+      return com.google.showcase.v1beta1.ComplianceOuterClass
+          .internal_static_google_showcase_v1beta1_ComplianceGroup_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.ComplianceGroup.class, com.google.showcase.v1beta1.ComplianceGroup.Builder.class);
+              com.google.showcase.v1beta1.ComplianceGroup.class,
+              com.google.showcase.v1beta1.ComplianceGroup.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.ComplianceGroup.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
       name_ = "";
-      rpcs_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      rpcs_ = com.google.protobuf.LazyStringArrayList.emptyList();
       if (requestsBuilder_ == null) {
         requests_ = java.util.Collections.emptyList();
       } else {
@@ -406,9 +417,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.ComplianceOuterClass
+          .internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor;
     }
 
     @java.lang.Override
@@ -427,9 +438,12 @@ public com.google.showcase.v1beta1.ComplianceGroup build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.ComplianceGroup buildPartial() {
-      com.google.showcase.v1beta1.ComplianceGroup result = new com.google.showcase.v1beta1.ComplianceGroup(this);
+      com.google.showcase.v1beta1.ComplianceGroup result =
+          new com.google.showcase.v1beta1.ComplianceGroup(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -461,38 +475,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ComplianceGroup result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.ComplianceGroup) {
-        return mergeFrom((com.google.showcase.v1beta1.ComplianceGroup)other);
+        return mergeFrom((com.google.showcase.v1beta1.ComplianceGroup) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -534,9 +549,10 @@ public Builder mergeFrom(com.google.showcase.v1beta1.ComplianceGroup other) {
             requestsBuilder_ = null;
             requests_ = other.requests_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            requestsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRequestsFieldBuilder() : null;
+            requestsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRequestsFieldBuilder()
+                    : null;
           } else {
             requestsBuilder_.addAllMessages(other.requests_);
           }
@@ -568,36 +584,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureRpcsIsMutable();
-              rpcs_.add(s);
-              break;
-            } // case 18
-            case 26: {
-              com.google.showcase.v1beta1.RepeatRequest m =
-                  input.readMessage(
-                      com.google.showcase.v1beta1.RepeatRequest.parser(),
-                      extensionRegistry);
-              if (requestsBuilder_ == null) {
-                ensureRequestsIsMutable();
-                requests_.add(m);
-              } else {
-                requestsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureRpcsIsMutable();
+                rpcs_.add(s);
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.showcase.v1beta1.RepeatRequest m =
+                    input.readMessage(
+                        com.google.showcase.v1beta1.RepeatRequest.parser(), extensionRegistry);
+                if (requestsBuilder_ == null) {
+                  ensureRequestsIsMutable();
+                  requests_.add(m);
+                } else {
+                  requestsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -607,18 +626,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
      * string name = 1;
+     *
      * @return The name.
      */
     public java.lang.String getName() {
       java.lang.Object ref = name_;
       if (!(ref instanceof java.lang.String)) {
-        com.google.protobuf.ByteString bs =
-            (com.google.protobuf.ByteString) ref;
+        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
         java.lang.String s = bs.toStringUtf8();
         name_ = s;
         return s;
@@ -628,15 +648,14 @@ public java.lang.String getName() {
     }
     /**
      * string name = 1;
+     *
      * @return The bytes for name.
      */
-    public com.google.protobuf.ByteString
-        getNameBytes() {
+    public com.google.protobuf.ByteString getNameBytes() {
       java.lang.Object ref = name_;
       if (ref instanceof String) {
-        com.google.protobuf.ByteString b = 
-            com.google.protobuf.ByteString.copyFromUtf8(
-                (java.lang.String) ref);
+        com.google.protobuf.ByteString b =
+            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
         name_ = b;
         return b;
       } else {
@@ -645,12 +664,14 @@ public java.lang.String getName() {
     }
     /**
      * 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(); }
+    public Builder setName(java.lang.String value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       name_ = value;
       bitField0_ |= 0x00000001;
       onChanged();
@@ -658,6 +679,7 @@ public Builder setName(
     }
     /**
      * string name = 1;
+     *
      * @return This builder for chaining.
      */
     public Builder clearName() {
@@ -668,12 +690,14 @@ public Builder clearName() {
     }
     /**
      * 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(); }
+    public Builder setNameBytes(com.google.protobuf.ByteString value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       checkByteStringIsUtf8(value);
       name_ = value;
       bitField0_ |= 0x00000001;
@@ -683,6 +707,7 @@ public Builder setNameBytes(
 
     private com.google.protobuf.LazyStringArrayList rpcs_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
+
     private void ensureRpcsIsMutable() {
       if (!rpcs_.isModifiable()) {
         rpcs_ = new com.google.protobuf.LazyStringArrayList(rpcs_);
@@ -691,15 +716,16 @@ private void ensureRpcsIsMutable() {
     }
     /**
      * repeated string rpcs = 2;
+     *
      * @return A list containing the rpcs.
      */
-    public com.google.protobuf.ProtocolStringList
-        getRpcsList() {
+    public com.google.protobuf.ProtocolStringList getRpcsList() {
       rpcs_.makeImmutable();
       return rpcs_;
     }
     /**
      * repeated string rpcs = 2;
+     *
      * @return The count of rpcs.
      */
     public int getRpcsCount() {
@@ -707,6 +733,7 @@ public int getRpcsCount() {
     }
     /**
      * repeated string rpcs = 2;
+     *
      * @param index The index of the element to return.
      * @return The rpcs at the given index.
      */
@@ -715,22 +742,24 @@ public java.lang.String getRpcs(int index) {
     }
     /**
      * repeated string rpcs = 2;
+     *
      * @param index The index of the value to return.
      * @return The bytes of the rpcs at the given index.
      */
-    public com.google.protobuf.ByteString
-        getRpcsBytes(int index) {
+    public com.google.protobuf.ByteString getRpcsBytes(int index) {
       return rpcs_.getByteString(index);
     }
     /**
      * repeated string rpcs = 2;
+     *
      * @param index The index to set the value at.
      * @param value The rpcs to set.
      * @return This builder for chaining.
      */
-    public Builder setRpcs(
-        int index, java.lang.String value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setRpcs(int index, java.lang.String value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       ensureRpcsIsMutable();
       rpcs_.set(index, value);
       bitField0_ |= 0x00000002;
@@ -739,12 +768,14 @@ public Builder setRpcs(
     }
     /**
      * repeated string rpcs = 2;
+     *
      * @param value The rpcs to add.
      * @return This builder for chaining.
      */
-    public Builder addRpcs(
-        java.lang.String value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder addRpcs(java.lang.String value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       ensureRpcsIsMutable();
       rpcs_.add(value);
       bitField0_ |= 0x00000002;
@@ -753,37 +784,39 @@ public Builder addRpcs(
     }
     /**
      * repeated string rpcs = 2;
+     *
      * @param values The rpcs to add.
      * @return This builder for chaining.
      */
-    public Builder addAllRpcs(
-        java.lang.Iterable values) {
+    public Builder addAllRpcs(java.lang.Iterable values) {
       ensureRpcsIsMutable();
-      com.google.protobuf.AbstractMessageLite.Builder.addAll(
-          values, rpcs_);
+      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rpcs_);
       bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
     /**
      * repeated string rpcs = 2;
+     *
      * @return This builder for chaining.
      */
     public Builder clearRpcs() {
-      rpcs_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
-      bitField0_ = (bitField0_ & ~0x00000002);;
+      rpcs_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      bitField0_ = (bitField0_ & ~0x00000002);
+      ;
       onChanged();
       return this;
     }
     /**
      * repeated string rpcs = 2;
+     *
      * @param value The bytes of the rpcs to add.
      * @return This builder for chaining.
      */
-    public Builder addRpcsBytes(
-        com.google.protobuf.ByteString value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder addRpcsBytes(com.google.protobuf.ByteString value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       checkByteStringIsUtf8(value);
       ensureRpcsIsMutable();
       rpcs_.add(value);
@@ -793,20 +826,22 @@ public Builder addRpcsBytes(
     }
 
     private java.util.List requests_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureRequestsIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
         requests_ = new java.util.ArrayList(requests_);
         bitField0_ |= 0x00000004;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatRequest.Builder, com.google.showcase.v1beta1.RepeatRequestOrBuilder> requestsBuilder_;
+            com.google.showcase.v1beta1.RepeatRequest,
+            com.google.showcase.v1beta1.RepeatRequest.Builder,
+            com.google.showcase.v1beta1.RepeatRequestOrBuilder>
+        requestsBuilder_;
 
-    /**
-     * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-     */
+    /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
     public java.util.List getRequestsList() {
       if (requestsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(requests_);
@@ -814,9 +849,7 @@ public java.util.List getRequestsList
         return requestsBuilder_.getMessageList();
       }
     }
-    /**
-     * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-     */
+    /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
     public int getRequestsCount() {
       if (requestsBuilder_ == null) {
         return requests_.size();
@@ -824,9 +857,7 @@ public int getRequestsCount() {
         return requestsBuilder_.getCount();
       }
     }
-    /**
-     * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-     */
+    /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
     public com.google.showcase.v1beta1.RepeatRequest getRequests(int index) {
       if (requestsBuilder_ == null) {
         return requests_.get(index);
@@ -834,11 +865,8 @@ public com.google.showcase.v1beta1.RepeatRequest getRequests(int index) {
         return requestsBuilder_.getMessage(index);
       }
     }
-    /**
-     * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-     */
-    public Builder setRequests(
-        int index, com.google.showcase.v1beta1.RepeatRequest value) {
+    /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
+    public Builder setRequests(int index, com.google.showcase.v1beta1.RepeatRequest value) {
       if (requestsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -851,9 +879,7 @@ public Builder setRequests(
       }
       return this;
     }
-    /**
-     * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-     */
+    /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
     public Builder setRequests(
         int index, com.google.showcase.v1beta1.RepeatRequest.Builder builderForValue) {
       if (requestsBuilder_ == null) {
@@ -865,9 +891,7 @@ public Builder setRequests(
       }
       return this;
     }
-    /**
-     * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-     */
+    /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
     public Builder addRequests(com.google.showcase.v1beta1.RepeatRequest value) {
       if (requestsBuilder_ == null) {
         if (value == null) {
@@ -881,11 +905,8 @@ public Builder addRequests(com.google.showcase.v1beta1.RepeatRequest value) {
       }
       return this;
     }
-    /**
-     * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-     */
-    public Builder addRequests(
-        int index, com.google.showcase.v1beta1.RepeatRequest value) {
+    /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
+    public Builder addRequests(int index, com.google.showcase.v1beta1.RepeatRequest value) {
       if (requestsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -898,11 +919,8 @@ public Builder addRequests(
       }
       return this;
     }
-    /**
-     * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-     */
-    public Builder addRequests(
-        com.google.showcase.v1beta1.RepeatRequest.Builder builderForValue) {
+    /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
+    public Builder addRequests(com.google.showcase.v1beta1.RepeatRequest.Builder builderForValue) {
       if (requestsBuilder_ == null) {
         ensureRequestsIsMutable();
         requests_.add(builderForValue.build());
@@ -912,9 +930,7 @@ public Builder addRequests(
       }
       return this;
     }
-    /**
-     * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-     */
+    /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
     public Builder addRequests(
         int index, com.google.showcase.v1beta1.RepeatRequest.Builder builderForValue) {
       if (requestsBuilder_ == null) {
@@ -926,24 +942,19 @@ public Builder addRequests(
       }
       return this;
     }
-    /**
-     * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-     */
+    /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
     public Builder addAllRequests(
         java.lang.Iterable values) {
       if (requestsBuilder_ == null) {
         ensureRequestsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, requests_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_);
         onChanged();
       } else {
         requestsBuilder_.addAllMessages(values);
       }
       return this;
     }
-    /**
-     * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-     */
+    /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
     public Builder clearRequests() {
       if (requestsBuilder_ == null) {
         requests_ = java.util.Collections.emptyList();
@@ -954,9 +965,7 @@ public Builder clearRequests() {
       }
       return this;
     }
-    /**
-     * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-     */
+    /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
     public Builder removeRequests(int index) {
       if (requestsBuilder_ == null) {
         ensureRequestsIsMutable();
@@ -967,73 +976,62 @@ public Builder removeRequests(int index) {
       }
       return this;
     }
-    /**
-     * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-     */
-    public com.google.showcase.v1beta1.RepeatRequest.Builder getRequestsBuilder(
-        int index) {
+    /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
+    public com.google.showcase.v1beta1.RepeatRequest.Builder getRequestsBuilder(int index) {
       return getRequestsFieldBuilder().getBuilder(index);
     }
-    /**
-     * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-     */
-    public com.google.showcase.v1beta1.RepeatRequestOrBuilder getRequestsOrBuilder(
-        int index) {
+    /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
+    public com.google.showcase.v1beta1.RepeatRequestOrBuilder getRequestsOrBuilder(int index) {
       if (requestsBuilder_ == null) {
-        return requests_.get(index);  } else {
+        return requests_.get(index);
+      } else {
         return requestsBuilder_.getMessageOrBuilder(index);
       }
     }
-    /**
-     * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-     */
-    public java.util.List 
-         getRequestsOrBuilderList() {
+    /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
+    public java.util.List
+        getRequestsOrBuilderList() {
       if (requestsBuilder_ != null) {
         return requestsBuilder_.getMessageOrBuilderList();
       } else {
         return java.util.Collections.unmodifiableList(requests_);
       }
     }
-    /**
-     * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-     */
+    /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
     public com.google.showcase.v1beta1.RepeatRequest.Builder addRequestsBuilder() {
-      return getRequestsFieldBuilder().addBuilder(
-          com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance());
+      return getRequestsFieldBuilder()
+          .addBuilder(com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance());
     }
-    /**
-     * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-     */
-    public com.google.showcase.v1beta1.RepeatRequest.Builder addRequestsBuilder(
-        int index) {
-      return getRequestsFieldBuilder().addBuilder(
-          index, com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance());
+    /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
+    public com.google.showcase.v1beta1.RepeatRequest.Builder addRequestsBuilder(int index) {
+      return getRequestsFieldBuilder()
+          .addBuilder(index, com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance());
     }
-    /**
-     * repeated .google.showcase.v1beta1.RepeatRequest requests = 3;
-     */
-    public java.util.List 
-         getRequestsBuilderList() {
+    /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
+    public java.util.List
+        getRequestsBuilderList() {
       return getRequestsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatRequest.Builder, com.google.showcase.v1beta1.RepeatRequestOrBuilder> 
+            com.google.showcase.v1beta1.RepeatRequest,
+            com.google.showcase.v1beta1.RepeatRequest.Builder,
+            com.google.showcase.v1beta1.RepeatRequestOrBuilder>
         getRequestsFieldBuilder() {
       if (requestsBuilder_ == null) {
-        requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatRequest.Builder, com.google.showcase.v1beta1.RepeatRequestOrBuilder>(
-                requests_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        requestsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.showcase.v1beta1.RepeatRequest,
+                com.google.showcase.v1beta1.RepeatRequest.Builder,
+                com.google.showcase.v1beta1.RepeatRequestOrBuilder>(
+                requests_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
         requests_ = null;
       }
       return requestsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1043,12 +1041,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ComplianceGroup)
   }
 
   // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ComplianceGroup)
   private static final com.google.showcase.v1beta1.ComplianceGroup DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ComplianceGroup();
   }
@@ -1057,27 +1055,27 @@ public static com.google.showcase.v1beta1.ComplianceGroup getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ComplianceGroup parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ComplianceGroup parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1092,6 +1090,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.showcase.v1beta1.ComplianceGroup getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroupOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroupOrBuilder.java
new file mode 100644
index 0000000000..dd99321b3e
--- /dev/null
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroupOrBuilder.java
@@ -0,0 +1,78 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: schema/google/showcase/v1beta1/compliance.proto
+
+// Protobuf Java Version: 3.25.5
+package com.google.showcase.v1beta1;
+
+public interface ComplianceGroupOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ComplianceGroup)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * string name = 1;
+   *
+   * @return The name.
+   */
+  java.lang.String getName();
+  /**
+   * string name = 1;
+   *
+   * @return The bytes for name.
+   */
+  com.google.protobuf.ByteString getNameBytes();
+
+  /**
+   * repeated string rpcs = 2;
+   *
+   * @return A list containing the rpcs.
+   */
+  java.util.List getRpcsList();
+  /**
+   * repeated string rpcs = 2;
+   *
+   * @return The count of rpcs.
+   */
+  int getRpcsCount();
+  /**
+   * repeated string rpcs = 2;
+   *
+   * @param index The index of the element to return.
+   * @return The rpcs at the given index.
+   */
+  java.lang.String getRpcs(int index);
+  /**
+   * repeated string rpcs = 2;
+   *
+   * @param index The index of the value to return.
+   * @return The bytes of the rpcs at the given index.
+   */
+  com.google.protobuf.ByteString getRpcsBytes(int index);
+
+  /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
+  java.util.List getRequestsList();
+  /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
+  com.google.showcase.v1beta1.RepeatRequest getRequests(int index);
+  /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
+  int getRequestsCount();
+  /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
+  java.util.List
+      getRequestsOrBuilderList();
+  /** repeated .google.showcase.v1beta1.RepeatRequest requests = 3; */
+  com.google.showcase.v1beta1.RepeatRequestOrBuilder getRequestsOrBuilder(int index);
+}
diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceOuterClass.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceOuterClass.java
new file mode 100644
index 0000000000..458bbf8643
--- /dev/null
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceOuterClass.java
@@ -0,0 +1,318 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: schema/google/showcase/v1beta1/compliance.proto
+
+// Protobuf Java Version: 3.25.5
+package com.google.showcase.v1beta1;
+
+public final class ComplianceOuterClass {
+  private ComplianceOuterClass() {}
+
+  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_showcase_v1beta1_RepeatRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_RepeatRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_RepeatResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_RepeatResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_ComplianceSuite_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_ComplianceGroup_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_ComplianceData_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_ComplianceData_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_ComplianceDataChild_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_EnumRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_EnumRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_EnumResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_EnumResponse_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/schema/google/showcase/v1beta1/complia"
+          + "nce.proto\022\027google.showcase.v1beta1\032\034goog"
+          + "le/api/annotations.proto\032\027google/api/cli"
+          + "ent.proto\"\303\002\n\rRepeatRequest\022\014\n\004name\030\001 \001("
+          + "\t\0225\n\004info\030\002 \001(\0132\'.google.showcase.v1beta"
+          + "1.ComplianceData\022\025\n\rserver_verify\030\003 \001(\010\022"
+          + "!\n\024intended_binding_uri\030\n \001(\tH\000\210\001\001\022\017\n\007f_"
+          + "int32\030\004 \001(\005\022\017\n\007f_int64\030\005 \001(\003\022\020\n\010f_double"
+          + "\030\006 \001(\001\022\024\n\007p_int32\030\007 \001(\005H\001\210\001\001\022\024\n\007p_int64\030"
+          + "\010 \001(\003H\002\210\001\001\022\025\n\010p_double\030\t \001(\001H\003\210\001\001B\027\n\025_in"
+          + "tended_binding_uriB\n\n\010_p_int32B\n\n\010_p_int"
+          + "64B\013\n\t_p_double\"^\n\016RepeatResponse\0227\n\007req"
+          + "uest\030\001 \001(\0132&.google.showcase.v1beta1.Rep"
+          + "eatRequest\022\023\n\013binding_uri\030\002 \001(\t\"J\n\017Compl"
+          + "ianceSuite\0227\n\005group\030\001 \003(\0132(.google.showc"
+          + "ase.v1beta1.ComplianceGroup\"g\n\017Complianc"
+          + "eGroup\022\014\n\004name\030\001 \001(\t\022\014\n\004rpcs\030\002 \003(\t\0228\n\010re"
+          + "quests\030\003 \003(\0132&.google.showcase.v1beta1.R"
+          + "epeatRequest\"\340\006\n\016ComplianceData\022\020\n\010f_str"
+          + "ing\030\001 \001(\t\022\017\n\007f_int32\030\002 \001(\005\022\020\n\010f_sint32\030\003"
+          + " \001(\021\022\022\n\nf_sfixed32\030\004 \001(\017\022\020\n\010f_uint32\030\005 \001"
+          + "(\r\022\021\n\tf_fixed32\030\006 \001(\007\022\017\n\007f_int64\030\007 \001(\003\022\020"
+          + "\n\010f_sint64\030\010 \001(\022\022\022\n\nf_sfixed64\030\t \001(\020\022\020\n\010"
+          + "f_uint64\030\n \001(\004\022\021\n\tf_fixed64\030\013 \001(\006\022\020\n\010f_d"
+          + "ouble\030\014 \001(\001\022\017\n\007f_float\030\r \001(\002\022\016\n\006f_bool\030\016"
+          + " \001(\010\022\017\n\007f_bytes\030\017 \001(\014\022F\n\tf_kingdom\030\026 \001(\016"
+          + "23.google.showcase.v1beta1.ComplianceDat"
+          + "a.LifeKingdom\022=\n\007f_child\030\020 \001(\0132,.google."
+          + "showcase.v1beta1.ComplianceDataChild\022\025\n\010"
+          + "p_string\030\021 \001(\tH\000\210\001\001\022\024\n\007p_int32\030\022 \001(\005H\001\210\001"
+          + "\001\022\025\n\010p_double\030\023 \001(\001H\002\210\001\001\022\023\n\006p_bool\030\024 \001(\010"
+          + "H\003\210\001\001\022K\n\tp_kingdom\030\027 \001(\01623.google.showca"
+          + "se.v1beta1.ComplianceData.LifeKingdomH\004\210"
+          + "\001\001\022B\n\007p_child\030\025 \001(\0132,.google.showcase.v1"
+          + "beta1.ComplianceDataChildH\005\210\001\001\"\203\001\n\013LifeK"
+          + "ingdom\022\034\n\030LIFE_KINGDOM_UNSPECIFIED\020\000\022\022\n\016"
+          + "ARCHAEBACTERIA\020\001\022\016\n\nEUBACTERIA\020\002\022\014\n\010PROT"
+          + "ISTA\020\003\022\t\n\005FUNGI\020\004\022\013\n\007PLANTAE\020\005\022\014\n\010ANIMAL"
+          + "IA\020\006B\013\n\t_p_stringB\n\n\010_p_int32B\013\n\t_p_doub"
+          + "leB\t\n\007_p_boolB\014\n\n_p_kingdomB\n\n\010_p_child\""
+          + "\357\003\n\023ComplianceDataChild\022\020\n\010f_string\030\001 \001("
+          + "\t\022\017\n\007f_float\030\002 \001(\002\022\020\n\010f_double\030\003 \001(\001\022\016\n\006"
+          + "f_bool\030\004 \001(\010\0227\n\013f_continent\030\013 \001(\0162\".goog"
+          + "le.showcase.v1beta1.Continent\022B\n\007f_child"
+          + "\030\005 \001(\01321.google.showcase.v1beta1.Complia"
+          + "nceDataGrandchild\022\025\n\010p_string\030\006 \001(\tH\000\210\001\001"
+          + "\022\024\n\007p_float\030\007 \001(\002H\001\210\001\001\022\025\n\010p_double\030\010 \001(\001"
+          + "H\002\210\001\001\022\023\n\006p_bool\030\t \001(\010H\003\210\001\001\0227\n\013p_continen"
+          + "t\030\014 \001(\0162\".google.showcase.v1beta1.Contin"
+          + "ent\022G\n\007p_child\030\n \001(\01321.google.showcase.v"
+          + "1beta1.ComplianceDataGrandchildH\004\210\001\001B\013\n\t"
+          + "_p_stringB\n\n\010_p_floatB\013\n\t_p_doubleB\t\n\007_p"
+          + "_boolB\n\n\010_p_child\"N\n\030ComplianceDataGrand"
+          + "child\022\020\n\010f_string\030\001 \001(\t\022\020\n\010f_double\030\002 \001("
+          + "\001\022\016\n\006f_bool\030\003 \001(\010\"#\n\013EnumRequest\022\024\n\014unkn"
+          + "own_enum\030\001 \001(\010\"|\n\014EnumResponse\0225\n\007reques"
+          + "t\030\001 \001(\0132$.google.showcase.v1beta1.EnumRe"
+          + "quest\0225\n\tcontinent\030\002 \001(\0162\".google.showca"
+          + "se.v1beta1.Continent*i\n\tContinent\022\031\n\025CON"
+          + "TINENT_UNSPECIFIED\020\000\022\n\n\006AFRICA\020\001\022\013\n\007AMER"
+          + "ICA\020\002\022\r\n\tANTARTICA\020\003\022\r\n\tAUSTRALIA\020\004\022\n\n\006E"
+          + "UROPE\020\0052\330\r\n\nCompliance\022\202\001\n\016RepeatDataBod"
+          + "y\022&.google.showcase.v1beta1.RepeatReques"
+          + "t\032\'.google.showcase.v1beta1.RepeatRespon"
+          + "se\"\037\202\323\344\223\002\031\"\024/v1beta1/repeat:body:\001*\022\215\001\n\022"
+          + "RepeatDataBodyInfo\022&.google.showcase.v1b"
+          + "eta1.RepeatRequest\032\'.google.showcase.v1b"
+          + "eta1.RepeatResponse\"&\202\323\344\223\002 \"\030/v1beta1/re"
+          + "peat:bodyinfo:\004info\022\201\001\n\017RepeatDataQuery\022"
+          + "&.google.showcase.v1beta1.RepeatRequest\032"
+          + "\'.google.showcase.v1beta1.RepeatResponse"
+          + "\"\035\202\323\344\223\002\027\022\025/v1beta1/repeat:query\022\331\001\n\024Repe"
+          + "atDataSimplePath\022&.google.showcase.v1bet"
+          + "a1.RepeatRequest\032\'.google.showcase.v1bet"
+          + "a1.RepeatResponse\"p\202\323\344\223\002j\022h/v1beta1/repe"
+          + "at/{info.f_string}/{info.f_int32}/{info."
+          + "f_double}/{info.f_bool}/{info.f_kingdom}"
+          + ":simplepath\022\323\002\n\026RepeatDataPathResource\022&"
+          + ".google.showcase.v1beta1.RepeatRequest\032\'"
+          + ".google.showcase.v1beta1.RepeatResponse\""
+          + "\347\001\202\323\344\223\002\340\001\022h/v1beta1/repeat/{info.f_strin"
+          + "g=first/*}/{info.f_child.f_string=second"
+          + "/*}/bool/{info.f_bool}:pathresourceZt\022r/"
+          + "v1beta1/repeat/{info.f_child.f_string=fi"
+          + "rst/*}/{info.f_string=second/*}/bool/{in"
+          + "fo.f_bool}:childfirstpathresource\022\331\001\n\036Re"
+          + "peatDataPathTrailingResource\022&.google.sh"
+          + "owcase.v1beta1.RepeatRequest\032\'.google.sh"
+          + "owcase.v1beta1.RepeatResponse\"f\202\323\344\223\002`\022^/"
+          + "v1beta1/repeat/{info.f_string=first/*}/{"
+          + "info.f_child.f_string=second/**}:pathtra"
+          + "ilingresource\022\210\001\n\021RepeatDataBodyPut\022&.go"
+          + "ogle.showcase.v1beta1.RepeatRequest\032\'.go"
+          + "ogle.showcase.v1beta1.RepeatResponse\"\"\202\323"
+          + "\344\223\002\034\032\027/v1beta1/repeat:bodyput:\001*\022\214\001\n\023Rep"
+          + "eatDataBodyPatch\022&.google.showcase.v1bet"
+          + "a1.RepeatRequest\032\'.google.showcase.v1bet"
+          + "a1.RepeatResponse\"$\202\323\344\223\002\0362\031/v1beta1/repe"
+          + "at:bodypatch:\001*\022x\n\007GetEnum\022$.google.show"
+          + "case.v1beta1.EnumRequest\032%.google.showca"
+          + "se.v1beta1.EnumResponse\" \202\323\344\223\002\032\022\030/v1beta"
+          + "1/compliance/enum\022|\n\nVerifyEnum\022%.google"
+          + ".showcase.v1beta1.EnumResponse\032%.google."
+          + "showcase.v1beta1.EnumResponse\" \202\323\344\223\002\032\"\030/"
+          + "v1beta1/compliance/enum\032\021\312A\016localhost:74"
+          + "69Bq\n\033com.google.showcase.v1beta1P\001Z4git"
+          + "hub.com/googleapis/gapic-showcase/server"
+          + "/genproto\352\002\031Google::Showcase::V1beta1b\006p"
+          + "roto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.AnnotationsProto.getDescriptor(),
+              com.google.api.ClientProto.getDescriptor(),
+            });
+    internal_static_google_showcase_v1beta1_RepeatRequest_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_showcase_v1beta1_RepeatRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_showcase_v1beta1_RepeatRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "Info",
+              "ServerVerify",
+              "IntendedBindingUri",
+              "FInt32",
+              "FInt64",
+              "FDouble",
+              "PInt32",
+              "PInt64",
+              "PDouble",
+            });
+    internal_static_google_showcase_v1beta1_RepeatResponse_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_showcase_v1beta1_RepeatResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_showcase_v1beta1_RepeatResponse_descriptor,
+            new java.lang.String[] {
+              "Request", "BindingUri",
+            });
+    internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_showcase_v1beta1_ComplianceSuite_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor,
+            new java.lang.String[] {
+              "Group",
+            });
+    internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_showcase_v1beta1_ComplianceGroup_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor,
+            new java.lang.String[] {
+              "Name", "Rpcs", "Requests",
+            });
+    internal_static_google_showcase_v1beta1_ComplianceData_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_showcase_v1beta1_ComplianceData_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_showcase_v1beta1_ComplianceData_descriptor,
+            new java.lang.String[] {
+              "FString",
+              "FInt32",
+              "FSint32",
+              "FSfixed32",
+              "FUint32",
+              "FFixed32",
+              "FInt64",
+              "FSint64",
+              "FSfixed64",
+              "FUint64",
+              "FFixed64",
+              "FDouble",
+              "FFloat",
+              "FBool",
+              "FBytes",
+              "FKingdom",
+              "FChild",
+              "PString",
+              "PInt32",
+              "PDouble",
+              "PBool",
+              "PKingdom",
+              "PChild",
+            });
+    internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_showcase_v1beta1_ComplianceDataChild_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor,
+            new java.lang.String[] {
+              "FString",
+              "FFloat",
+              "FDouble",
+              "FBool",
+              "FContinent",
+              "FChild",
+              "PString",
+              "PFloat",
+              "PDouble",
+              "PBool",
+              "PContinent",
+              "PChild",
+            });
+    internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor,
+            new java.lang.String[] {
+              "FString", "FDouble", "FBool",
+            });
+    internal_static_google_showcase_v1beta1_EnumRequest_descriptor =
+        getDescriptor().getMessageTypes().get(7);
+    internal_static_google_showcase_v1beta1_EnumRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_showcase_v1beta1_EnumRequest_descriptor,
+            new java.lang.String[] {
+              "UnknownEnum",
+            });
+    internal_static_google_showcase_v1beta1_EnumResponse_descriptor =
+        getDescriptor().getMessageTypes().get(8);
+    internal_static_google_showcase_v1beta1_EnumResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_showcase_v1beta1_EnumResponse_descriptor,
+            new java.lang.String[] {
+              "Request", "Continent",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.AnnotationsProto.http);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuite.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuite.java
similarity index 62%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuite.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuite.java
index ec61eee530..2987495791 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuite.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuite.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/compliance.proto
 
@@ -5,6 +20,8 @@
 package com.google.showcase.v1beta1;
 
 /**
+ *
+ *
  * 
  * ComplianceSuite contains a set of requests that microgenerators should issue
  * over REST to the Compliance service to test their gRPC-to-REST transcoding
@@ -13,81 +30,74 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.ComplianceSuite}
  */
-public final class ComplianceSuite extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ComplianceSuite extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ComplianceSuite)
     ComplianceSuiteOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ComplianceSuite.newBuilder() to construct.
   private ComplianceSuite(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ComplianceSuite() {
     group_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ComplianceSuite();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.ComplianceOuterClass
+        .internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceSuite_fieldAccessorTable
+    return com.google.showcase.v1beta1.ComplianceOuterClass
+        .internal_static_google_showcase_v1beta1_ComplianceSuite_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.ComplianceSuite.class, com.google.showcase.v1beta1.ComplianceSuite.Builder.class);
+            com.google.showcase.v1beta1.ComplianceSuite.class,
+            com.google.showcase.v1beta1.ComplianceSuite.Builder.class);
   }
 
   public static final int GROUP_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List group_;
-  /**
-   * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-   */
+  /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
   @java.lang.Override
   public java.util.List getGroupList() {
     return group_;
   }
-  /**
-   * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-   */
+  /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getGroupOrBuilderList() {
     return group_;
   }
-  /**
-   * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-   */
+  /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
   @java.lang.Override
   public int getGroupCount() {
     return group_.size();
   }
-  /**
-   * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-   */
+  /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
   @java.lang.Override
   public com.google.showcase.v1beta1.ComplianceGroup getGroup(int index) {
     return group_.get(index);
   }
-  /**
-   * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-   */
+  /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
   @java.lang.Override
-  public com.google.showcase.v1beta1.ComplianceGroupOrBuilder getGroupOrBuilder(
-      int index) {
+  public com.google.showcase.v1beta1.ComplianceGroupOrBuilder getGroupOrBuilder(int index) {
     return group_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -99,8 +109,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < group_.size(); i++) {
       output.writeMessage(1, group_.get(i));
     }
@@ -114,8 +123,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < group_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, group_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, group_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -125,15 +133,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.showcase.v1beta1.ComplianceSuite)) {
       return super.equals(obj);
     }
-    com.google.showcase.v1beta1.ComplianceSuite other = (com.google.showcase.v1beta1.ComplianceSuite) obj;
+    com.google.showcase.v1beta1.ComplianceSuite other =
+        (com.google.showcase.v1beta1.ComplianceSuite) obj;
 
-    if (!getGroupList()
-        .equals(other.getGroupList())) return false;
+    if (!getGroupList().equals(other.getGroupList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -154,99 +162,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.showcase.v1beta1.ComplianceSuite parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.showcase.v1beta1.ComplianceSuite parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.ComplianceSuite parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceSuite parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.ComplianceSuite parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceSuite parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.ComplianceSuite parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceSuite parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.ComplianceSuite parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.showcase.v1beta1.ComplianceSuite parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.showcase.v1beta1.ComplianceSuite parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.showcase.v1beta1.ComplianceSuite parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.ComplianceSuite parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.ComplianceSuite parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.showcase.v1beta1.ComplianceSuite prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * ComplianceSuite contains a set of requests that microgenerators should issue
    * over REST to the Compliance service to test their gRPC-to-REST transcoding
@@ -255,33 +268,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.ComplianceSuite}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ComplianceSuite)
       com.google.showcase.v1beta1.ComplianceSuiteOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.ComplianceOuterClass
+          .internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceSuite_fieldAccessorTable
+      return com.google.showcase.v1beta1.ComplianceOuterClass
+          .internal_static_google_showcase_v1beta1_ComplianceSuite_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.ComplianceSuite.class, com.google.showcase.v1beta1.ComplianceSuite.Builder.class);
+              com.google.showcase.v1beta1.ComplianceSuite.class,
+              com.google.showcase.v1beta1.ComplianceSuite.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.ComplianceSuite.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -297,9 +309,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.ComplianceOuterClass
+          .internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor;
     }
 
     @java.lang.Override
@@ -318,9 +330,12 @@ public com.google.showcase.v1beta1.ComplianceSuite build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.ComplianceSuite buildPartial() {
-      com.google.showcase.v1beta1.ComplianceSuite result = new com.google.showcase.v1beta1.ComplianceSuite(this);
+      com.google.showcase.v1beta1.ComplianceSuite result =
+          new com.google.showcase.v1beta1.ComplianceSuite(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -345,38 +360,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ComplianceSuite result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.ComplianceSuite) {
-        return mergeFrom((com.google.showcase.v1beta1.ComplianceSuite)other);
+        return mergeFrom((com.google.showcase.v1beta1.ComplianceSuite) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -403,9 +419,10 @@ public Builder mergeFrom(com.google.showcase.v1beta1.ComplianceSuite other) {
             groupBuilder_ = null;
             group_ = other.group_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            groupBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getGroupFieldBuilder() : null;
+            groupBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getGroupFieldBuilder()
+                    : null;
           } else {
             groupBuilder_.addAllMessages(other.group_);
           }
@@ -437,25 +454,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.showcase.v1beta1.ComplianceGroup m =
-                  input.readMessage(
-                      com.google.showcase.v1beta1.ComplianceGroup.parser(),
-                      extensionRegistry);
-              if (groupBuilder_ == null) {
-                ensureGroupIsMutable();
-                group_.add(m);
-              } else {
-                groupBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.showcase.v1beta1.ComplianceGroup m =
+                    input.readMessage(
+                        com.google.showcase.v1beta1.ComplianceGroup.parser(), extensionRegistry);
+                if (groupBuilder_ == null) {
+                  ensureGroupIsMutable();
+                  group_.add(m);
+                } else {
+                  groupBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -465,23 +483,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List group_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureGroupIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         group_ = new java.util.ArrayList(group_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.showcase.v1beta1.ComplianceGroup, com.google.showcase.v1beta1.ComplianceGroup.Builder, com.google.showcase.v1beta1.ComplianceGroupOrBuilder> groupBuilder_;
+            com.google.showcase.v1beta1.ComplianceGroup,
+            com.google.showcase.v1beta1.ComplianceGroup.Builder,
+            com.google.showcase.v1beta1.ComplianceGroupOrBuilder>
+        groupBuilder_;
 
-    /**
-     * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-     */
+    /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
     public java.util.List getGroupList() {
       if (groupBuilder_ == null) {
         return java.util.Collections.unmodifiableList(group_);
@@ -489,9 +510,7 @@ public java.util.List getGroupList(
         return groupBuilder_.getMessageList();
       }
     }
-    /**
-     * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-     */
+    /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
     public int getGroupCount() {
       if (groupBuilder_ == null) {
         return group_.size();
@@ -499,9 +518,7 @@ public int getGroupCount() {
         return groupBuilder_.getCount();
       }
     }
-    /**
-     * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-     */
+    /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
     public com.google.showcase.v1beta1.ComplianceGroup getGroup(int index) {
       if (groupBuilder_ == null) {
         return group_.get(index);
@@ -509,11 +526,8 @@ public com.google.showcase.v1beta1.ComplianceGroup getGroup(int index) {
         return groupBuilder_.getMessage(index);
       }
     }
-    /**
-     * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-     */
-    public Builder setGroup(
-        int index, com.google.showcase.v1beta1.ComplianceGroup value) {
+    /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
+    public Builder setGroup(int index, com.google.showcase.v1beta1.ComplianceGroup value) {
       if (groupBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -526,9 +540,7 @@ public Builder setGroup(
       }
       return this;
     }
-    /**
-     * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-     */
+    /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
     public Builder setGroup(
         int index, com.google.showcase.v1beta1.ComplianceGroup.Builder builderForValue) {
       if (groupBuilder_ == null) {
@@ -540,9 +552,7 @@ public Builder setGroup(
       }
       return this;
     }
-    /**
-     * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-     */
+    /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
     public Builder addGroup(com.google.showcase.v1beta1.ComplianceGroup value) {
       if (groupBuilder_ == null) {
         if (value == null) {
@@ -556,11 +566,8 @@ public Builder addGroup(com.google.showcase.v1beta1.ComplianceGroup value) {
       }
       return this;
     }
-    /**
-     * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-     */
-    public Builder addGroup(
-        int index, com.google.showcase.v1beta1.ComplianceGroup value) {
+    /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
+    public Builder addGroup(int index, com.google.showcase.v1beta1.ComplianceGroup value) {
       if (groupBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -573,11 +580,8 @@ public Builder addGroup(
       }
       return this;
     }
-    /**
-     * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-     */
-    public Builder addGroup(
-        com.google.showcase.v1beta1.ComplianceGroup.Builder builderForValue) {
+    /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
+    public Builder addGroup(com.google.showcase.v1beta1.ComplianceGroup.Builder builderForValue) {
       if (groupBuilder_ == null) {
         ensureGroupIsMutable();
         group_.add(builderForValue.build());
@@ -587,9 +591,7 @@ public Builder addGroup(
       }
       return this;
     }
-    /**
-     * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-     */
+    /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
     public Builder addGroup(
         int index, com.google.showcase.v1beta1.ComplianceGroup.Builder builderForValue) {
       if (groupBuilder_ == null) {
@@ -601,24 +603,19 @@ public Builder addGroup(
       }
       return this;
     }
-    /**
-     * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-     */
+    /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
     public Builder addAllGroup(
         java.lang.Iterable values) {
       if (groupBuilder_ == null) {
         ensureGroupIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, group_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, group_);
         onChanged();
       } else {
         groupBuilder_.addAllMessages(values);
       }
       return this;
     }
-    /**
-     * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-     */
+    /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
     public Builder clearGroup() {
       if (groupBuilder_ == null) {
         group_ = java.util.Collections.emptyList();
@@ -629,9 +626,7 @@ public Builder clearGroup() {
       }
       return this;
     }
-    /**
-     * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-     */
+    /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
     public Builder removeGroup(int index) {
       if (groupBuilder_ == null) {
         ensureGroupIsMutable();
@@ -642,73 +637,62 @@ public Builder removeGroup(int index) {
       }
       return this;
     }
-    /**
-     * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-     */
-    public com.google.showcase.v1beta1.ComplianceGroup.Builder getGroupBuilder(
-        int index) {
+    /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
+    public com.google.showcase.v1beta1.ComplianceGroup.Builder getGroupBuilder(int index) {
       return getGroupFieldBuilder().getBuilder(index);
     }
-    /**
-     * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-     */
-    public com.google.showcase.v1beta1.ComplianceGroupOrBuilder getGroupOrBuilder(
-        int index) {
+    /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
+    public com.google.showcase.v1beta1.ComplianceGroupOrBuilder getGroupOrBuilder(int index) {
       if (groupBuilder_ == null) {
-        return group_.get(index);  } else {
+        return group_.get(index);
+      } else {
         return groupBuilder_.getMessageOrBuilder(index);
       }
     }
-    /**
-     * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-     */
-    public java.util.List 
-         getGroupOrBuilderList() {
+    /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
+    public java.util.List
+        getGroupOrBuilderList() {
       if (groupBuilder_ != null) {
         return groupBuilder_.getMessageOrBuilderList();
       } else {
         return java.util.Collections.unmodifiableList(group_);
       }
     }
-    /**
-     * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-     */
+    /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
     public com.google.showcase.v1beta1.ComplianceGroup.Builder addGroupBuilder() {
-      return getGroupFieldBuilder().addBuilder(
-          com.google.showcase.v1beta1.ComplianceGroup.getDefaultInstance());
-    }
-    /**
-     * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-     */
-    public com.google.showcase.v1beta1.ComplianceGroup.Builder addGroupBuilder(
-        int index) {
-      return getGroupFieldBuilder().addBuilder(
-          index, com.google.showcase.v1beta1.ComplianceGroup.getDefaultInstance());
-    }
-    /**
-     * repeated .google.showcase.v1beta1.ComplianceGroup group = 1;
-     */
-    public java.util.List 
-         getGroupBuilderList() {
+      return getGroupFieldBuilder()
+          .addBuilder(com.google.showcase.v1beta1.ComplianceGroup.getDefaultInstance());
+    }
+    /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
+    public com.google.showcase.v1beta1.ComplianceGroup.Builder addGroupBuilder(int index) {
+      return getGroupFieldBuilder()
+          .addBuilder(index, com.google.showcase.v1beta1.ComplianceGroup.getDefaultInstance());
+    }
+    /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
+    public java.util.List
+        getGroupBuilderList() {
       return getGroupFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.showcase.v1beta1.ComplianceGroup, com.google.showcase.v1beta1.ComplianceGroup.Builder, com.google.showcase.v1beta1.ComplianceGroupOrBuilder> 
+            com.google.showcase.v1beta1.ComplianceGroup,
+            com.google.showcase.v1beta1.ComplianceGroup.Builder,
+            com.google.showcase.v1beta1.ComplianceGroupOrBuilder>
         getGroupFieldBuilder() {
       if (groupBuilder_ == null) {
-        groupBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.showcase.v1beta1.ComplianceGroup, com.google.showcase.v1beta1.ComplianceGroup.Builder, com.google.showcase.v1beta1.ComplianceGroupOrBuilder>(
-                group_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        groupBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.showcase.v1beta1.ComplianceGroup,
+                com.google.showcase.v1beta1.ComplianceGroup.Builder,
+                com.google.showcase.v1beta1.ComplianceGroupOrBuilder>(
+                group_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         group_ = null;
       }
       return groupBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -718,12 +702,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ComplianceSuite)
   }
 
   // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ComplianceSuite)
   private static final com.google.showcase.v1beta1.ComplianceSuite DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ComplianceSuite();
   }
@@ -732,27 +716,27 @@ public static com.google.showcase.v1beta1.ComplianceSuite getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ComplianceSuite parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ComplianceSuite parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -767,6 +751,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.showcase.v1beta1.ComplianceSuite getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuiteOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuiteOrBuilder.java
new file mode 100644
index 0000000000..abc2b4807b
--- /dev/null
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuiteOrBuilder.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: schema/google/showcase/v1beta1/compliance.proto
+
+// Protobuf Java Version: 3.25.5
+package com.google.showcase.v1beta1;
+
+public interface ComplianceSuiteOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ComplianceSuite)
+    com.google.protobuf.MessageOrBuilder {
+
+  /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
+  java.util.List getGroupList();
+  /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
+  com.google.showcase.v1beta1.ComplianceGroup getGroup(int index);
+  /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
+  int getGroupCount();
+  /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
+  java.util.List
+      getGroupOrBuilderList();
+  /** repeated .google.showcase.v1beta1.ComplianceGroup group = 1; */
+  com.google.showcase.v1beta1.ComplianceGroupOrBuilder getGroupOrBuilder(int index);
+}
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequest.java
similarity index 70%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequest.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequest.java
index 9a54db1c36..af8c12b230 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequest.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequest.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/messaging.proto
 
@@ -5,6 +20,8 @@
 package com.google.showcase.v1beta1;
 
 /**
+ *
+ *
  * 
  * The request message for the google.showcase.v1beta1.Messaging\Connect
  * method.
@@ -12,107 +29,118 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.ConnectRequest}
  */
-public final class ConnectRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ConnectRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ConnectRequest)
     ConnectRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ConnectRequest.newBuilder() to construct.
   private ConnectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ConnectRequest() {
-  }
+
+  private ConnectRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ConnectRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_ConnectRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_ConnectRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.ConnectRequest.class, com.google.showcase.v1beta1.ConnectRequest.Builder.class);
+            com.google.showcase.v1beta1.ConnectRequest.class,
+            com.google.showcase.v1beta1.ConnectRequest.Builder.class);
   }
 
-  public interface ConnectConfigOrBuilder extends
+  public interface ConnectConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ConnectRequest.ConnectConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The room or profile to follow and create messages for.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
      * The room or profile to follow and create messages for.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); } - /** - * Protobuf type {@code google.showcase.v1beta1.ConnectRequest.ConnectConfig} - */ - public static final class ConnectConfig extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code google.showcase.v1beta1.ConnectRequest.ConnectConfig} */ + public static final class ConnectConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ConnectRequest.ConnectConfig) ConnectConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConnectConfig.newBuilder() to construct. private ConnectConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ConnectConfig() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConnectConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass + .internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_fieldAccessorTable + return com.google.showcase.v1beta1.MessagingOuterClass + .internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.class, com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder.class); + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.class, + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
      * The room or profile to follow and create messages for.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ @java.lang.Override @@ -121,29 +149,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
      * The room or profile to follow and create messages for.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -152,6 +180,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,8 +192,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -188,15 +216,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.ConnectRequest.ConnectConfig)) { return super.equals(obj); } - com.google.showcase.v1beta1.ConnectRequest.ConnectConfig other = (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) obj; + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig other = + (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -216,89 +244,94 @@ public int hashCode() { } public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.showcase.v1beta1.ConnectRequest.ConnectConfig prototype) { + + public static Builder newBuilder( + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -307,36 +340,34 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.ConnectRequest.ConnectConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.ConnectRequest.ConnectConfig} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ConnectRequest.ConnectConfig) com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass + .internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_fieldAccessorTable + return com.google.showcase.v1beta1.MessagingOuterClass + .internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.class, com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder.class); + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.class, + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder.class); } // Construct using com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -346,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass + .internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor; } @java.lang.Override @@ -367,8 +398,11 @@ public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig build() { @java.lang.Override public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig buildPartial() { - com.google.showcase.v1beta1.ConnectRequest.ConnectConfig result = new com.google.showcase.v1beta1.ConnectRequest.ConnectConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.ConnectRequest.ConnectConfig result = + new com.google.showcase.v1beta1.ConnectRequest.ConnectConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -384,38 +418,41 @@ private void buildPartial0(com.google.showcase.v1beta1.ConnectRequest.ConnectCon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) { - return mergeFrom((com.google.showcase.v1beta1.ConnectRequest.ConnectConfig)other); + return mergeFrom((com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) other); } else { super.mergeFrom(other); return this; @@ -423,7 +460,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.ConnectRequest.ConnectConfig other) { - if (other == com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -455,17 +493,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -475,22 +515,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
        * The room or profile to follow and create messages for.
        * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -499,20 +542,21 @@ public java.lang.String getParent() { } } /** + * + * *
        * The room or profile to follow and create messages for.
        * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -520,28 +564,35 @@ public java.lang.String getParent() { } } /** + * + * *
        * The room or profile to follow and create messages for.
        * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The room or profile to follow and create messages for.
        * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearParent() { @@ -551,23 +602,28 @@ public Builder clearParent() { return this; } /** + * + * *
        * The room or profile to follow and create messages for.
        * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -580,12 +636,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ConnectRequest.ConnectConfig) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ConnectRequest.ConnectConfig) private static final com.google.showcase.v1beta1.ConnectRequest.ConnectConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ConnectRequest.ConnectConfig(); } @@ -594,27 +650,28 @@ public static com.google.showcase.v1beta1.ConnectRequest.ConnectConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -629,19 +686,22 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int requestCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object request_; + public enum RequestCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONFIG(1), BLURB(2), REQUEST_NOT_SET(0); private final int value; + private RequestCase(int value) { this.value = value; } @@ -657,31 +717,37 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 1: return CONFIG; - case 2: return BLURB; - case 0: return REQUEST_NOT_SET; - default: return null; + case 1: + return CONFIG; + case 2: + return BLURB; + case 0: + return REQUEST_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public RequestCase - getRequestCase() { - return RequestCase.forNumber( - requestCase_); + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); } public static final int CONFIG_FIELD_NUMBER = 1; /** + * + * *
    * Provides information that specifies how to process subsequent requests.
    * The first `ConnectRequest` message must contain a `config`  message.
    * 
* * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + * * @return Whether the config field is set. */ @java.lang.Override @@ -689,22 +755,27 @@ public boolean hasConfig() { return requestCase_ == 1; } /** + * + * *
    * Provides information that specifies how to process subsequent requests.
    * The first `ConnectRequest` message must contain a `config`  message.
    * 
* * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + * * @return The config. */ @java.lang.Override public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig getConfig() { if (requestCase_ == 1) { - return (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_; + return (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_; } return com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance(); } /** + * + * *
    * Provides information that specifies how to process subsequent requests.
    * The first `ConnectRequest` message must contain a `config`  message.
@@ -715,18 +786,21 @@ public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig getConfig() {
   @java.lang.Override
   public com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder getConfigOrBuilder() {
     if (requestCase_ == 1) {
-       return (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_;
+      return (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_;
     }
     return com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance();
   }
 
   public static final int BLURB_FIELD_NUMBER = 2;
   /**
+   *
+   *
    * 
    * The blurb to be created.
    * 
* * .google.showcase.v1beta1.Blurb blurb = 2; + * * @return Whether the blurb field is set. */ @java.lang.Override @@ -734,21 +808,26 @@ public boolean hasBlurb() { return requestCase_ == 2; } /** + * + * *
    * The blurb to be created.
    * 
* * .google.showcase.v1beta1.Blurb blurb = 2; + * * @return The blurb. */ @java.lang.Override public com.google.showcase.v1beta1.Blurb getBlurb() { if (requestCase_ == 2) { - return (com.google.showcase.v1beta1.Blurb) request_; + return (com.google.showcase.v1beta1.Blurb) request_; } return com.google.showcase.v1beta1.Blurb.getDefaultInstance(); } /** + * + * *
    * The blurb to be created.
    * 
@@ -758,12 +837,13 @@ public com.google.showcase.v1beta1.Blurb getBlurb() { @java.lang.Override public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { if (requestCase_ == 2) { - return (com.google.showcase.v1beta1.Blurb) request_; + return (com.google.showcase.v1beta1.Blurb) request_; } return com.google.showcase.v1beta1.Blurb.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -775,8 +855,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (requestCase_ == 1) { output.writeMessage(1, (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_); } @@ -793,12 +872,14 @@ public int getSerializedSize() { size = 0; if (requestCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_); } if (requestCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.showcase.v1beta1.Blurb) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.showcase.v1beta1.Blurb) request_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -808,22 +889,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.ConnectRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.ConnectRequest other = (com.google.showcase.v1beta1.ConnectRequest) obj; + com.google.showcase.v1beta1.ConnectRequest other = + (com.google.showcase.v1beta1.ConnectRequest) obj; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 1: - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; break; case 2: - if (!getBlurb() - .equals(other.getBlurb())) return false; + if (!getBlurb().equals(other.getBlurb())) return false; break; case 0: default: @@ -856,99 +936,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.ConnectRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.ConnectRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ConnectRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ConnectRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ConnectRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ConnectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ConnectRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ConnectRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ConnectRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.ConnectRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.ConnectRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.ConnectRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ConnectRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ConnectRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.ConnectRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for the google.showcase.v1beta1.Messaging\Connect
    * method.
@@ -956,33 +1041,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.ConnectRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ConnectRequest)
       com.google.showcase.v1beta1.ConnectRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_ConnectRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_ConnectRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.ConnectRequest.class, com.google.showcase.v1beta1.ConnectRequest.Builder.class);
+              com.google.showcase.v1beta1.ConnectRequest.class,
+              com.google.showcase.v1beta1.ConnectRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.ConnectRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -999,9 +1083,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ConnectRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_ConnectRequest_descriptor;
     }
 
     @java.lang.Override
@@ -1020,8 +1104,11 @@ public com.google.showcase.v1beta1.ConnectRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.ConnectRequest buildPartial() {
-      com.google.showcase.v1beta1.ConnectRequest result = new com.google.showcase.v1beta1.ConnectRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.ConnectRequest result =
+          new com.google.showcase.v1beta1.ConnectRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -1034,12 +1121,10 @@ private void buildPartial0(com.google.showcase.v1beta1.ConnectRequest result) {
     private void buildPartialOneofs(com.google.showcase.v1beta1.ConnectRequest result) {
       result.requestCase_ = requestCase_;
       result.request_ = this.request_;
-      if (requestCase_ == 1 &&
-          configBuilder_ != null) {
+      if (requestCase_ == 1 && configBuilder_ != null) {
         result.request_ = configBuilder_.build();
       }
-      if (requestCase_ == 2 &&
-          blurbBuilder_ != null) {
+      if (requestCase_ == 2 && blurbBuilder_ != null) {
         result.request_ = blurbBuilder_.build();
       }
     }
@@ -1048,38 +1133,39 @@ private void buildPartialOneofs(com.google.showcase.v1beta1.ConnectRequest resul
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.ConnectRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.ConnectRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.ConnectRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1089,17 +1175,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.showcase.v1beta1.ConnectRequest other) {
       if (other == com.google.showcase.v1beta1.ConnectRequest.getDefaultInstance()) return this;
       switch (other.getRequestCase()) {
-        case CONFIG: {
-          mergeConfig(other.getConfig());
-          break;
-        }
-        case BLURB: {
-          mergeBlurb(other.getBlurb());
-          break;
-        }
-        case REQUEST_NOT_SET: {
-          break;
-        }
+        case CONFIG:
+          {
+            mergeConfig(other.getConfig());
+            break;
+          }
+        case BLURB:
+          {
+            mergeBlurb(other.getBlurb());
+            break;
+          }
+        case REQUEST_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1127,26 +1216,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              requestCase_ = 1;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getBlurbFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              requestCase_ = 2;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+                requestCase_ = 1;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getBlurbFieldBuilder().getBuilder(), extensionRegistry);
+                requestCase_ = 2;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1156,12 +1244,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int requestCase_ = 0;
     private java.lang.Object request_;
-    public RequestCase
-        getRequestCase() {
-      return RequestCase.forNumber(
-          requestCase_);
+
+    public RequestCase getRequestCase() {
+      return RequestCase.forNumber(requestCase_);
     }
 
     public Builder clearRequest() {
@@ -1174,14 +1262,20 @@ public Builder clearRequest() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.ConnectRequest.ConnectConfig, com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder, com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder> configBuilder_;
+            com.google.showcase.v1beta1.ConnectRequest.ConnectConfig,
+            com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder,
+            com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder>
+        configBuilder_;
     /**
+     *
+     *
      * 
      * Provides information that specifies how to process subsequent requests.
      * The first `ConnectRequest` message must contain a `config`  message.
      * 
* * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + * * @return Whether the config field is set. */ @java.lang.Override @@ -1189,12 +1283,15 @@ public boolean hasConfig() { return requestCase_ == 1; } /** + * + * *
      * Provides information that specifies how to process subsequent requests.
      * The first `ConnectRequest` message must contain a `config`  message.
      * 
* * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + * * @return The config. */ @java.lang.Override @@ -1212,6 +1309,8 @@ public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig getConfig() { } } /** + * + * *
      * Provides information that specifies how to process subsequent requests.
      * The first `ConnectRequest` message must contain a `config`  message.
@@ -1233,6 +1332,8 @@ public Builder setConfig(com.google.showcase.v1beta1.ConnectRequest.ConnectConfi
       return this;
     }
     /**
+     *
+     *
      * 
      * Provides information that specifies how to process subsequent requests.
      * The first `ConnectRequest` message must contain a `config`  message.
@@ -1252,6 +1353,8 @@ public Builder setConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Provides information that specifies how to process subsequent requests.
      * The first `ConnectRequest` message must contain a `config`  message.
@@ -1261,10 +1364,14 @@ public Builder setConfig(
      */
     public Builder mergeConfig(com.google.showcase.v1beta1.ConnectRequest.ConnectConfig value) {
       if (configBuilder_ == null) {
-        if (requestCase_ == 1 &&
-            request_ != com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance()) {
-          request_ = com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.newBuilder((com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_)
-              .mergeFrom(value).buildPartial();
+        if (requestCase_ == 1
+            && request_
+                != com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance()) {
+          request_ =
+              com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.newBuilder(
+                      (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           request_ = value;
         }
@@ -1280,6 +1387,8 @@ public Builder mergeConfig(com.google.showcase.v1beta1.ConnectRequest.ConnectCon
       return this;
     }
     /**
+     *
+     *
      * 
      * Provides information that specifies how to process subsequent requests.
      * The first `ConnectRequest` message must contain a `config`  message.
@@ -1304,6 +1413,8 @@ public Builder clearConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Provides information that specifies how to process subsequent requests.
      * The first `ConnectRequest` message must contain a `config`  message.
@@ -1315,6 +1426,8 @@ public com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder getConfi
       return getConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Provides information that specifies how to process subsequent requests.
      * The first `ConnectRequest` message must contain a `config`  message.
@@ -1334,6 +1447,8 @@ public com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder getConf
       }
     }
     /**
+     *
+     *
      * 
      * Provides information that specifies how to process subsequent requests.
      * The first `ConnectRequest` message must contain a `config`  message.
@@ -1342,14 +1457,19 @@ public com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder getConf
      * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.ConnectRequest.ConnectConfig, com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder, com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder> 
+            com.google.showcase.v1beta1.ConnectRequest.ConnectConfig,
+            com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder,
+            com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder>
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
         if (!(requestCase_ == 1)) {
           request_ = com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.getDefaultInstance();
         }
-        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.showcase.v1beta1.ConnectRequest.ConnectConfig, com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder, com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder>(
+        configBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.showcase.v1beta1.ConnectRequest.ConnectConfig,
+                com.google.showcase.v1beta1.ConnectRequest.ConnectConfig.Builder,
+                com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder>(
                 (com.google.showcase.v1beta1.ConnectRequest.ConnectConfig) request_,
                 getParentForChildren(),
                 isClean());
@@ -1361,13 +1481,19 @@ public com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder getConf
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> blurbBuilder_;
+            com.google.showcase.v1beta1.Blurb,
+            com.google.showcase.v1beta1.Blurb.Builder,
+            com.google.showcase.v1beta1.BlurbOrBuilder>
+        blurbBuilder_;
     /**
+     *
+     *
      * 
      * The blurb to be created.
      * 
* * .google.showcase.v1beta1.Blurb blurb = 2; + * * @return Whether the blurb field is set. */ @java.lang.Override @@ -1375,11 +1501,14 @@ public boolean hasBlurb() { return requestCase_ == 2; } /** + * + * *
      * The blurb to be created.
      * 
* * .google.showcase.v1beta1.Blurb blurb = 2; + * * @return The blurb. */ @java.lang.Override @@ -1397,6 +1526,8 @@ public com.google.showcase.v1beta1.Blurb getBlurb() { } } /** + * + * *
      * The blurb to be created.
      * 
@@ -1417,14 +1548,15 @@ public Builder setBlurb(com.google.showcase.v1beta1.Blurb value) { return this; } /** + * + * *
      * The blurb to be created.
      * 
* * .google.showcase.v1beta1.Blurb blurb = 2; */ - public Builder setBlurb( - com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + public Builder setBlurb(com.google.showcase.v1beta1.Blurb.Builder builderForValue) { if (blurbBuilder_ == null) { request_ = builderForValue.build(); onChanged(); @@ -1435,6 +1567,8 @@ public Builder setBlurb( return this; } /** + * + * *
      * The blurb to be created.
      * 
@@ -1443,10 +1577,13 @@ public Builder setBlurb( */ public Builder mergeBlurb(com.google.showcase.v1beta1.Blurb value) { if (blurbBuilder_ == null) { - if (requestCase_ == 2 && - request_ != com.google.showcase.v1beta1.Blurb.getDefaultInstance()) { - request_ = com.google.showcase.v1beta1.Blurb.newBuilder((com.google.showcase.v1beta1.Blurb) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 2 + && request_ != com.google.showcase.v1beta1.Blurb.getDefaultInstance()) { + request_ = + com.google.showcase.v1beta1.Blurb.newBuilder( + (com.google.showcase.v1beta1.Blurb) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -1462,6 +1599,8 @@ public Builder mergeBlurb(com.google.showcase.v1beta1.Blurb value) { return this; } /** + * + * *
      * The blurb to be created.
      * 
@@ -1485,6 +1624,8 @@ public Builder clearBlurb() { return this; } /** + * + * *
      * The blurb to be created.
      * 
@@ -1495,6 +1636,8 @@ public com.google.showcase.v1beta1.Blurb.Builder getBlurbBuilder() { return getBlurbFieldBuilder().getBuilder(); } /** + * + * *
      * The blurb to be created.
      * 
@@ -1513,6 +1656,8 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { } } /** + * + * *
      * The blurb to be created.
      * 
@@ -1520,26 +1665,29 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { * .google.showcase.v1beta1.Blurb blurb = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> + com.google.showcase.v1beta1.Blurb, + com.google.showcase.v1beta1.Blurb.Builder, + com.google.showcase.v1beta1.BlurbOrBuilder> getBlurbFieldBuilder() { if (blurbBuilder_ == null) { if (!(requestCase_ == 2)) { request_ = com.google.showcase.v1beta1.Blurb.getDefaultInstance(); } - blurbBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder>( - (com.google.showcase.v1beta1.Blurb) request_, - getParentForChildren(), - isClean()); + blurbBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, + com.google.showcase.v1beta1.Blurb.Builder, + com.google.showcase.v1beta1.BlurbOrBuilder>( + (com.google.showcase.v1beta1.Blurb) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 2; onChanged(); return blurbBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1549,12 +1697,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ConnectRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ConnectRequest) private static final com.google.showcase.v1beta1.ConnectRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ConnectRequest(); } @@ -1563,27 +1711,27 @@ public static com.google.showcase.v1beta1.ConnectRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1598,6 +1746,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.ConnectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequestOrBuilder.java similarity index 74% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequestOrBuilder.java index a275af1763..5716c236ea 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ConnectRequestOrBuilder.java @@ -1,34 +1,58 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface ConnectRequestOrBuilder extends +public interface ConnectRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ConnectRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Provides information that specifies how to process subsequent requests.
    * The first `ConnectRequest` message must contain a `config`  message.
    * 
* * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Provides information that specifies how to process subsequent requests.
    * The first `ConnectRequest` message must contain a `config`  message.
    * 
* * .google.showcase.v1beta1.ConnectRequest.ConnectConfig config = 1; + * * @return The config. */ com.google.showcase.v1beta1.ConnectRequest.ConnectConfig getConfig(); /** + * + * *
    * Provides information that specifies how to process subsequent requests.
    * The first `ConnectRequest` message must contain a `config`  message.
@@ -39,24 +63,32 @@ public interface ConnectRequestOrBuilder extends
   com.google.showcase.v1beta1.ConnectRequest.ConnectConfigOrBuilder getConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * The blurb to be created.
    * 
* * .google.showcase.v1beta1.Blurb blurb = 2; + * * @return Whether the blurb field is set. */ boolean hasBlurb(); /** + * + * *
    * The blurb to be created.
    * 
* * .google.showcase.v1beta1.Blurb blurb = 2; + * * @return The blurb. */ com.google.showcase.v1beta1.Blurb getBlurb(); /** + * + * *
    * The blurb to be created.
    * 
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Continent.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Continent.java similarity index 54% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Continent.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Continent.java index 86c0a9fc9d..362659228f 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Continent.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Continent.java @@ -1,67 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/compliance.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -/** - * Protobuf enum {@code google.showcase.v1beta1.Continent} - */ -public enum Continent - implements com.google.protobuf.ProtocolMessageEnum { - /** - * CONTINENT_UNSPECIFIED = 0; - */ +/** Protobuf enum {@code google.showcase.v1beta1.Continent} */ +public enum Continent implements com.google.protobuf.ProtocolMessageEnum { + /** CONTINENT_UNSPECIFIED = 0; */ CONTINENT_UNSPECIFIED(0), - /** - * AFRICA = 1; - */ + /** AFRICA = 1; */ AFRICA(1), - /** - * AMERICA = 2; - */ + /** AMERICA = 2; */ AMERICA(2), - /** - * ANTARTICA = 3; - */ + /** ANTARTICA = 3; */ ANTARTICA(3), - /** - * AUSTRALIA = 4; - */ + /** AUSTRALIA = 4; */ AUSTRALIA(4), - /** - * EUROPE = 5; - */ + /** EUROPE = 5; */ EUROPE(5), UNRECOGNIZED(-1), ; - /** - * CONTINENT_UNSPECIFIED = 0; - */ + /** CONTINENT_UNSPECIFIED = 0; */ public static final int CONTINENT_UNSPECIFIED_VALUE = 0; - /** - * AFRICA = 1; - */ + /** AFRICA = 1; */ public static final int AFRICA_VALUE = 1; - /** - * AMERICA = 2; - */ + /** AMERICA = 2; */ public static final int AMERICA_VALUE = 2; - /** - * ANTARTICA = 3; - */ + /** ANTARTICA = 3; */ public static final int ANTARTICA_VALUE = 3; - /** - * AUSTRALIA = 4; - */ + /** AUSTRALIA = 4; */ public static final int AUSTRALIA_VALUE = 4; - /** - * EUROPE = 5; - */ + /** EUROPE = 5; */ public static final int EUROPE_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -86,52 +73,55 @@ public static Continent valueOf(int value) { */ public static Continent forNumber(int value) { switch (value) { - case 0: return CONTINENT_UNSPECIFIED; - case 1: return AFRICA; - case 2: return AMERICA; - case 3: return ANTARTICA; - case 4: return AUSTRALIA; - case 5: return EUROPE; - default: return null; + case 0: + return CONTINENT_UNSPECIFIED; + case 1: + return AFRICA; + case 2: + return AMERICA; + case 3: + return ANTARTICA; + case 4: + return AUSTRALIA; + case 5: + return EUROPE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Continent> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Continent findValueByNumber(int number) { - return Continent.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Continent findValueByNumber(int number) { + return Continent.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.showcase.v1beta1.ComplianceOuterClass.getDescriptor().getEnumTypes().get(0); } private static final Continent[] VALUES = values(); - public static Continent valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Continent valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -147,4 +137,3 @@ private Continent(int value) { // @@protoc_insertion_point(enum_scope:google.showcase.v1beta1.Continent) } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequest.java similarity index 66% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequest.java index 70f85a0f61..78ba4a9c46 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request message for the google.showcase.v1beta1.Messaging\CreateBlurb
  * method.
@@ -12,50 +29,58 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.CreateBlurbRequest}
  */
-public final class CreateBlurbRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateBlurbRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.CreateBlurbRequest)
     CreateBlurbRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateBlurbRequest.newBuilder() to construct.
   private CreateBlurbRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateBlurbRequest() {
     parent_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateBlurbRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateBlurbRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_CreateBlurbRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.CreateBlurbRequest.class, com.google.showcase.v1beta1.CreateBlurbRequest.Builder.class);
+            com.google.showcase.v1beta1.CreateBlurbRequest.class,
+            com.google.showcase.v1beta1.CreateBlurbRequest.Builder.class);
   }
 
   private int bitField0_;
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * The resource name of the chat room or user profile that this blurb will
    * be tied to.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -64,30 +89,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * The resource name of the chat room or user profile that this blurb will
    * be tied to.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -98,11 +125,14 @@ public java.lang.String getParent() { public static final int BLURB_FIELD_NUMBER = 2; private com.google.showcase.v1beta1.Blurb blurb_; /** + * + * *
    * The blurb to create.
    * 
* * .google.showcase.v1beta1.Blurb blurb = 2; + * * @return Whether the blurb field is set. */ @java.lang.Override @@ -110,11 +140,14 @@ public boolean hasBlurb() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The blurb to create.
    * 
* * .google.showcase.v1beta1.Blurb blurb = 2; + * * @return The blurb. */ @java.lang.Override @@ -122,6 +155,8 @@ public com.google.showcase.v1beta1.Blurb getBlurb() { return blurb_ == null ? com.google.showcase.v1beta1.Blurb.getDefaultInstance() : blurb_; } /** + * + * *
    * The blurb to create.
    * 
@@ -134,6 +169,7 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -166,8 +201,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBlurb()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBlurb()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,19 +211,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.CreateBlurbRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.CreateBlurbRequest other = (com.google.showcase.v1beta1.CreateBlurbRequest) obj; + com.google.showcase.v1beta1.CreateBlurbRequest other = + (com.google.showcase.v1beta1.CreateBlurbRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasBlurb() != other.hasBlurb()) return false; if (hasBlurb()) { - if (!getBlurb() - .equals(other.getBlurb())) return false; + if (!getBlurb().equals(other.getBlurb())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -213,99 +246,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.CreateBlurbRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.CreateBlurbRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.CreateBlurbRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.CreateBlurbRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.CreateBlurbRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for the google.showcase.v1beta1.Messaging\CreateBlurb
    * method.
@@ -313,21 +351,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.CreateBlurbRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.CreateBlurbRequest)
       com.google.showcase.v1beta1.CreateBlurbRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateBlurbRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_CreateBlurbRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.CreateBlurbRequest.class, com.google.showcase.v1beta1.CreateBlurbRequest.Builder.class);
+              com.google.showcase.v1beta1.CreateBlurbRequest.class,
+              com.google.showcase.v1beta1.CreateBlurbRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.CreateBlurbRequest.newBuilder()
@@ -335,17 +375,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getBlurbFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -360,9 +400,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor;
     }
 
     @java.lang.Override
@@ -381,8 +421,11 @@ public com.google.showcase.v1beta1.CreateBlurbRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.CreateBlurbRequest buildPartial() {
-      com.google.showcase.v1beta1.CreateBlurbRequest result = new com.google.showcase.v1beta1.CreateBlurbRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.CreateBlurbRequest result =
+          new com.google.showcase.v1beta1.CreateBlurbRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -394,9 +437,7 @@ private void buildPartial0(com.google.showcase.v1beta1.CreateBlurbRequest result
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.blurb_ = blurbBuilder_ == null
-            ? blurb_
-            : blurbBuilder_.build();
+        result.blurb_ = blurbBuilder_ == null ? blurb_ : blurbBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
@@ -406,38 +447,39 @@ private void buildPartial0(com.google.showcase.v1beta1.CreateBlurbRequest result
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.CreateBlurbRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.CreateBlurbRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.CreateBlurbRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -480,24 +522,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getBlurbFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getBlurbFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -507,23 +550,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the chat room or user profile that this blurb will
      * be tied to.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -532,21 +580,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * The resource name of the chat room or user profile that this blurb will
      * be tied to.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -554,30 +605,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * The resource name of the chat room or user profile that this blurb will
      * be tied to.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the chat room or user profile that this blurb will
      * be tied to.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -587,18 +649,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * The resource name of the chat room or user profile that this blurb will
      * be tied to.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -608,24 +676,33 @@ public Builder setParentBytes( private com.google.showcase.v1beta1.Blurb blurb_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> blurbBuilder_; + com.google.showcase.v1beta1.Blurb, + com.google.showcase.v1beta1.Blurb.Builder, + com.google.showcase.v1beta1.BlurbOrBuilder> + blurbBuilder_; /** + * + * *
      * The blurb to create.
      * 
* * .google.showcase.v1beta1.Blurb blurb = 2; + * * @return Whether the blurb field is set. */ public boolean hasBlurb() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The blurb to create.
      * 
* * .google.showcase.v1beta1.Blurb blurb = 2; + * * @return The blurb. */ public com.google.showcase.v1beta1.Blurb getBlurb() { @@ -636,6 +713,8 @@ public com.google.showcase.v1beta1.Blurb getBlurb() { } } /** + * + * *
      * The blurb to create.
      * 
@@ -656,14 +735,15 @@ public Builder setBlurb(com.google.showcase.v1beta1.Blurb value) { return this; } /** + * + * *
      * The blurb to create.
      * 
* * .google.showcase.v1beta1.Blurb blurb = 2; */ - public Builder setBlurb( - com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + public Builder setBlurb(com.google.showcase.v1beta1.Blurb.Builder builderForValue) { if (blurbBuilder_ == null) { blurb_ = builderForValue.build(); } else { @@ -674,6 +754,8 @@ public Builder setBlurb( return this; } /** + * + * *
      * The blurb to create.
      * 
@@ -682,9 +764,9 @@ public Builder setBlurb( */ public Builder mergeBlurb(com.google.showcase.v1beta1.Blurb value) { if (blurbBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - blurb_ != null && - blurb_ != com.google.showcase.v1beta1.Blurb.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && blurb_ != null + && blurb_ != com.google.showcase.v1beta1.Blurb.getDefaultInstance()) { getBlurbBuilder().mergeFrom(value); } else { blurb_ = value; @@ -699,6 +781,8 @@ public Builder mergeBlurb(com.google.showcase.v1beta1.Blurb value) { return this; } /** + * + * *
      * The blurb to create.
      * 
@@ -716,6 +800,8 @@ public Builder clearBlurb() { return this; } /** + * + * *
      * The blurb to create.
      * 
@@ -728,6 +814,8 @@ public com.google.showcase.v1beta1.Blurb.Builder getBlurbBuilder() { return getBlurbFieldBuilder().getBuilder(); } /** + * + * *
      * The blurb to create.
      * 
@@ -738,11 +826,12 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { if (blurbBuilder_ != null) { return blurbBuilder_.getMessageOrBuilder(); } else { - return blurb_ == null ? - com.google.showcase.v1beta1.Blurb.getDefaultInstance() : blurb_; + return blurb_ == null ? com.google.showcase.v1beta1.Blurb.getDefaultInstance() : blurb_; } } /** + * + * *
      * The blurb to create.
      * 
@@ -750,21 +839,24 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { * .google.showcase.v1beta1.Blurb blurb = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> + com.google.showcase.v1beta1.Blurb, + com.google.showcase.v1beta1.Blurb.Builder, + com.google.showcase.v1beta1.BlurbOrBuilder> getBlurbFieldBuilder() { if (blurbBuilder_ == null) { - blurbBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder>( - getBlurb(), - getParentForChildren(), - isClean()); + blurbBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, + com.google.showcase.v1beta1.Blurb.Builder, + com.google.showcase.v1beta1.BlurbOrBuilder>( + getBlurb(), getParentForChildren(), isClean()); blurb_ = null; } return blurbBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -774,12 +866,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.CreateBlurbRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.CreateBlurbRequest) private static final com.google.showcase.v1beta1.CreateBlurbRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.CreateBlurbRequest(); } @@ -788,27 +880,27 @@ public static com.google.showcase.v1beta1.CreateBlurbRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBlurbRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBlurbRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -823,6 +915,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.CreateBlurbRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequestOrBuilder.java similarity index 55% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequestOrBuilder.java index 1877dcecbe..11cba2a62f 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateBlurbRequestOrBuilder.java @@ -1,54 +1,87 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface CreateBlurbRequestOrBuilder extends +public interface CreateBlurbRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.CreateBlurbRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the chat room or user profile that this blurb will
    * be tied to.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * The resource name of the chat room or user profile that this blurb will
    * be tied to.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The blurb to create.
    * 
* * .google.showcase.v1beta1.Blurb blurb = 2; + * * @return Whether the blurb field is set. */ boolean hasBlurb(); /** + * + * *
    * The blurb to create.
    * 
* * .google.showcase.v1beta1.Blurb blurb = 2; + * * @return The blurb. */ com.google.showcase.v1beta1.Blurb getBlurb(); /** + * + * *
    * The blurb to create.
    * 
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequest.java similarity index 67% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequest.java index f55cd9b982..dc8a0d2486 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request message for the google.showcase.v1beta1.Messaging\CreateRoom
  * method.
@@ -12,47 +29,51 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.CreateRoomRequest}
  */
-public final class CreateRoomRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateRoomRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.CreateRoomRequest)
     CreateRoomRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateRoomRequest.newBuilder() to construct.
   private CreateRoomRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private CreateRoomRequest() {
-  }
+
+  private CreateRoomRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateRoomRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateRoomRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_CreateRoomRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.CreateRoomRequest.class, com.google.showcase.v1beta1.CreateRoomRequest.Builder.class);
+            com.google.showcase.v1beta1.CreateRoomRequest.class,
+            com.google.showcase.v1beta1.CreateRoomRequest.Builder.class);
   }
 
   private int bitField0_;
   public static final int ROOM_FIELD_NUMBER = 1;
   private com.google.showcase.v1beta1.Room room_;
   /**
+   *
+   *
    * 
    * The room to create.
    * 
* * .google.showcase.v1beta1.Room room = 1; + * * @return Whether the room field is set. */ @java.lang.Override @@ -60,11 +81,14 @@ public boolean hasRoom() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The room to create.
    * 
* * .google.showcase.v1beta1.Room room = 1; + * * @return The room. */ @java.lang.Override @@ -72,6 +96,8 @@ public com.google.showcase.v1beta1.Room getRoom() { return room_ == null ? com.google.showcase.v1beta1.Room.getDefaultInstance() : room_; } /** + * + * *
    * The room to create.
    * 
@@ -84,6 +110,7 @@ public com.google.showcase.v1beta1.RoomOrBuilder getRoomOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -95,8 +122,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRoom()); } @@ -110,8 +136,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRoom()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRoom()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -121,17 +146,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.CreateRoomRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.CreateRoomRequest other = (com.google.showcase.v1beta1.CreateRoomRequest) obj; + com.google.showcase.v1beta1.CreateRoomRequest other = + (com.google.showcase.v1beta1.CreateRoomRequest) obj; if (hasRoom() != other.hasRoom()) return false; if (hasRoom()) { - if (!getRoom() - .equals(other.getRoom())) return false; + if (!getRoom().equals(other.getRoom())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -153,99 +178,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.CreateRoomRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.CreateRoomRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.CreateRoomRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.CreateRoomRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.CreateRoomRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for the google.showcase.v1beta1.Messaging\CreateRoom
    * method.
@@ -253,21 +283,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.CreateRoomRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.CreateRoomRequest)
       com.google.showcase.v1beta1.CreateRoomRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateRoomRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_CreateRoomRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.CreateRoomRequest.class, com.google.showcase.v1beta1.CreateRoomRequest.Builder.class);
+              com.google.showcase.v1beta1.CreateRoomRequest.class,
+              com.google.showcase.v1beta1.CreateRoomRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.CreateRoomRequest.newBuilder()
@@ -275,17 +307,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getRoomFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -299,9 +331,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor;
     }
 
     @java.lang.Override
@@ -320,8 +352,11 @@ public com.google.showcase.v1beta1.CreateRoomRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.CreateRoomRequest buildPartial() {
-      com.google.showcase.v1beta1.CreateRoomRequest result = new com.google.showcase.v1beta1.CreateRoomRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.CreateRoomRequest result =
+          new com.google.showcase.v1beta1.CreateRoomRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -330,9 +365,7 @@ private void buildPartial0(com.google.showcase.v1beta1.CreateRoomRequest result)
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.room_ = roomBuilder_ == null
-            ? room_
-            : roomBuilder_.build();
+        result.room_ = roomBuilder_ == null ? room_ : roomBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
@@ -342,38 +375,39 @@ private void buildPartial0(com.google.showcase.v1beta1.CreateRoomRequest result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.CreateRoomRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.CreateRoomRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.CreateRoomRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -411,19 +445,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getRoomFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getRoomFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -433,28 +467,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.showcase.v1beta1.Room room_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.Room, com.google.showcase.v1beta1.Room.Builder, com.google.showcase.v1beta1.RoomOrBuilder> roomBuilder_;
+            com.google.showcase.v1beta1.Room,
+            com.google.showcase.v1beta1.Room.Builder,
+            com.google.showcase.v1beta1.RoomOrBuilder>
+        roomBuilder_;
     /**
+     *
+     *
      * 
      * The room to create.
      * 
* * .google.showcase.v1beta1.Room room = 1; + * * @return Whether the room field is set. */ public boolean hasRoom() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The room to create.
      * 
* * .google.showcase.v1beta1.Room room = 1; + * * @return The room. */ public com.google.showcase.v1beta1.Room getRoom() { @@ -465,6 +509,8 @@ public com.google.showcase.v1beta1.Room getRoom() { } } /** + * + * *
      * The room to create.
      * 
@@ -485,14 +531,15 @@ public Builder setRoom(com.google.showcase.v1beta1.Room value) { return this; } /** + * + * *
      * The room to create.
      * 
* * .google.showcase.v1beta1.Room room = 1; */ - public Builder setRoom( - com.google.showcase.v1beta1.Room.Builder builderForValue) { + public Builder setRoom(com.google.showcase.v1beta1.Room.Builder builderForValue) { if (roomBuilder_ == null) { room_ = builderForValue.build(); } else { @@ -503,6 +550,8 @@ public Builder setRoom( return this; } /** + * + * *
      * The room to create.
      * 
@@ -511,9 +560,9 @@ public Builder setRoom( */ public Builder mergeRoom(com.google.showcase.v1beta1.Room value) { if (roomBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - room_ != null && - room_ != com.google.showcase.v1beta1.Room.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && room_ != null + && room_ != com.google.showcase.v1beta1.Room.getDefaultInstance()) { getRoomBuilder().mergeFrom(value); } else { room_ = value; @@ -528,6 +577,8 @@ public Builder mergeRoom(com.google.showcase.v1beta1.Room value) { return this; } /** + * + * *
      * The room to create.
      * 
@@ -545,6 +596,8 @@ public Builder clearRoom() { return this; } /** + * + * *
      * The room to create.
      * 
@@ -557,6 +610,8 @@ public com.google.showcase.v1beta1.Room.Builder getRoomBuilder() { return getRoomFieldBuilder().getBuilder(); } /** + * + * *
      * The room to create.
      * 
@@ -567,11 +622,12 @@ public com.google.showcase.v1beta1.RoomOrBuilder getRoomOrBuilder() { if (roomBuilder_ != null) { return roomBuilder_.getMessageOrBuilder(); } else { - return room_ == null ? - com.google.showcase.v1beta1.Room.getDefaultInstance() : room_; + return room_ == null ? com.google.showcase.v1beta1.Room.getDefaultInstance() : room_; } } /** + * + * *
      * The room to create.
      * 
@@ -579,21 +635,24 @@ public com.google.showcase.v1beta1.RoomOrBuilder getRoomOrBuilder() { * .google.showcase.v1beta1.Room room = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Room, com.google.showcase.v1beta1.Room.Builder, com.google.showcase.v1beta1.RoomOrBuilder> + com.google.showcase.v1beta1.Room, + com.google.showcase.v1beta1.Room.Builder, + com.google.showcase.v1beta1.RoomOrBuilder> getRoomFieldBuilder() { if (roomBuilder_ == null) { - roomBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Room, com.google.showcase.v1beta1.Room.Builder, com.google.showcase.v1beta1.RoomOrBuilder>( - getRoom(), - getParentForChildren(), - isClean()); + roomBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Room, + com.google.showcase.v1beta1.Room.Builder, + com.google.showcase.v1beta1.RoomOrBuilder>( + getRoom(), getParentForChildren(), isClean()); room_ = null; } return roomBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -603,12 +662,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.CreateRoomRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.CreateRoomRequest) private static final com.google.showcase.v1beta1.CreateRoomRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.CreateRoomRequest(); } @@ -617,27 +676,27 @@ public static com.google.showcase.v1beta1.CreateRoomRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRoomRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRoomRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -652,6 +711,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.CreateRoomRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequestOrBuilder.java similarity index 56% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequestOrBuilder.java index 6f351703f9..e50e953302 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateRoomRequestOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface CreateRoomRequestOrBuilder extends +public interface CreateRoomRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.CreateRoomRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The room to create.
    * 
* * .google.showcase.v1beta1.Room room = 1; + * * @return Whether the room field is set. */ boolean hasRoom(); /** + * + * *
    * The room to create.
    * 
* * .google.showcase.v1beta1.Room room = 1; + * * @return The room. */ com.google.showcase.v1beta1.Room getRoom(); /** + * + * *
    * The room to create.
    * 
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequest.java similarity index 61% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequest.java index 652a13fd59..db0dd6e8c0 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequest.java @@ -1,42 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/sequence.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -/** - * Protobuf type {@code google.showcase.v1beta1.CreateSequenceRequest} - */ -public final class CreateSequenceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.showcase.v1beta1.CreateSequenceRequest} */ +public final class CreateSequenceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.CreateSequenceRequest) CreateSequenceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateSequenceRequest.newBuilder() to construct. private CreateSequenceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSequenceRequest() { - } + + private CreateSequenceRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSequenceRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateSequenceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_CreateSequenceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateSequenceRequest_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_CreateSequenceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.CreateSequenceRequest.class, com.google.showcase.v1beta1.CreateSequenceRequest.Builder.class); + com.google.showcase.v1beta1.CreateSequenceRequest.class, + com.google.showcase.v1beta1.CreateSequenceRequest.Builder.class); } private int bitField0_; @@ -44,6 +58,7 @@ protected java.lang.Object newInstance( private com.google.showcase.v1beta1.Sequence sequence_; /** * .google.showcase.v1beta1.Sequence sequence = 1; + * * @return Whether the sequence field is set. */ @java.lang.Override @@ -52,21 +67,25 @@ public boolean hasSequence() { } /** * .google.showcase.v1beta1.Sequence sequence = 1; + * * @return The sequence. */ @java.lang.Override public com.google.showcase.v1beta1.Sequence getSequence() { - return sequence_ == null ? com.google.showcase.v1beta1.Sequence.getDefaultInstance() : sequence_; + return sequence_ == null + ? com.google.showcase.v1beta1.Sequence.getDefaultInstance() + : sequence_; } - /** - * .google.showcase.v1beta1.Sequence sequence = 1; - */ + /** .google.showcase.v1beta1.Sequence sequence = 1; */ @java.lang.Override public com.google.showcase.v1beta1.SequenceOrBuilder getSequenceOrBuilder() { - return sequence_ == null ? com.google.showcase.v1beta1.Sequence.getDefaultInstance() : sequence_; + return sequence_ == null + ? com.google.showcase.v1beta1.Sequence.getDefaultInstance() + : sequence_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -78,8 +97,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSequence()); } @@ -93,8 +111,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSequence()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSequence()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -104,17 +121,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.CreateSequenceRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.CreateSequenceRequest other = (com.google.showcase.v1beta1.CreateSequenceRequest) obj; + com.google.showcase.v1beta1.CreateSequenceRequest other = + (com.google.showcase.v1beta1.CreateSequenceRequest) obj; if (hasSequence() != other.hasSequence()) return false; if (hasSequence()) { - if (!getSequence() - .equals(other.getSequence())) return false; + if (!getSequence().equals(other.getSequence())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -137,115 +154,118 @@ public int hashCode() { } public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.CreateSequenceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.CreateSequenceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.CreateSequenceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.CreateSequenceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.CreateSequenceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.CreateSequenceRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.CreateSequenceRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.CreateSequenceRequest) com.google.showcase.v1beta1.CreateSequenceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateSequenceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_CreateSequenceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateSequenceRequest_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_CreateSequenceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.CreateSequenceRequest.class, com.google.showcase.v1beta1.CreateSequenceRequest.Builder.class); + com.google.showcase.v1beta1.CreateSequenceRequest.class, + com.google.showcase.v1beta1.CreateSequenceRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.CreateSequenceRequest.newBuilder() @@ -253,17 +273,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSequenceFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -277,9 +297,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateSequenceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_CreateSequenceRequest_descriptor; } @java.lang.Override @@ -298,8 +318,11 @@ public com.google.showcase.v1beta1.CreateSequenceRequest build() { @java.lang.Override public com.google.showcase.v1beta1.CreateSequenceRequest buildPartial() { - com.google.showcase.v1beta1.CreateSequenceRequest result = new com.google.showcase.v1beta1.CreateSequenceRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.CreateSequenceRequest result = + new com.google.showcase.v1beta1.CreateSequenceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -308,9 +331,7 @@ private void buildPartial0(com.google.showcase.v1beta1.CreateSequenceRequest res int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.sequence_ = sequenceBuilder_ == null - ? sequence_ - : sequenceBuilder_.build(); + result.sequence_ = sequenceBuilder_ == null ? sequence_ : sequenceBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -320,38 +341,39 @@ private void buildPartial0(com.google.showcase.v1beta1.CreateSequenceRequest res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.CreateSequenceRequest) { - return mergeFrom((com.google.showcase.v1beta1.CreateSequenceRequest)other); + return mergeFrom((com.google.showcase.v1beta1.CreateSequenceRequest) other); } else { super.mergeFrom(other); return this; @@ -359,7 +381,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.CreateSequenceRequest other) { - if (other == com.google.showcase.v1beta1.CreateSequenceRequest.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.CreateSequenceRequest.getDefaultInstance()) + return this; if (other.hasSequence()) { mergeSequence(other.getSequence()); } @@ -389,19 +412,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSequenceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getSequenceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -411,13 +434,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.showcase.v1beta1.Sequence sequence_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Sequence, com.google.showcase.v1beta1.Sequence.Builder, com.google.showcase.v1beta1.SequenceOrBuilder> sequenceBuilder_; + com.google.showcase.v1beta1.Sequence, + com.google.showcase.v1beta1.Sequence.Builder, + com.google.showcase.v1beta1.SequenceOrBuilder> + sequenceBuilder_; /** * .google.showcase.v1beta1.Sequence sequence = 1; + * * @return Whether the sequence field is set. */ public boolean hasSequence() { @@ -425,18 +453,19 @@ public boolean hasSequence() { } /** * .google.showcase.v1beta1.Sequence sequence = 1; + * * @return The sequence. */ public com.google.showcase.v1beta1.Sequence getSequence() { if (sequenceBuilder_ == null) { - return sequence_ == null ? com.google.showcase.v1beta1.Sequence.getDefaultInstance() : sequence_; + return sequence_ == null + ? com.google.showcase.v1beta1.Sequence.getDefaultInstance() + : sequence_; } else { return sequenceBuilder_.getMessage(); } } - /** - * .google.showcase.v1beta1.Sequence sequence = 1; - */ + /** .google.showcase.v1beta1.Sequence sequence = 1; */ public Builder setSequence(com.google.showcase.v1beta1.Sequence value) { if (sequenceBuilder_ == null) { if (value == null) { @@ -450,11 +479,8 @@ public Builder setSequence(com.google.showcase.v1beta1.Sequence value) { onChanged(); return this; } - /** - * .google.showcase.v1beta1.Sequence sequence = 1; - */ - public Builder setSequence( - com.google.showcase.v1beta1.Sequence.Builder builderForValue) { + /** .google.showcase.v1beta1.Sequence sequence = 1; */ + public Builder setSequence(com.google.showcase.v1beta1.Sequence.Builder builderForValue) { if (sequenceBuilder_ == null) { sequence_ = builderForValue.build(); } else { @@ -464,14 +490,12 @@ public Builder setSequence( onChanged(); return this; } - /** - * .google.showcase.v1beta1.Sequence sequence = 1; - */ + /** .google.showcase.v1beta1.Sequence sequence = 1; */ public Builder mergeSequence(com.google.showcase.v1beta1.Sequence value) { if (sequenceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - sequence_ != null && - sequence_ != com.google.showcase.v1beta1.Sequence.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && sequence_ != null + && sequence_ != com.google.showcase.v1beta1.Sequence.getDefaultInstance()) { getSequenceBuilder().mergeFrom(value); } else { sequence_ = value; @@ -485,9 +509,7 @@ public Builder mergeSequence(com.google.showcase.v1beta1.Sequence value) { } return this; } - /** - * .google.showcase.v1beta1.Sequence sequence = 1; - */ + /** .google.showcase.v1beta1.Sequence sequence = 1; */ public Builder clearSequence() { bitField0_ = (bitField0_ & ~0x00000001); sequence_ = null; @@ -498,44 +520,42 @@ public Builder clearSequence() { onChanged(); return this; } - /** - * .google.showcase.v1beta1.Sequence sequence = 1; - */ + /** .google.showcase.v1beta1.Sequence sequence = 1; */ public com.google.showcase.v1beta1.Sequence.Builder getSequenceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSequenceFieldBuilder().getBuilder(); } - /** - * .google.showcase.v1beta1.Sequence sequence = 1; - */ + /** .google.showcase.v1beta1.Sequence sequence = 1; */ public com.google.showcase.v1beta1.SequenceOrBuilder getSequenceOrBuilder() { if (sequenceBuilder_ != null) { return sequenceBuilder_.getMessageOrBuilder(); } else { - return sequence_ == null ? - com.google.showcase.v1beta1.Sequence.getDefaultInstance() : sequence_; + return sequence_ == null + ? com.google.showcase.v1beta1.Sequence.getDefaultInstance() + : sequence_; } } - /** - * .google.showcase.v1beta1.Sequence sequence = 1; - */ + /** .google.showcase.v1beta1.Sequence sequence = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Sequence, com.google.showcase.v1beta1.Sequence.Builder, com.google.showcase.v1beta1.SequenceOrBuilder> + com.google.showcase.v1beta1.Sequence, + com.google.showcase.v1beta1.Sequence.Builder, + com.google.showcase.v1beta1.SequenceOrBuilder> getSequenceFieldBuilder() { if (sequenceBuilder_ == null) { - sequenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Sequence, com.google.showcase.v1beta1.Sequence.Builder, com.google.showcase.v1beta1.SequenceOrBuilder>( - getSequence(), - getParentForChildren(), - isClean()); + sequenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Sequence, + com.google.showcase.v1beta1.Sequence.Builder, + com.google.showcase.v1beta1.SequenceOrBuilder>( + getSequence(), getParentForChildren(), isClean()); sequence_ = null; } return sequenceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -545,12 +565,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.CreateSequenceRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.CreateSequenceRequest) private static final com.google.showcase.v1beta1.CreateSequenceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.CreateSequenceRequest(); } @@ -559,27 +579,27 @@ public static com.google.showcase.v1beta1.CreateSequenceRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSequenceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSequenceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,6 +614,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.CreateSequenceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequestOrBuilder.java new file mode 100644 index 0000000000..3679dba4aa --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequestOrBuilder.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface CreateSequenceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.CreateSequenceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.showcase.v1beta1.Sequence sequence = 1; + * + * @return Whether the sequence field is set. + */ + boolean hasSequence(); + /** + * .google.showcase.v1beta1.Sequence sequence = 1; + * + * @return The sequence. + */ + com.google.showcase.v1beta1.Sequence getSequence(); + /** .google.showcase.v1beta1.Sequence sequence = 1; */ + com.google.showcase.v1beta1.SequenceOrBuilder getSequenceOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequest.java similarity index 67% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequest.java index 533857888d..63a4e2c7b4 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto @@ -5,48 +20,53 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request for the CreateSession method.
  * 
* * Protobuf type {@code google.showcase.v1beta1.CreateSessionRequest} */ -public final class CreateSessionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateSessionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.CreateSessionRequest) CreateSessionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateSessionRequest.newBuilder() to construct. private CreateSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSessionRequest() { - } + + private CreateSessionRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSessionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_CreateSessionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_CreateSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_CreateSessionRequest_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_CreateSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.CreateSessionRequest.class, com.google.showcase.v1beta1.CreateSessionRequest.Builder.class); + com.google.showcase.v1beta1.CreateSessionRequest.class, + com.google.showcase.v1beta1.CreateSessionRequest.Builder.class); } private int bitField0_; public static final int SESSION_FIELD_NUMBER = 1; private com.google.showcase.v1beta1.Session session_; /** + * + * *
    * The session to be created.
    * Sessions are immutable once they are created (although they can
@@ -54,6 +74,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.showcase.v1beta1.Session session = 1; + * * @return Whether the session field is set. */ @java.lang.Override @@ -61,6 +82,8 @@ public boolean hasSession() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The session to be created.
    * Sessions are immutable once they are created (although they can
@@ -68,6 +91,7 @@ public boolean hasSession() {
    * 
* * .google.showcase.v1beta1.Session session = 1; + * * @return The session. */ @java.lang.Override @@ -75,6 +99,8 @@ public com.google.showcase.v1beta1.Session getSession() { return session_ == null ? com.google.showcase.v1beta1.Session.getDefaultInstance() : session_; } /** + * + * *
    * The session to be created.
    * Sessions are immutable once they are created (although they can
@@ -89,6 +115,7 @@ public com.google.showcase.v1beta1.SessionOrBuilder getSessionOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -100,8 +127,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(1, getSession());
     }
@@ -115,8 +141,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getSession());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSession());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -126,17 +151,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.showcase.v1beta1.CreateSessionRequest)) {
       return super.equals(obj);
     }
-    com.google.showcase.v1beta1.CreateSessionRequest other = (com.google.showcase.v1beta1.CreateSessionRequest) obj;
+    com.google.showcase.v1beta1.CreateSessionRequest other =
+        (com.google.showcase.v1beta1.CreateSessionRequest) obj;
 
     if (hasSession() != other.hasSession()) return false;
     if (hasSession()) {
-      if (!getSession()
-          .equals(other.getSession())) return false;
+      if (!getSession().equals(other.getSession())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -158,120 +183,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.showcase.v1beta1.CreateSessionRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.showcase.v1beta1.CreateSessionRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.showcase.v1beta1.CreateSessionRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.CreateSessionRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.showcase.v1beta1.CreateSessionRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The request for the CreateSession method.
    * 
* * Protobuf type {@code google.showcase.v1beta1.CreateSessionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.CreateSessionRequest) com.google.showcase.v1beta1.CreateSessionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_CreateSessionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_CreateSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_CreateSessionRequest_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_CreateSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.CreateSessionRequest.class, com.google.showcase.v1beta1.CreateSessionRequest.Builder.class); + com.google.showcase.v1beta1.CreateSessionRequest.class, + com.google.showcase.v1beta1.CreateSessionRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.CreateSessionRequest.newBuilder() @@ -279,17 +311,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSessionFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -303,9 +335,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_CreateSessionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_CreateSessionRequest_descriptor; } @java.lang.Override @@ -324,8 +356,11 @@ public com.google.showcase.v1beta1.CreateSessionRequest build() { @java.lang.Override public com.google.showcase.v1beta1.CreateSessionRequest buildPartial() { - com.google.showcase.v1beta1.CreateSessionRequest result = new com.google.showcase.v1beta1.CreateSessionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.CreateSessionRequest result = + new com.google.showcase.v1beta1.CreateSessionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -334,9 +369,7 @@ private void buildPartial0(com.google.showcase.v1beta1.CreateSessionRequest resu int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.session_ = sessionBuilder_ == null - ? session_ - : sessionBuilder_.build(); + result.session_ = sessionBuilder_ == null ? session_ : sessionBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -346,38 +379,39 @@ private void buildPartial0(com.google.showcase.v1beta1.CreateSessionRequest resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.CreateSessionRequest) { - return mergeFrom((com.google.showcase.v1beta1.CreateSessionRequest)other); + return mergeFrom((com.google.showcase.v1beta1.CreateSessionRequest) other); } else { super.mergeFrom(other); return this; @@ -385,7 +419,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.CreateSessionRequest other) { - if (other == com.google.showcase.v1beta1.CreateSessionRequest.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.CreateSessionRequest.getDefaultInstance()) + return this; if (other.hasSession()) { mergeSession(other.getSession()); } @@ -415,19 +450,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSessionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getSessionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -437,12 +472,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.showcase.v1beta1.Session session_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Session, com.google.showcase.v1beta1.Session.Builder, com.google.showcase.v1beta1.SessionOrBuilder> sessionBuilder_; + com.google.showcase.v1beta1.Session, + com.google.showcase.v1beta1.Session.Builder, + com.google.showcase.v1beta1.SessionOrBuilder> + sessionBuilder_; /** + * + * *
      * The session to be created.
      * Sessions are immutable once they are created (although they can
@@ -450,12 +491,15 @@ public Builder mergeFrom(
      * 
* * .google.showcase.v1beta1.Session session = 1; + * * @return Whether the session field is set. */ public boolean hasSession() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The session to be created.
      * Sessions are immutable once they are created (although they can
@@ -463,16 +507,21 @@ public boolean hasSession() {
      * 
* * .google.showcase.v1beta1.Session session = 1; + * * @return The session. */ public com.google.showcase.v1beta1.Session getSession() { if (sessionBuilder_ == null) { - return session_ == null ? com.google.showcase.v1beta1.Session.getDefaultInstance() : session_; + return session_ == null + ? com.google.showcase.v1beta1.Session.getDefaultInstance() + : session_; } else { return sessionBuilder_.getMessage(); } } /** + * + * *
      * The session to be created.
      * Sessions are immutable once they are created (although they can
@@ -495,6 +544,8 @@ public Builder setSession(com.google.showcase.v1beta1.Session value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The session to be created.
      * Sessions are immutable once they are created (although they can
@@ -503,8 +554,7 @@ public Builder setSession(com.google.showcase.v1beta1.Session value) {
      *
      * .google.showcase.v1beta1.Session session = 1;
      */
-    public Builder setSession(
-        com.google.showcase.v1beta1.Session.Builder builderForValue) {
+    public Builder setSession(com.google.showcase.v1beta1.Session.Builder builderForValue) {
       if (sessionBuilder_ == null) {
         session_ = builderForValue.build();
       } else {
@@ -515,6 +565,8 @@ public Builder setSession(
       return this;
     }
     /**
+     *
+     *
      * 
      * The session to be created.
      * Sessions are immutable once they are created (although they can
@@ -525,9 +577,9 @@ public Builder setSession(
      */
     public Builder mergeSession(com.google.showcase.v1beta1.Session value) {
       if (sessionBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          session_ != null &&
-          session_ != com.google.showcase.v1beta1.Session.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && session_ != null
+            && session_ != com.google.showcase.v1beta1.Session.getDefaultInstance()) {
           getSessionBuilder().mergeFrom(value);
         } else {
           session_ = value;
@@ -542,6 +594,8 @@ public Builder mergeSession(com.google.showcase.v1beta1.Session value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The session to be created.
      * Sessions are immutable once they are created (although they can
@@ -561,6 +615,8 @@ public Builder clearSession() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The session to be created.
      * Sessions are immutable once they are created (although they can
@@ -575,6 +631,8 @@ public com.google.showcase.v1beta1.Session.Builder getSessionBuilder() {
       return getSessionFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The session to be created.
      * Sessions are immutable once they are created (although they can
@@ -587,11 +645,14 @@ public com.google.showcase.v1beta1.SessionOrBuilder getSessionOrBuilder() {
       if (sessionBuilder_ != null) {
         return sessionBuilder_.getMessageOrBuilder();
       } else {
-        return session_ == null ?
-            com.google.showcase.v1beta1.Session.getDefaultInstance() : session_;
+        return session_ == null
+            ? com.google.showcase.v1beta1.Session.getDefaultInstance()
+            : session_;
       }
     }
     /**
+     *
+     *
      * 
      * The session to be created.
      * Sessions are immutable once they are created (although they can
@@ -601,21 +662,24 @@ public com.google.showcase.v1beta1.SessionOrBuilder getSessionOrBuilder() {
      * .google.showcase.v1beta1.Session session = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.Session, com.google.showcase.v1beta1.Session.Builder, com.google.showcase.v1beta1.SessionOrBuilder> 
+            com.google.showcase.v1beta1.Session,
+            com.google.showcase.v1beta1.Session.Builder,
+            com.google.showcase.v1beta1.SessionOrBuilder>
         getSessionFieldBuilder() {
       if (sessionBuilder_ == null) {
-        sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.showcase.v1beta1.Session, com.google.showcase.v1beta1.Session.Builder, com.google.showcase.v1beta1.SessionOrBuilder>(
-                getSession(),
-                getParentForChildren(),
-                isClean());
+        sessionBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.showcase.v1beta1.Session,
+                com.google.showcase.v1beta1.Session.Builder,
+                com.google.showcase.v1beta1.SessionOrBuilder>(
+                getSession(), getParentForChildren(), isClean());
         session_ = null;
       }
       return sessionBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -625,12 +689,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.CreateSessionRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.CreateSessionRequest)
   private static final com.google.showcase.v1beta1.CreateSessionRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.showcase.v1beta1.CreateSessionRequest();
   }
@@ -639,27 +703,27 @@ public static com.google.showcase.v1beta1.CreateSessionRequest getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public CreateSessionRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public CreateSessionRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -674,6 +738,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.showcase.v1beta1.CreateSessionRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequestOrBuilder.java
similarity index 63%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequestOrBuilder.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequestOrBuilder.java
index 471b9eb22d..d425050b3d 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequestOrBuilder.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSessionRequestOrBuilder.java
@@ -1,14 +1,32 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/testing.proto
 
 // Protobuf Java Version: 3.25.5
 package com.google.showcase.v1beta1;
 
-public interface CreateSessionRequestOrBuilder extends
+public interface CreateSessionRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.CreateSessionRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The session to be created.
    * Sessions are immutable once they are created (although they can
@@ -16,10 +34,13 @@ public interface CreateSessionRequestOrBuilder extends
    * 
* * .google.showcase.v1beta1.Session session = 1; + * * @return Whether the session field is set. */ boolean hasSession(); /** + * + * *
    * The session to be created.
    * Sessions are immutable once they are created (although they can
@@ -27,10 +48,13 @@ public interface CreateSessionRequestOrBuilder extends
    * 
* * .google.showcase.v1beta1.Session session = 1; + * * @return The session. */ com.google.showcase.v1beta1.Session getSession(); /** + * + * *
    * The session to be created.
    * Sessions are immutable once they are created (although they can
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequest.java
similarity index 60%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequest.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequest.java
index e6c7e22b17..40886fcd9d 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequest.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequest.java
@@ -1,42 +1,57 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/sequence.proto
 
 // Protobuf Java Version: 3.25.5
 package com.google.showcase.v1beta1;
 
-/**
- * Protobuf type {@code google.showcase.v1beta1.CreateStreamingSequenceRequest}
- */
-public final class CreateStreamingSequenceRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+/** Protobuf type {@code google.showcase.v1beta1.CreateStreamingSequenceRequest} */
+public final class CreateStreamingSequenceRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.CreateStreamingSequenceRequest)
     CreateStreamingSequenceRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateStreamingSequenceRequest.newBuilder() to construct.
-  private CreateStreamingSequenceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private CreateStreamingSequenceRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private CreateStreamingSequenceRequest() {
-  }
+
+  private CreateStreamingSequenceRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateStreamingSequenceRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.SequenceOuterClass
+        .internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.SequenceOuterClass
+        .internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.CreateStreamingSequenceRequest.class, com.google.showcase.v1beta1.CreateStreamingSequenceRequest.Builder.class);
+            com.google.showcase.v1beta1.CreateStreamingSequenceRequest.class,
+            com.google.showcase.v1beta1.CreateStreamingSequenceRequest.Builder.class);
   }
 
   private int bitField0_;
@@ -44,6 +59,7 @@ protected java.lang.Object newInstance(
   private com.google.showcase.v1beta1.StreamingSequence streamingSequence_;
   /**
    * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+   *
    * @return Whether the streamingSequence field is set.
    */
   @java.lang.Override
@@ -52,21 +68,25 @@ public boolean hasStreamingSequence() {
   }
   /**
    * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+   *
    * @return The streamingSequence.
    */
   @java.lang.Override
   public com.google.showcase.v1beta1.StreamingSequence getStreamingSequence() {
-    return streamingSequence_ == null ? com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance() : streamingSequence_;
+    return streamingSequence_ == null
+        ? com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance()
+        : streamingSequence_;
   }
-  /**
-   * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
-   */
+  /** .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; */
   @java.lang.Override
   public com.google.showcase.v1beta1.StreamingSequenceOrBuilder getStreamingSequenceOrBuilder() {
-    return streamingSequence_ == null ? com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance() : streamingSequence_;
+    return streamingSequence_ == null
+        ? com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance()
+        : streamingSequence_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -78,8 +98,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(1, getStreamingSequence());
     }
@@ -93,8 +112,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getStreamingSequence());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStreamingSequence());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -104,17 +122,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.showcase.v1beta1.CreateStreamingSequenceRequest)) {
       return super.equals(obj);
     }
-    com.google.showcase.v1beta1.CreateStreamingSequenceRequest other = (com.google.showcase.v1beta1.CreateStreamingSequenceRequest) obj;
+    com.google.showcase.v1beta1.CreateStreamingSequenceRequest other =
+        (com.google.showcase.v1beta1.CreateStreamingSequenceRequest) obj;
 
     if (hasStreamingSequence() != other.hasStreamingSequence()) return false;
     if (hasStreamingSequence()) {
-      if (!getStreamingSequence()
-          .equals(other.getStreamingSequence())) return false;
+      if (!getStreamingSequence().equals(other.getStreamingSequence())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -137,115 +155,119 @@ public int hashCode() {
   }
 
   public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.showcase.v1beta1.CreateStreamingSequenceRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.showcase.v1beta1.CreateStreamingSequenceRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
-  /**
-   * Protobuf type {@code google.showcase.v1beta1.CreateStreamingSequenceRequest}
-   */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  /** Protobuf type {@code google.showcase.v1beta1.CreateStreamingSequenceRequest} */
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.CreateStreamingSequenceRequest)
       com.google.showcase.v1beta1.CreateStreamingSequenceRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.SequenceOuterClass
+          .internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.SequenceOuterClass
+          .internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.CreateStreamingSequenceRequest.class, com.google.showcase.v1beta1.CreateStreamingSequenceRequest.Builder.class);
+              com.google.showcase.v1beta1.CreateStreamingSequenceRequest.class,
+              com.google.showcase.v1beta1.CreateStreamingSequenceRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.CreateStreamingSequenceRequest.newBuilder()
@@ -253,17 +275,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getStreamingSequenceFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -277,9 +299,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.SequenceOuterClass
+          .internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_descriptor;
     }
 
     @java.lang.Override
@@ -298,8 +320,11 @@ public com.google.showcase.v1beta1.CreateStreamingSequenceRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.CreateStreamingSequenceRequest buildPartial() {
-      com.google.showcase.v1beta1.CreateStreamingSequenceRequest result = new com.google.showcase.v1beta1.CreateStreamingSequenceRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.CreateStreamingSequenceRequest result =
+          new com.google.showcase.v1beta1.CreateStreamingSequenceRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -308,9 +333,10 @@ private void buildPartial0(com.google.showcase.v1beta1.CreateStreamingSequenceRe
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.streamingSequence_ = streamingSequenceBuilder_ == null
-            ? streamingSequence_
-            : streamingSequenceBuilder_.build();
+        result.streamingSequence_ =
+            streamingSequenceBuilder_ == null
+                ? streamingSequence_
+                : streamingSequenceBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
@@ -320,38 +346,39 @@ private void buildPartial0(com.google.showcase.v1beta1.CreateStreamingSequenceRe
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.CreateStreamingSequenceRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.CreateStreamingSequenceRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.CreateStreamingSequenceRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -359,7 +386,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.showcase.v1beta1.CreateStreamingSequenceRequest other) {
-      if (other == com.google.showcase.v1beta1.CreateStreamingSequenceRequest.getDefaultInstance()) return this;
+      if (other == com.google.showcase.v1beta1.CreateStreamingSequenceRequest.getDefaultInstance())
+        return this;
       if (other.hasStreamingSequence()) {
         mergeStreamingSequence(other.getStreamingSequence());
       }
@@ -389,19 +417,20 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getStreamingSequenceFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(
+                    getStreamingSequenceFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -411,13 +440,18 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.showcase.v1beta1.StreamingSequence streamingSequence_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.StreamingSequence, com.google.showcase.v1beta1.StreamingSequence.Builder, com.google.showcase.v1beta1.StreamingSequenceOrBuilder> streamingSequenceBuilder_;
+            com.google.showcase.v1beta1.StreamingSequence,
+            com.google.showcase.v1beta1.StreamingSequence.Builder,
+            com.google.showcase.v1beta1.StreamingSequenceOrBuilder>
+        streamingSequenceBuilder_;
     /**
      * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+     *
      * @return Whether the streamingSequence field is set.
      */
     public boolean hasStreamingSequence() {
@@ -425,18 +459,19 @@ public boolean hasStreamingSequence() {
     }
     /**
      * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+     *
      * @return The streamingSequence.
      */
     public com.google.showcase.v1beta1.StreamingSequence getStreamingSequence() {
       if (streamingSequenceBuilder_ == null) {
-        return streamingSequence_ == null ? com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance() : streamingSequence_;
+        return streamingSequence_ == null
+            ? com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance()
+            : streamingSequence_;
       } else {
         return streamingSequenceBuilder_.getMessage();
       }
     }
-    /**
-     * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
-     */
+    /** .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; */
     public Builder setStreamingSequence(com.google.showcase.v1beta1.StreamingSequence value) {
       if (streamingSequenceBuilder_ == null) {
         if (value == null) {
@@ -450,9 +485,7 @@ public Builder setStreamingSequence(com.google.showcase.v1beta1.StreamingSequenc
       onChanged();
       return this;
     }
-    /**
-     * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
-     */
+    /** .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; */
     public Builder setStreamingSequence(
         com.google.showcase.v1beta1.StreamingSequence.Builder builderForValue) {
       if (streamingSequenceBuilder_ == null) {
@@ -464,14 +497,13 @@ public Builder setStreamingSequence(
       onChanged();
       return this;
     }
-    /**
-     * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
-     */
+    /** .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; */
     public Builder mergeStreamingSequence(com.google.showcase.v1beta1.StreamingSequence value) {
       if (streamingSequenceBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          streamingSequence_ != null &&
-          streamingSequence_ != com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && streamingSequence_ != null
+            && streamingSequence_
+                != com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance()) {
           getStreamingSequenceBuilder().mergeFrom(value);
         } else {
           streamingSequence_ = value;
@@ -485,9 +517,7 @@ public Builder mergeStreamingSequence(com.google.showcase.v1beta1.StreamingSeque
       }
       return this;
     }
-    /**
-     * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
-     */
+    /** .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; */
     public Builder clearStreamingSequence() {
       bitField0_ = (bitField0_ & ~0x00000001);
       streamingSequence_ = null;
@@ -498,44 +528,42 @@ public Builder clearStreamingSequence() {
       onChanged();
       return this;
     }
-    /**
-     * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
-     */
+    /** .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; */
     public com.google.showcase.v1beta1.StreamingSequence.Builder getStreamingSequenceBuilder() {
       bitField0_ |= 0x00000001;
       onChanged();
       return getStreamingSequenceFieldBuilder().getBuilder();
     }
-    /**
-     * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
-     */
+    /** .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; */
     public com.google.showcase.v1beta1.StreamingSequenceOrBuilder getStreamingSequenceOrBuilder() {
       if (streamingSequenceBuilder_ != null) {
         return streamingSequenceBuilder_.getMessageOrBuilder();
       } else {
-        return streamingSequence_ == null ?
-            com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance() : streamingSequence_;
+        return streamingSequence_ == null
+            ? com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance()
+            : streamingSequence_;
       }
     }
-    /**
-     * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
-     */
+    /** .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.StreamingSequence, com.google.showcase.v1beta1.StreamingSequence.Builder, com.google.showcase.v1beta1.StreamingSequenceOrBuilder> 
+            com.google.showcase.v1beta1.StreamingSequence,
+            com.google.showcase.v1beta1.StreamingSequence.Builder,
+            com.google.showcase.v1beta1.StreamingSequenceOrBuilder>
         getStreamingSequenceFieldBuilder() {
       if (streamingSequenceBuilder_ == null) {
-        streamingSequenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.showcase.v1beta1.StreamingSequence, com.google.showcase.v1beta1.StreamingSequence.Builder, com.google.showcase.v1beta1.StreamingSequenceOrBuilder>(
-                getStreamingSequence(),
-                getParentForChildren(),
-                isClean());
+        streamingSequenceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.showcase.v1beta1.StreamingSequence,
+                com.google.showcase.v1beta1.StreamingSequence.Builder,
+                com.google.showcase.v1beta1.StreamingSequenceOrBuilder>(
+                getStreamingSequence(), getParentForChildren(), isClean());
         streamingSequence_ = null;
       }
       return streamingSequenceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -545,12 +573,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.CreateStreamingSequenceRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.CreateStreamingSequenceRequest)
   private static final com.google.showcase.v1beta1.CreateStreamingSequenceRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.showcase.v1beta1.CreateStreamingSequenceRequest();
   }
@@ -559,27 +587,27 @@ public static com.google.showcase.v1beta1.CreateStreamingSequenceRequest getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public CreateStreamingSequenceRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public CreateStreamingSequenceRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -594,6 +622,4 @@ public com.google.protobuf.Parser getParserForTy
   public com.google.showcase.v1beta1.CreateStreamingSequenceRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequestOrBuilder.java
similarity index 51%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequestOrBuilder.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequestOrBuilder.java
index 213e7c4537..49f4268afc 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequestOrBuilder.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateStreamingSequenceRequestOrBuilder.java
@@ -1,25 +1,41 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/sequence.proto
 
 // Protobuf Java Version: 3.25.5
 package com.google.showcase.v1beta1;
 
-public interface CreateStreamingSequenceRequestOrBuilder extends
+public interface CreateStreamingSequenceRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.CreateStreamingSequenceRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
    * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+   *
    * @return Whether the streamingSequence field is set.
    */
   boolean hasStreamingSequence();
   /**
    * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
+   *
    * @return The streamingSequence.
    */
   com.google.showcase.v1beta1.StreamingSequence getStreamingSequence();
-  /**
-   * .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1;
-   */
+  /** .google.showcase.v1beta1.StreamingSequence streaming_sequence = 1; */
   com.google.showcase.v1beta1.StreamingSequenceOrBuilder getStreamingSequenceOrBuilder();
 }
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequest.java
similarity index 67%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequest.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequest.java
index 196e103444..5caa705ecb 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequest.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequest.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/identity.proto
 
@@ -5,6 +20,8 @@
 package com.google.showcase.v1beta1;
 
 /**
+ *
+ *
  * 
  * The request message for the google.showcase.v1beta1.Identity\CreateUser
  * method.
@@ -12,47 +29,51 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.CreateUserRequest}
  */
-public final class CreateUserRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateUserRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.CreateUserRequest)
     CreateUserRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateUserRequest.newBuilder() to construct.
   private CreateUserRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private CreateUserRequest() {
-  }
+
+  private CreateUserRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateUserRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.IdentityOuterClass
+        .internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_CreateUserRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.IdentityOuterClass
+        .internal_static_google_showcase_v1beta1_CreateUserRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.CreateUserRequest.class, com.google.showcase.v1beta1.CreateUserRequest.Builder.class);
+            com.google.showcase.v1beta1.CreateUserRequest.class,
+            com.google.showcase.v1beta1.CreateUserRequest.Builder.class);
   }
 
   private int bitField0_;
   public static final int USER_FIELD_NUMBER = 1;
   private com.google.showcase.v1beta1.User user_;
   /**
+   *
+   *
    * 
    * The user to create.
    * 
* * .google.showcase.v1beta1.User user = 1; + * * @return Whether the user field is set. */ @java.lang.Override @@ -60,11 +81,14 @@ public boolean hasUser() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The user to create.
    * 
* * .google.showcase.v1beta1.User user = 1; + * * @return The user. */ @java.lang.Override @@ -72,6 +96,8 @@ public com.google.showcase.v1beta1.User getUser() { return user_ == null ? com.google.showcase.v1beta1.User.getDefaultInstance() : user_; } /** + * + * *
    * The user to create.
    * 
@@ -84,6 +110,7 @@ public com.google.showcase.v1beta1.UserOrBuilder getUserOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -95,8 +122,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getUser()); } @@ -110,8 +136,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUser()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUser()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -121,17 +146,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.CreateUserRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.CreateUserRequest other = (com.google.showcase.v1beta1.CreateUserRequest) obj; + com.google.showcase.v1beta1.CreateUserRequest other = + (com.google.showcase.v1beta1.CreateUserRequest) obj; if (hasUser() != other.hasUser()) return false; if (hasUser()) { - if (!getUser() - .equals(other.getUser())) return false; + if (!getUser().equals(other.getUser())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -153,99 +178,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.CreateUserRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.CreateUserRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.CreateUserRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateUserRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.CreateUserRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateUserRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.CreateUserRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateUserRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.CreateUserRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.CreateUserRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.CreateUserRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.CreateUserRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.CreateUserRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.CreateUserRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.CreateUserRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for the google.showcase.v1beta1.Identity\CreateUser
    * method.
@@ -253,21 +283,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.CreateUserRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.CreateUserRequest)
       com.google.showcase.v1beta1.CreateUserRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.IdentityOuterClass
+          .internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_CreateUserRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.IdentityOuterClass
+          .internal_static_google_showcase_v1beta1_CreateUserRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.CreateUserRequest.class, com.google.showcase.v1beta1.CreateUserRequest.Builder.class);
+              com.google.showcase.v1beta1.CreateUserRequest.class,
+              com.google.showcase.v1beta1.CreateUserRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.CreateUserRequest.newBuilder()
@@ -275,17 +307,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getUserFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -299,9 +331,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.IdentityOuterClass
+          .internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor;
     }
 
     @java.lang.Override
@@ -320,8 +352,11 @@ public com.google.showcase.v1beta1.CreateUserRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.CreateUserRequest buildPartial() {
-      com.google.showcase.v1beta1.CreateUserRequest result = new com.google.showcase.v1beta1.CreateUserRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.CreateUserRequest result =
+          new com.google.showcase.v1beta1.CreateUserRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -330,9 +365,7 @@ private void buildPartial0(com.google.showcase.v1beta1.CreateUserRequest result)
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.user_ = userBuilder_ == null
-            ? user_
-            : userBuilder_.build();
+        result.user_ = userBuilder_ == null ? user_ : userBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
@@ -342,38 +375,39 @@ private void buildPartial0(com.google.showcase.v1beta1.CreateUserRequest result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.CreateUserRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.CreateUserRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.CreateUserRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -411,19 +445,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getUserFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getUserFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -433,28 +467,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.showcase.v1beta1.User user_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.User, com.google.showcase.v1beta1.User.Builder, com.google.showcase.v1beta1.UserOrBuilder> userBuilder_;
+            com.google.showcase.v1beta1.User,
+            com.google.showcase.v1beta1.User.Builder,
+            com.google.showcase.v1beta1.UserOrBuilder>
+        userBuilder_;
     /**
+     *
+     *
      * 
      * The user to create.
      * 
* * .google.showcase.v1beta1.User user = 1; + * * @return Whether the user field is set. */ public boolean hasUser() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The user to create.
      * 
* * .google.showcase.v1beta1.User user = 1; + * * @return The user. */ public com.google.showcase.v1beta1.User getUser() { @@ -465,6 +509,8 @@ public com.google.showcase.v1beta1.User getUser() { } } /** + * + * *
      * The user to create.
      * 
@@ -485,14 +531,15 @@ public Builder setUser(com.google.showcase.v1beta1.User value) { return this; } /** + * + * *
      * The user to create.
      * 
* * .google.showcase.v1beta1.User user = 1; */ - public Builder setUser( - com.google.showcase.v1beta1.User.Builder builderForValue) { + public Builder setUser(com.google.showcase.v1beta1.User.Builder builderForValue) { if (userBuilder_ == null) { user_ = builderForValue.build(); } else { @@ -503,6 +550,8 @@ public Builder setUser( return this; } /** + * + * *
      * The user to create.
      * 
@@ -511,9 +560,9 @@ public Builder setUser( */ public Builder mergeUser(com.google.showcase.v1beta1.User value) { if (userBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - user_ != null && - user_ != com.google.showcase.v1beta1.User.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && user_ != null + && user_ != com.google.showcase.v1beta1.User.getDefaultInstance()) { getUserBuilder().mergeFrom(value); } else { user_ = value; @@ -528,6 +577,8 @@ public Builder mergeUser(com.google.showcase.v1beta1.User value) { return this; } /** + * + * *
      * The user to create.
      * 
@@ -545,6 +596,8 @@ public Builder clearUser() { return this; } /** + * + * *
      * The user to create.
      * 
@@ -557,6 +610,8 @@ public com.google.showcase.v1beta1.User.Builder getUserBuilder() { return getUserFieldBuilder().getBuilder(); } /** + * + * *
      * The user to create.
      * 
@@ -567,11 +622,12 @@ public com.google.showcase.v1beta1.UserOrBuilder getUserOrBuilder() { if (userBuilder_ != null) { return userBuilder_.getMessageOrBuilder(); } else { - return user_ == null ? - com.google.showcase.v1beta1.User.getDefaultInstance() : user_; + return user_ == null ? com.google.showcase.v1beta1.User.getDefaultInstance() : user_; } } /** + * + * *
      * The user to create.
      * 
@@ -579,21 +635,24 @@ public com.google.showcase.v1beta1.UserOrBuilder getUserOrBuilder() { * .google.showcase.v1beta1.User user = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.User, com.google.showcase.v1beta1.User.Builder, com.google.showcase.v1beta1.UserOrBuilder> + com.google.showcase.v1beta1.User, + com.google.showcase.v1beta1.User.Builder, + com.google.showcase.v1beta1.UserOrBuilder> getUserFieldBuilder() { if (userBuilder_ == null) { - userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.User, com.google.showcase.v1beta1.User.Builder, com.google.showcase.v1beta1.UserOrBuilder>( - getUser(), - getParentForChildren(), - isClean()); + userBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.User, + com.google.showcase.v1beta1.User.Builder, + com.google.showcase.v1beta1.UserOrBuilder>( + getUser(), getParentForChildren(), isClean()); user_ = null; } return userBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -603,12 +662,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.CreateUserRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.CreateUserRequest) private static final com.google.showcase.v1beta1.CreateUserRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.CreateUserRequest(); } @@ -617,27 +676,27 @@ public static com.google.showcase.v1beta1.CreateUserRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateUserRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateUserRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -652,6 +711,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.CreateUserRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequestOrBuilder.java similarity index 56% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequestOrBuilder.java index d45282c8b0..bb28858cf3 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateUserRequestOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/identity.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface CreateUserRequestOrBuilder extends +public interface CreateUserRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.CreateUserRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The user to create.
    * 
* * .google.showcase.v1beta1.User user = 1; + * * @return Whether the user field is set. */ boolean hasUser(); /** + * + * *
    * The user to create.
    * 
* * .google.showcase.v1beta1.User user = 1; + * * @return The user. */ com.google.showcase.v1beta1.User getUser(); /** + * + * *
    * The user to create.
    * 
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequest.java similarity index 62% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequest.java index 3e2055adf2..b17d120bb4 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request message for the google.showcase.v1beta1.Messaging\DeleteBlurb
  * method.
@@ -12,48 +29,56 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.DeleteBlurbRequest}
  */
-public final class DeleteBlurbRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteBlurbRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.DeleteBlurbRequest)
     DeleteBlurbRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteBlurbRequest.newBuilder() to construct.
   private DeleteBlurbRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteBlurbRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteBlurbRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteBlurbRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_DeleteBlurbRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.DeleteBlurbRequest.class, com.google.showcase.v1beta1.DeleteBlurbRequest.Builder.class);
+            com.google.showcase.v1beta1.DeleteBlurbRequest.class,
+            com.google.showcase.v1beta1.DeleteBlurbRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * The resource name of the requested blurb.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,29 +87,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the requested blurb.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.DeleteBlurbRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.DeleteBlurbRequest other = (com.google.showcase.v1beta1.DeleteBlurbRequest) obj; + com.google.showcase.v1beta1.DeleteBlurbRequest other = + (com.google.showcase.v1beta1.DeleteBlurbRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -156,99 +183,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.DeleteBlurbRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.DeleteBlurbRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.DeleteBlurbRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.DeleteBlurbRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for the google.showcase.v1beta1.Messaging\DeleteBlurb
    * method.
@@ -256,33 +288,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.DeleteBlurbRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.DeleteBlurbRequest)
       com.google.showcase.v1beta1.DeleteBlurbRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteBlurbRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_DeleteBlurbRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.DeleteBlurbRequest.class, com.google.showcase.v1beta1.DeleteBlurbRequest.Builder.class);
+              com.google.showcase.v1beta1.DeleteBlurbRequest.class,
+              com.google.showcase.v1beta1.DeleteBlurbRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.DeleteBlurbRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -292,9 +323,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor;
     }
 
     @java.lang.Override
@@ -313,8 +344,11 @@ public com.google.showcase.v1beta1.DeleteBlurbRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.DeleteBlurbRequest buildPartial() {
-      com.google.showcase.v1beta1.DeleteBlurbRequest result = new com.google.showcase.v1beta1.DeleteBlurbRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.DeleteBlurbRequest result =
+          new com.google.showcase.v1beta1.DeleteBlurbRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -330,38 +364,39 @@ private void buildPartial0(com.google.showcase.v1beta1.DeleteBlurbRequest result
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.DeleteBlurbRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.DeleteBlurbRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.DeleteBlurbRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -401,17 +436,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -421,22 +458,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the requested blurb.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,20 +487,23 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the requested blurb.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -466,28 +511,39 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the requested blurb.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the requested blurb.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -497,26 +553,32 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the requested blurb.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.DeleteBlurbRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.DeleteBlurbRequest) private static final com.google.showcase.v1beta1.DeleteBlurbRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.DeleteBlurbRequest(); } @@ -540,27 +602,27 @@ public static com.google.showcase.v1beta1.DeleteBlurbRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBlurbRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBlurbRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +637,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.DeleteBlurbRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequestOrBuilder.java new file mode 100644 index 0000000000..01c2fc1efc --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface DeleteBlurbRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.DeleteBlurbRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the requested blurb.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The resource name of the requested blurb.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequest.java similarity index 62% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequest.java index 40a2e57deb..20541f8969 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request message for the google.showcase.v1beta1.Messaging\DeleteRoom
  * method.
@@ -12,48 +29,56 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.DeleteRoomRequest}
  */
-public final class DeleteRoomRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteRoomRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.DeleteRoomRequest)
     DeleteRoomRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteRoomRequest.newBuilder() to construct.
   private DeleteRoomRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteRoomRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteRoomRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteRoomRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_DeleteRoomRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.DeleteRoomRequest.class, com.google.showcase.v1beta1.DeleteRoomRequest.Builder.class);
+            com.google.showcase.v1beta1.DeleteRoomRequest.class,
+            com.google.showcase.v1beta1.DeleteRoomRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * The resource name of the requested room.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,29 +87,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the requested room.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.DeleteRoomRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.DeleteRoomRequest other = (com.google.showcase.v1beta1.DeleteRoomRequest) obj; + com.google.showcase.v1beta1.DeleteRoomRequest other = + (com.google.showcase.v1beta1.DeleteRoomRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -156,99 +183,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.DeleteRoomRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.DeleteRoomRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.DeleteRoomRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.DeleteRoomRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.DeleteRoomRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for the google.showcase.v1beta1.Messaging\DeleteRoom
    * method.
@@ -256,33 +288,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.DeleteRoomRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.DeleteRoomRequest)
       com.google.showcase.v1beta1.DeleteRoomRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteRoomRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_DeleteRoomRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.DeleteRoomRequest.class, com.google.showcase.v1beta1.DeleteRoomRequest.Builder.class);
+              com.google.showcase.v1beta1.DeleteRoomRequest.class,
+              com.google.showcase.v1beta1.DeleteRoomRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.DeleteRoomRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -292,9 +323,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor;
     }
 
     @java.lang.Override
@@ -313,8 +344,11 @@ public com.google.showcase.v1beta1.DeleteRoomRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.DeleteRoomRequest buildPartial() {
-      com.google.showcase.v1beta1.DeleteRoomRequest result = new com.google.showcase.v1beta1.DeleteRoomRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.DeleteRoomRequest result =
+          new com.google.showcase.v1beta1.DeleteRoomRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -330,38 +364,39 @@ private void buildPartial0(com.google.showcase.v1beta1.DeleteRoomRequest result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.DeleteRoomRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.DeleteRoomRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.DeleteRoomRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -401,17 +436,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -421,22 +458,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the requested room.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,20 +487,23 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the requested room.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -466,28 +511,39 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the requested room.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the requested room.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -497,26 +553,32 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the requested room.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.DeleteRoomRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.DeleteRoomRequest) private static final com.google.showcase.v1beta1.DeleteRoomRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.DeleteRoomRequest(); } @@ -540,27 +602,27 @@ public static com.google.showcase.v1beta1.DeleteRoomRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRoomRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRoomRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +637,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.DeleteRoomRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequestOrBuilder.java new file mode 100644 index 0000000000..d0a2abeb06 --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface DeleteRoomRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.DeleteRoomRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the requested room.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The resource name of the requested room.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequest.java similarity index 65% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequest.java index 1b7644c8a7..ac7b75e86b 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto @@ -5,54 +20,62 @@ package com.google.showcase.v1beta1; /** + * + * *
  * Request for the DeleteSession method.
  * 
* * Protobuf type {@code google.showcase.v1beta1.DeleteSessionRequest} */ -public final class DeleteSessionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteSessionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.DeleteSessionRequest) DeleteSessionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteSessionRequest.newBuilder() to construct. private DeleteSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteSessionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSessionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteSessionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_DeleteSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteSessionRequest_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_DeleteSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.DeleteSessionRequest.class, com.google.showcase.v1beta1.DeleteSessionRequest.Builder.class); + com.google.showcase.v1beta1.DeleteSessionRequest.class, + com.google.showcase.v1beta1.DeleteSessionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The session to be deleted.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -61,29 +84,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The session to be deleted.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -92,6 +115,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +127,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -128,15 +151,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.DeleteSessionRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.DeleteSessionRequest other = (com.google.showcase.v1beta1.DeleteSessionRequest) obj; + com.google.showcase.v1beta1.DeleteSessionRequest other = + (com.google.showcase.v1beta1.DeleteSessionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,132 +178,136 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.DeleteSessionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.DeleteSessionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.DeleteSessionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.DeleteSessionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.DeleteSessionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the DeleteSession method.
    * 
* * Protobuf type {@code google.showcase.v1beta1.DeleteSessionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.DeleteSessionRequest) com.google.showcase.v1beta1.DeleteSessionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteSessionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_DeleteSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteSessionRequest_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_DeleteSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.DeleteSessionRequest.class, com.google.showcase.v1beta1.DeleteSessionRequest.Builder.class); + com.google.showcase.v1beta1.DeleteSessionRequest.class, + com.google.showcase.v1beta1.DeleteSessionRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.DeleteSessionRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -290,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteSessionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_DeleteSessionRequest_descriptor; } @java.lang.Override @@ -311,8 +338,11 @@ public com.google.showcase.v1beta1.DeleteSessionRequest build() { @java.lang.Override public com.google.showcase.v1beta1.DeleteSessionRequest buildPartial() { - com.google.showcase.v1beta1.DeleteSessionRequest result = new com.google.showcase.v1beta1.DeleteSessionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.DeleteSessionRequest result = + new com.google.showcase.v1beta1.DeleteSessionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -328,38 +358,39 @@ private void buildPartial0(com.google.showcase.v1beta1.DeleteSessionRequest resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.DeleteSessionRequest) { - return mergeFrom((com.google.showcase.v1beta1.DeleteSessionRequest)other); + return mergeFrom((com.google.showcase.v1beta1.DeleteSessionRequest) other); } else { super.mergeFrom(other); return this; @@ -367,7 +398,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.DeleteSessionRequest other) { - if (other == com.google.showcase.v1beta1.DeleteSessionRequest.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.DeleteSessionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -399,17 +431,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -419,22 +453,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The session to be deleted.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -443,20 +480,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The session to be deleted.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -464,28 +502,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The session to be deleted.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The session to be deleted.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { @@ -495,26 +540,30 @@ public Builder clearName() { return this; } /** + * + * *
      * The session to be deleted.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -524,12 +573,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.DeleteSessionRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.DeleteSessionRequest) private static final com.google.showcase.v1beta1.DeleteSessionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.DeleteSessionRequest(); } @@ -538,27 +587,27 @@ public static com.google.showcase.v1beta1.DeleteSessionRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSessionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -573,6 +622,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.DeleteSessionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequestOrBuilder.java new file mode 100644 index 0000000000..88f536c2f8 --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequestOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface DeleteSessionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.DeleteSessionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The session to be deleted.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The session to be deleted.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequest.java similarity index 65% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequest.java index 5f9df6518c..74b550b949 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto @@ -5,54 +20,62 @@ package com.google.showcase.v1beta1; /** + * + * *
  * Request message for deleting a test.
  * 
* * Protobuf type {@code google.showcase.v1beta1.DeleteTestRequest} */ -public final class DeleteTestRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteTestRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.DeleteTestRequest) DeleteTestRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteTestRequest.newBuilder() to construct. private DeleteTestRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteTestRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteTestRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteTestRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_DeleteTestRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteTestRequest_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_DeleteTestRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.DeleteTestRequest.class, com.google.showcase.v1beta1.DeleteTestRequest.Builder.class); + com.google.showcase.v1beta1.DeleteTestRequest.class, + com.google.showcase.v1beta1.DeleteTestRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The test to be deleted.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -61,29 +84,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The test to be deleted.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -92,6 +115,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +127,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -128,15 +151,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.DeleteTestRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.DeleteTestRequest other = (com.google.showcase.v1beta1.DeleteTestRequest) obj; + com.google.showcase.v1beta1.DeleteTestRequest other = + (com.google.showcase.v1beta1.DeleteTestRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,132 +178,136 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.DeleteTestRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.DeleteTestRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.DeleteTestRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.DeleteTestRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.DeleteTestRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for deleting a test.
    * 
* * Protobuf type {@code google.showcase.v1beta1.DeleteTestRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.DeleteTestRequest) com.google.showcase.v1beta1.DeleteTestRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteTestRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_DeleteTestRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteTestRequest_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_DeleteTestRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.DeleteTestRequest.class, com.google.showcase.v1beta1.DeleteTestRequest.Builder.class); + com.google.showcase.v1beta1.DeleteTestRequest.class, + com.google.showcase.v1beta1.DeleteTestRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.DeleteTestRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -290,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_DeleteTestRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_DeleteTestRequest_descriptor; } @java.lang.Override @@ -311,8 +338,11 @@ public com.google.showcase.v1beta1.DeleteTestRequest build() { @java.lang.Override public com.google.showcase.v1beta1.DeleteTestRequest buildPartial() { - com.google.showcase.v1beta1.DeleteTestRequest result = new com.google.showcase.v1beta1.DeleteTestRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.DeleteTestRequest result = + new com.google.showcase.v1beta1.DeleteTestRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -328,38 +358,39 @@ private void buildPartial0(com.google.showcase.v1beta1.DeleteTestRequest result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.DeleteTestRequest) { - return mergeFrom((com.google.showcase.v1beta1.DeleteTestRequest)other); + return mergeFrom((com.google.showcase.v1beta1.DeleteTestRequest) other); } else { super.mergeFrom(other); return this; @@ -399,17 +430,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -419,22 +452,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The test to be deleted.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -443,20 +479,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The test to be deleted.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -464,28 +501,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The test to be deleted.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The test to be deleted.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { @@ -495,26 +539,30 @@ public Builder clearName() { return this; } /** + * + * *
      * The test to be deleted.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -524,12 +572,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.DeleteTestRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.DeleteTestRequest) private static final com.google.showcase.v1beta1.DeleteTestRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.DeleteTestRequest(); } @@ -538,27 +586,27 @@ public static com.google.showcase.v1beta1.DeleteTestRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTestRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -573,6 +621,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.DeleteTestRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequestOrBuilder.java new file mode 100644 index 0000000000..7803430659 --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequestOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface DeleteTestRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.DeleteTestRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The test to be deleted.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The test to be deleted.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequest.java similarity index 62% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequest.java index 0cd65ab7aa..895493f0a9 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/identity.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request message for the google.showcase.v1beta1.Identity\DeleteUser
  * method.
@@ -12,48 +29,56 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.DeleteUserRequest}
  */
-public final class DeleteUserRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteUserRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.DeleteUserRequest)
     DeleteUserRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteUserRequest.newBuilder() to construct.
   private DeleteUserRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteUserRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteUserRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.IdentityOuterClass
+        .internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_DeleteUserRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.IdentityOuterClass
+        .internal_static_google_showcase_v1beta1_DeleteUserRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.DeleteUserRequest.class, com.google.showcase.v1beta1.DeleteUserRequest.Builder.class);
+            com.google.showcase.v1beta1.DeleteUserRequest.class,
+            com.google.showcase.v1beta1.DeleteUserRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * The resource name of the user to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,29 +87,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the user to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.DeleteUserRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.DeleteUserRequest other = (com.google.showcase.v1beta1.DeleteUserRequest) obj; + com.google.showcase.v1beta1.DeleteUserRequest other = + (com.google.showcase.v1beta1.DeleteUserRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -156,99 +183,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.DeleteUserRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.DeleteUserRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.DeleteUserRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.DeleteUserRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.DeleteUserRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for the google.showcase.v1beta1.Identity\DeleteUser
    * method.
@@ -256,33 +288,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.DeleteUserRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.DeleteUserRequest)
       com.google.showcase.v1beta1.DeleteUserRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.IdentityOuterClass
+          .internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_DeleteUserRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.IdentityOuterClass
+          .internal_static_google_showcase_v1beta1_DeleteUserRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.DeleteUserRequest.class, com.google.showcase.v1beta1.DeleteUserRequest.Builder.class);
+              com.google.showcase.v1beta1.DeleteUserRequest.class,
+              com.google.showcase.v1beta1.DeleteUserRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.DeleteUserRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -292,9 +323,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.IdentityOuterClass
+          .internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor;
     }
 
     @java.lang.Override
@@ -313,8 +344,11 @@ public com.google.showcase.v1beta1.DeleteUserRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.DeleteUserRequest buildPartial() {
-      com.google.showcase.v1beta1.DeleteUserRequest result = new com.google.showcase.v1beta1.DeleteUserRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.DeleteUserRequest result =
+          new com.google.showcase.v1beta1.DeleteUserRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -330,38 +364,39 @@ private void buildPartial0(com.google.showcase.v1beta1.DeleteUserRequest result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.DeleteUserRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.DeleteUserRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.DeleteUserRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -401,17 +436,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -421,22 +458,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the user to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,20 +487,23 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the user to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -466,28 +511,39 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the user to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the user to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -497,26 +553,32 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the user to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.DeleteUserRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.DeleteUserRequest) private static final com.google.showcase.v1beta1.DeleteUserRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.DeleteUserRequest(); } @@ -540,27 +602,27 @@ public static com.google.showcase.v1beta1.DeleteUserRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteUserRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteUserRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +637,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.DeleteUserRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequestOrBuilder.java new file mode 100644 index 0000000000..7024b1d938 --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/identity.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface DeleteUserRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.DeleteUserRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the user to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The resource name of the user to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsRequest.java similarity index 70% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsRequest.java index 35bf662870..c8d38058fb 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto @@ -5,57 +20,64 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request message used for the EchoErrorDetails method.
  * 
* * Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsRequest} */ -public final class EchoErrorDetailsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EchoErrorDetailsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EchoErrorDetailsRequest) EchoErrorDetailsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EchoErrorDetailsRequest.newBuilder() to construct. private EchoErrorDetailsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EchoErrorDetailsRequest() { singleDetailText_ = ""; - multiDetailText_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + multiDetailText_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EchoErrorDetailsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.EchoErrorDetailsRequest.class, com.google.showcase.v1beta1.EchoErrorDetailsRequest.Builder.class); + com.google.showcase.v1beta1.EchoErrorDetailsRequest.class, + com.google.showcase.v1beta1.EchoErrorDetailsRequest.Builder.class); } public static final int SINGLE_DETAIL_TEXT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object singleDetailText_ = ""; /** + * + * *
    * Content to return in a singular `*.error.details` field of type
    * `google.protobuf.Any`
    * 
* * string single_detail_text = 1; + * * @return The singleDetailText. */ @java.lang.Override @@ -64,30 +86,30 @@ public java.lang.String getSingleDetailText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); singleDetailText_ = s; return s; } } /** + * + * *
    * Content to return in a singular `*.error.details` field of type
    * `google.protobuf.Any`
    * 
* * string single_detail_text = 1; + * * @return The bytes for singleDetailText. */ @java.lang.Override - public com.google.protobuf.ByteString - getSingleDetailTextBytes() { + public com.google.protobuf.ByteString getSingleDetailTextBytes() { java.lang.Object ref = singleDetailText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); singleDetailText_ = b; return b; } else { @@ -96,41 +118,50 @@ public java.lang.String getSingleDetailText() { } public static final int MULTI_DETAIL_TEXT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList multiDetailText_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Content to return in a repeated `*.error.details` field of type
    * `google.protobuf.Any`
    * 
* * repeated string multi_detail_text = 2; + * * @return A list containing the multiDetailText. */ - public com.google.protobuf.ProtocolStringList - getMultiDetailTextList() { + public com.google.protobuf.ProtocolStringList getMultiDetailTextList() { return multiDetailText_; } /** + * + * *
    * Content to return in a repeated `*.error.details` field of type
    * `google.protobuf.Any`
    * 
* * repeated string multi_detail_text = 2; + * * @return The count of multiDetailText. */ public int getMultiDetailTextCount() { return multiDetailText_.size(); } /** + * + * *
    * Content to return in a repeated `*.error.details` field of type
    * `google.protobuf.Any`
    * 
* * repeated string multi_detail_text = 2; + * * @param index The index of the element to return. * @return The multiDetailText at the given index. */ @@ -138,21 +169,24 @@ public java.lang.String getMultiDetailText(int index) { return multiDetailText_.get(index); } /** + * + * *
    * Content to return in a repeated `*.error.details` field of type
    * `google.protobuf.Any`
    * 
* * repeated string multi_detail_text = 2; + * * @param index The index of the value to return. * @return The bytes of the multiDetailText at the given index. */ - public com.google.protobuf.ByteString - getMultiDetailTextBytes(int index) { + public com.google.protobuf.ByteString getMultiDetailTextBytes(int index) { return multiDetailText_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,8 +198,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(singleDetailText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, singleDetailText_); } @@ -200,17 +233,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.EchoErrorDetailsRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.EchoErrorDetailsRequest other = (com.google.showcase.v1beta1.EchoErrorDetailsRequest) obj; + com.google.showcase.v1beta1.EchoErrorDetailsRequest other = + (com.google.showcase.v1beta1.EchoErrorDetailsRequest) obj; - if (!getSingleDetailText() - .equals(other.getSingleDetailText())) return false; - if (!getMultiDetailTextList() - .equals(other.getMultiDetailTextList())) return false; + if (!getSingleDetailText().equals(other.getSingleDetailText())) return false; + if (!getMultiDetailTextList().equals(other.getMultiDetailTextList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,145 +266,148 @@ public int hashCode() { } public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.EchoErrorDetailsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message used for the EchoErrorDetails method.
    * 
* * Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EchoErrorDetailsRequest) com.google.showcase.v1beta1.EchoErrorDetailsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.EchoErrorDetailsRequest.class, com.google.showcase.v1beta1.EchoErrorDetailsRequest.Builder.class); + com.google.showcase.v1beta1.EchoErrorDetailsRequest.class, + com.google.showcase.v1beta1.EchoErrorDetailsRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.EchoErrorDetailsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; singleDetailText_ = ""; - multiDetailText_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + multiDetailText_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_descriptor; } @java.lang.Override @@ -391,8 +426,11 @@ public com.google.showcase.v1beta1.EchoErrorDetailsRequest build() { @java.lang.Override public com.google.showcase.v1beta1.EchoErrorDetailsRequest buildPartial() { - com.google.showcase.v1beta1.EchoErrorDetailsRequest result = new com.google.showcase.v1beta1.EchoErrorDetailsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.EchoErrorDetailsRequest result = + new com.google.showcase.v1beta1.EchoErrorDetailsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -412,38 +450,39 @@ private void buildPartial0(com.google.showcase.v1beta1.EchoErrorDetailsRequest r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.EchoErrorDetailsRequest) { - return mergeFrom((com.google.showcase.v1beta1.EchoErrorDetailsRequest)other); + return mergeFrom((com.google.showcase.v1beta1.EchoErrorDetailsRequest) other); } else { super.mergeFrom(other); return this; @@ -451,7 +490,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.EchoErrorDetailsRequest other) { - if (other == com.google.showcase.v1beta1.EchoErrorDetailsRequest.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.EchoErrorDetailsRequest.getDefaultInstance()) + return this; if (!other.getSingleDetailText().isEmpty()) { singleDetailText_ = other.singleDetailText_; bitField0_ |= 0x00000001; @@ -493,23 +533,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - singleDetailText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureMultiDetailTextIsMutable(); - multiDetailText_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + singleDetailText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureMultiDetailTextIsMutable(); + multiDetailText_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -519,23 +562,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object singleDetailText_ = ""; /** + * + * *
      * Content to return in a singular `*.error.details` field of type
      * `google.protobuf.Any`
      * 
* * string single_detail_text = 1; + * * @return The singleDetailText. */ public java.lang.String getSingleDetailText() { java.lang.Object ref = singleDetailText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); singleDetailText_ = s; return s; @@ -544,21 +590,22 @@ public java.lang.String getSingleDetailText() { } } /** + * + * *
      * Content to return in a singular `*.error.details` field of type
      * `google.protobuf.Any`
      * 
* * string single_detail_text = 1; + * * @return The bytes for singleDetailText. */ - public com.google.protobuf.ByteString - getSingleDetailTextBytes() { + public com.google.protobuf.ByteString getSingleDetailTextBytes() { java.lang.Object ref = singleDetailText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); singleDetailText_ = b; return b; } else { @@ -566,30 +613,37 @@ public java.lang.String getSingleDetailText() { } } /** + * + * *
      * Content to return in a singular `*.error.details` field of type
      * `google.protobuf.Any`
      * 
* * string single_detail_text = 1; + * * @param value The singleDetailText to set. * @return This builder for chaining. */ - public Builder setSingleDetailText( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSingleDetailText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } singleDetailText_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Content to return in a singular `*.error.details` field of type
      * `google.protobuf.Any`
      * 
* * string single_detail_text = 1; + * * @return This builder for chaining. */ public Builder clearSingleDetailText() { @@ -599,18 +653,22 @@ public Builder clearSingleDetailText() { return this; } /** + * + * *
      * Content to return in a singular `*.error.details` field of type
      * `google.protobuf.Any`
      * 
* * string single_detail_text = 1; + * * @param value The bytes for singleDetailText to set. * @return This builder for chaining. */ - public Builder setSingleDetailTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSingleDetailTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); singleDetailText_ = value; bitField0_ |= 0x00000001; @@ -620,6 +678,7 @@ public Builder setSingleDetailTextBytes( private com.google.protobuf.LazyStringArrayList multiDetailText_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureMultiDetailTextIsMutable() { if (!multiDetailText_.isModifiable()) { multiDetailText_ = new com.google.protobuf.LazyStringArrayList(multiDetailText_); @@ -627,38 +686,46 @@ private void ensureMultiDetailTextIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * Content to return in a repeated `*.error.details` field of type
      * `google.protobuf.Any`
      * 
* * repeated string multi_detail_text = 2; + * * @return A list containing the multiDetailText. */ - public com.google.protobuf.ProtocolStringList - getMultiDetailTextList() { + public com.google.protobuf.ProtocolStringList getMultiDetailTextList() { multiDetailText_.makeImmutable(); return multiDetailText_; } /** + * + * *
      * Content to return in a repeated `*.error.details` field of type
      * `google.protobuf.Any`
      * 
* * repeated string multi_detail_text = 2; + * * @return The count of multiDetailText. */ public int getMultiDetailTextCount() { return multiDetailText_.size(); } /** + * + * *
      * Content to return in a repeated `*.error.details` field of type
      * `google.protobuf.Any`
      * 
* * repeated string multi_detail_text = 2; + * * @param index The index of the element to return. * @return The multiDetailText at the given index. */ @@ -666,33 +733,39 @@ public java.lang.String getMultiDetailText(int index) { return multiDetailText_.get(index); } /** + * + * *
      * Content to return in a repeated `*.error.details` field of type
      * `google.protobuf.Any`
      * 
* * repeated string multi_detail_text = 2; + * * @param index The index of the value to return. * @return The bytes of the multiDetailText at the given index. */ - public com.google.protobuf.ByteString - getMultiDetailTextBytes(int index) { + public com.google.protobuf.ByteString getMultiDetailTextBytes(int index) { return multiDetailText_.getByteString(index); } /** + * + * *
      * Content to return in a repeated `*.error.details` field of type
      * `google.protobuf.Any`
      * 
* * repeated string multi_detail_text = 2; + * * @param index The index to set the value at. * @param value The multiDetailText to set. * @return This builder for chaining. */ - public Builder setMultiDetailText( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMultiDetailText(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMultiDetailTextIsMutable(); multiDetailText_.set(index, value); bitField0_ |= 0x00000002; @@ -700,18 +773,22 @@ public Builder setMultiDetailText( return this; } /** + * + * *
      * Content to return in a repeated `*.error.details` field of type
      * `google.protobuf.Any`
      * 
* * repeated string multi_detail_text = 2; + * * @param value The multiDetailText to add. * @return This builder for chaining. */ - public Builder addMultiDetailText( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMultiDetailText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMultiDetailTextIsMutable(); multiDetailText_.add(value); bitField0_ |= 0x00000002; @@ -719,53 +796,61 @@ public Builder addMultiDetailText( return this; } /** + * + * *
      * Content to return in a repeated `*.error.details` field of type
      * `google.protobuf.Any`
      * 
* * repeated string multi_detail_text = 2; + * * @param values The multiDetailText to add. * @return This builder for chaining. */ - public Builder addAllMultiDetailText( - java.lang.Iterable values) { + public Builder addAllMultiDetailText(java.lang.Iterable values) { ensureMultiDetailTextIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, multiDetailText_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, multiDetailText_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Content to return in a repeated `*.error.details` field of type
      * `google.protobuf.Any`
      * 
* * repeated string multi_detail_text = 2; + * * @return This builder for chaining. */ public Builder clearMultiDetailText() { - multiDetailText_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + multiDetailText_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * Content to return in a repeated `*.error.details` field of type
      * `google.protobuf.Any`
      * 
* * repeated string multi_detail_text = 2; + * * @param value The bytes of the multiDetailText to add. * @return This builder for chaining. */ - public Builder addMultiDetailTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMultiDetailTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureMultiDetailTextIsMutable(); multiDetailText_.add(value); @@ -773,9 +858,9 @@ public Builder addMultiDetailTextBytes( onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -785,12 +870,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.EchoErrorDetailsRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EchoErrorDetailsRequest) private static final com.google.showcase.v1beta1.EchoErrorDetailsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EchoErrorDetailsRequest(); } @@ -799,27 +884,27 @@ public static com.google.showcase.v1beta1.EchoErrorDetailsRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EchoErrorDetailsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EchoErrorDetailsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -834,6 +919,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.EchoErrorDetailsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsRequestOrBuilder.java similarity index 68% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsRequestOrBuilder.java index 283808df13..4750d06711 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsRequestOrBuilder.java @@ -1,77 +1,108 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface EchoErrorDetailsRequestOrBuilder extends +public interface EchoErrorDetailsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EchoErrorDetailsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Content to return in a singular `*.error.details` field of type
    * `google.protobuf.Any`
    * 
* * string single_detail_text = 1; + * * @return The singleDetailText. */ java.lang.String getSingleDetailText(); /** + * + * *
    * Content to return in a singular `*.error.details` field of type
    * `google.protobuf.Any`
    * 
* * string single_detail_text = 1; + * * @return The bytes for singleDetailText. */ - com.google.protobuf.ByteString - getSingleDetailTextBytes(); + com.google.protobuf.ByteString getSingleDetailTextBytes(); /** + * + * *
    * Content to return in a repeated `*.error.details` field of type
    * `google.protobuf.Any`
    * 
* * repeated string multi_detail_text = 2; + * * @return A list containing the multiDetailText. */ - java.util.List - getMultiDetailTextList(); + java.util.List getMultiDetailTextList(); /** + * + * *
    * Content to return in a repeated `*.error.details` field of type
    * `google.protobuf.Any`
    * 
* * repeated string multi_detail_text = 2; + * * @return The count of multiDetailText. */ int getMultiDetailTextCount(); /** + * + * *
    * Content to return in a repeated `*.error.details` field of type
    * `google.protobuf.Any`
    * 
* * repeated string multi_detail_text = 2; + * * @param index The index of the element to return. * @return The multiDetailText at the given index. */ java.lang.String getMultiDetailText(int index); /** + * + * *
    * Content to return in a repeated `*.error.details` field of type
    * `google.protobuf.Any`
    * 
* * repeated string multi_detail_text = 2; + * * @param index The index of the value to return. * @return The bytes of the multiDetailText at the given index. */ - com.google.protobuf.ByteString - getMultiDetailTextBytes(int index); + com.google.protobuf.ByteString getMultiDetailTextBytes(int index); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsResponse.java similarity index 62% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsResponse.java index 5d01af9698..d2e0e5e469 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto @@ -5,96 +20,99 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The response message used for the EchoErrorDetails method.
  * 
* * Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse} */ -public final class EchoErrorDetailsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EchoErrorDetailsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EchoErrorDetailsResponse) EchoErrorDetailsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EchoErrorDetailsResponse.newBuilder() to construct. private EchoErrorDetailsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EchoErrorDetailsResponse() { - } + + private EchoErrorDetailsResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EchoErrorDetailsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.EchoErrorDetailsResponse.class, com.google.showcase.v1beta1.EchoErrorDetailsResponse.Builder.class); + com.google.showcase.v1beta1.EchoErrorDetailsResponse.class, + com.google.showcase.v1beta1.EchoErrorDetailsResponse.Builder.class); } - public interface SingleDetailOrBuilder extends + public interface SingleDetailOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) com.google.protobuf.MessageOrBuilder { /** * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + * * @return Whether the error field is set. */ boolean hasError(); /** * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + * * @return The error. */ com.google.showcase.v1beta1.ErrorWithSingleDetail getError(); - /** - * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; - */ + /** .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; */ com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder getErrorOrBuilder(); } - /** - * Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail} - */ - public static final class SingleDetail extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail} */ + public static final class SingleDetail extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) SingleDetailOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SingleDetail.newBuilder() to construct. private SingleDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SingleDetail() { - } + + private SingleDetail() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SingleDetail(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.class, com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder.class); + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.class, + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder.class); } private int bitField0_; @@ -102,6 +120,7 @@ protected java.lang.Object newInstance( private com.google.showcase.v1beta1.ErrorWithSingleDetail error_; /** * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + * * @return Whether the error field is set. */ @java.lang.Override @@ -110,21 +129,25 @@ public boolean hasError() { } /** * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + * * @return The error. */ @java.lang.Override public com.google.showcase.v1beta1.ErrorWithSingleDetail getError() { - return error_ == null ? com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance() : error_; + return error_ == null + ? com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance() + : error_; } - /** - * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; - */ + /** .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; */ @java.lang.Override public com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder getErrorOrBuilder() { - return error_ == null ? com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance() : error_; + return error_ == null + ? com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance() + : error_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,8 +159,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getError()); } @@ -151,8 +173,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -162,17 +183,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail)) { return super.equals(obj); } - com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail other = (com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) obj; + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail other = + (com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) obj; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -195,89 +216,95 @@ public int hashCode() { } public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail 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.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail + 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.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail prototype) { + + public static Builder newBuilder( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -286,42 +313,44 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.class, com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder.class); + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.class, + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder.class); } - // Construct using com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.newBuilder() + // Construct using + // com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getErrorFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -335,14 +364,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor; } @java.lang.Override - public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail getDefaultInstanceForType() { - return com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance(); + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail + getDefaultInstanceForType() { + return com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail + .getDefaultInstance(); } @java.lang.Override @@ -356,19 +387,21 @@ public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail build() @java.lang.Override public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail buildPartial() { - com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail result = new com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail result = + new com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail result) { + private void buildPartial0( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.error_ = errorBuilder_ == null - ? error_ - : errorBuilder_.build(); + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -378,46 +411,53 @@ private void buildPartial0(com.google.showcase.v1beta1.EchoErrorDetailsResponse. public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) { - return mergeFrom((com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail)other); + return mergeFrom( + (com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail other) { - if (other == com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail other) { + if (other + == com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail + .getDefaultInstance()) return this; if (other.hasError()) { mergeError(other.getError()); } @@ -447,19 +487,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getErrorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -469,13 +509,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.showcase.v1beta1.ErrorWithSingleDetail error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.ErrorWithSingleDetail, com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder, com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder> errorBuilder_; + com.google.showcase.v1beta1.ErrorWithSingleDetail, + com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder, + com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder> + errorBuilder_; /** * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + * * @return Whether the error field is set. */ public boolean hasError() { @@ -483,18 +528,19 @@ public boolean hasError() { } /** * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + * * @return The error. */ public com.google.showcase.v1beta1.ErrorWithSingleDetail getError() { if (errorBuilder_ == null) { - return error_ == null ? com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance() : error_; + return error_ == null + ? com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance() + : error_; } else { return errorBuilder_.getMessage(); } } - /** - * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; - */ + /** .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; */ public Builder setError(com.google.showcase.v1beta1.ErrorWithSingleDetail value) { if (errorBuilder_ == null) { if (value == null) { @@ -508,9 +554,7 @@ public Builder setError(com.google.showcase.v1beta1.ErrorWithSingleDetail value) onChanged(); return this; } - /** - * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; - */ + /** .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; */ public Builder setError( com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder builderForValue) { if (errorBuilder_ == null) { @@ -522,14 +566,12 @@ public Builder setError( onChanged(); return this; } - /** - * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; - */ + /** .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; */ public Builder mergeError(com.google.showcase.v1beta1.ErrorWithSingleDetail value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - error_ != null && - error_ != com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && error_ != null + && error_ != com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -543,9 +585,7 @@ public Builder mergeError(com.google.showcase.v1beta1.ErrorWithSingleDetail valu } return this; } - /** - * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; - */ + /** .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000001); error_ = null; @@ -556,41 +596,40 @@ public Builder clearError() { onChanged(); return this; } - /** - * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; - */ + /** .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; */ public com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder getErrorBuilder() { bitField0_ |= 0x00000001; onChanged(); return getErrorFieldBuilder().getBuilder(); } - /** - * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; - */ + /** .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; */ public com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { - return error_ == null ? - com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance() : error_; + return error_ == null + ? com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance() + : error_; } } - /** - * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; - */ + /** .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.ErrorWithSingleDetail, com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder, com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder> + com.google.showcase.v1beta1.ErrorWithSingleDetail, + com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder, + com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.ErrorWithSingleDetail, com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder, com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder>( - getError(), - getParentForChildren(), - isClean()); + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ErrorWithSingleDetail, + com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder, + com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder>( + getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -603,41 +642,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) - private static final com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail DEFAULT_INSTANCE; + private static final com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail(); } - public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail getDefaultInstance() { + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SingleDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SingleDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,64 +691,64 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail getDefaultInstanceForType() { + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface MultipleDetailsOrBuilder extends + public interface MultipleDetailsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) com.google.protobuf.MessageOrBuilder { /** * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + * * @return Whether the error field is set. */ boolean hasError(); /** * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + * * @return The error. */ com.google.showcase.v1beta1.ErrorWithMultipleDetails getError(); - /** - * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; - */ + /** .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; */ com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder getErrorOrBuilder(); } - /** - * Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails} - */ - public static final class MultipleDetails extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails} */ + public static final class MultipleDetails extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) MultipleDetailsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MultipleDetails.newBuilder() to construct. private MultipleDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MultipleDetails() { - } + + private MultipleDetails() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MultipleDetails(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.class, com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder.class); + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.class, + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder.class); } private int bitField0_; @@ -714,6 +756,7 @@ protected java.lang.Object newInstance( private com.google.showcase.v1beta1.ErrorWithMultipleDetails error_; /** * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + * * @return Whether the error field is set. */ @java.lang.Override @@ -722,21 +765,25 @@ public boolean hasError() { } /** * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + * * @return The error. */ @java.lang.Override public com.google.showcase.v1beta1.ErrorWithMultipleDetails getError() { - return error_ == null ? com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance() : error_; + return error_ == null + ? com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance() + : error_; } - /** - * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; - */ + /** .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; */ @java.lang.Override public com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder getErrorOrBuilder() { - return error_ == null ? com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance() : error_; + return error_ == null + ? com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance() + : error_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -748,8 +795,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getError()); } @@ -763,8 +809,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -774,17 +819,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails)) { return super.equals(obj); } - com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails other = (com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) obj; + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails other = + (com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) obj; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -807,89 +852,95 @@ public int hashCode() { } public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails 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.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails + 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.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails prototype) { + + public static Builder newBuilder( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -898,42 +949,44 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.class, com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder.class); + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.class, + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder.class); } - // Construct using com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.newBuilder() + // Construct using + // com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getErrorFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -947,19 +1000,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor; } @java.lang.Override - public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails getDefaultInstanceForType() { - return com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.getDefaultInstance(); + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails + getDefaultInstanceForType() { + return com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails + .getDefaultInstance(); } @java.lang.Override public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails build() { - com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails result = buildPartial(); + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -968,19 +1024,21 @@ public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails buil @java.lang.Override public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails buildPartial() { - com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails result = new com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails result = + new com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails result) { + private void buildPartial0( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.error_ = errorBuilder_ == null - ? error_ - : errorBuilder_.build(); + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -990,46 +1048,53 @@ private void buildPartial0(com.google.showcase.v1beta1.EchoErrorDetailsResponse. public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) { - return mergeFrom((com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails)other); + return mergeFrom( + (com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails other) { - if (other == com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails other) { + if (other + == com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails + .getDefaultInstance()) return this; if (other.hasError()) { mergeError(other.getError()); } @@ -1059,19 +1124,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getErrorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1081,13 +1146,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.showcase.v1beta1.ErrorWithMultipleDetails error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.ErrorWithMultipleDetails, com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder, com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder> errorBuilder_; + com.google.showcase.v1beta1.ErrorWithMultipleDetails, + com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder, + com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder> + errorBuilder_; /** * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + * * @return Whether the error field is set. */ public boolean hasError() { @@ -1095,18 +1165,19 @@ public boolean hasError() { } /** * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + * * @return The error. */ public com.google.showcase.v1beta1.ErrorWithMultipleDetails getError() { if (errorBuilder_ == null) { - return error_ == null ? com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance() : error_; + return error_ == null + ? com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance() + : error_; } else { return errorBuilder_.getMessage(); } } - /** - * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; - */ + /** .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; */ public Builder setError(com.google.showcase.v1beta1.ErrorWithMultipleDetails value) { if (errorBuilder_ == null) { if (value == null) { @@ -1120,9 +1191,7 @@ public Builder setError(com.google.showcase.v1beta1.ErrorWithMultipleDetails val onChanged(); return this; } - /** - * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; - */ + /** .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; */ public Builder setError( com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder builderForValue) { if (errorBuilder_ == null) { @@ -1134,14 +1203,13 @@ public Builder setError( onChanged(); return this; } - /** - * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; - */ + /** .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; */ public Builder mergeError(com.google.showcase.v1beta1.ErrorWithMultipleDetails value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - error_ != null && - error_ != com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && error_ != null + && error_ + != com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -1155,9 +1223,7 @@ public Builder mergeError(com.google.showcase.v1beta1.ErrorWithMultipleDetails v } return this; } - /** - * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; - */ + /** .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000001); error_ = null; @@ -1168,41 +1234,40 @@ public Builder clearError() { onChanged(); return this; } - /** - * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; - */ + /** .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; */ public com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder getErrorBuilder() { bitField0_ |= 0x00000001; onChanged(); return getErrorFieldBuilder().getBuilder(); } - /** - * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; - */ + /** .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; */ public com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { - return error_ == null ? - com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance() : error_; + return error_ == null + ? com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance() + : error_; } } - /** - * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; - */ + /** .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.ErrorWithMultipleDetails, com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder, com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder> + com.google.showcase.v1beta1.ErrorWithMultipleDetails, + com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder, + com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.ErrorWithMultipleDetails, com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder, com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder>( - getError(), - getParentForChildren(), - isClean()); + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ErrorWithMultipleDetails, + com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder, + com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder>( + getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1215,41 +1280,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) - private static final com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails DEFAULT_INSTANCE; + private static final com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails(); } - public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails getDefaultInstance() { + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MultipleDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultipleDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1261,10 +1329,10 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails getDefaultInstanceForType() { + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; @@ -1272,6 +1340,7 @@ public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails getD private com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail singleDetail_; /** * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * * @return Whether the singleDetail field is set. */ @java.lang.Override @@ -1280,24 +1349,32 @@ public boolean hasSingleDetail() { } /** * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * * @return The singleDetail. */ @java.lang.Override public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail getSingleDetail() { - return singleDetail_ == null ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance() : singleDetail_; + return singleDetail_ == null + ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance() + : singleDetail_; } /** * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; */ @java.lang.Override - public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder getSingleDetailOrBuilder() { - return singleDetail_ == null ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance() : singleDetail_; + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder + getSingleDetailOrBuilder() { + return singleDetail_ == null + ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance() + : singleDetail_; } public static final int MULTIPLE_DETAILS_FIELD_NUMBER = 2; private com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multipleDetails_; /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * + * * @return Whether the multipleDetails field is set. */ @java.lang.Override @@ -1305,22 +1382,31 @@ public boolean hasMultipleDetails() { return ((bitField0_ & 0x00000002) != 0); } /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * + * * @return The multipleDetails. */ @java.lang.Override public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails getMultipleDetails() { - return multipleDetails_ == null ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.getDefaultInstance() : multipleDetails_; + return multipleDetails_ == null + ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.getDefaultInstance() + : multipleDetails_; } /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * */ @java.lang.Override - public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder getMultipleDetailsOrBuilder() { - return multipleDetails_ == null ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.getDefaultInstance() : multipleDetails_; + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder + getMultipleDetailsOrBuilder() { + return multipleDetails_ == null + ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.getDefaultInstance() + : multipleDetails_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1332,8 +1418,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSingleDetail()); } @@ -1350,12 +1435,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSingleDetail()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSingleDetail()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMultipleDetails()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMultipleDetails()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1365,22 +1448,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.EchoErrorDetailsResponse)) { return super.equals(obj); } - com.google.showcase.v1beta1.EchoErrorDetailsResponse other = (com.google.showcase.v1beta1.EchoErrorDetailsResponse) obj; + com.google.showcase.v1beta1.EchoErrorDetailsResponse other = + (com.google.showcase.v1beta1.EchoErrorDetailsResponse) obj; if (hasSingleDetail() != other.hasSingleDetail()) return false; if (hasSingleDetail()) { - if (!getSingleDetail() - .equals(other.getSingleDetail())) return false; + if (!getSingleDetail().equals(other.getSingleDetail())) return false; } if (hasMultipleDetails() != other.hasMultipleDetails()) return false; if (hasMultipleDetails()) { - if (!getMultipleDetails() - .equals(other.getMultipleDetails())) return false; + if (!getMultipleDetails().equals(other.getMultipleDetails())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1407,119 +1489,126 @@ public int hashCode() { } public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.EchoErrorDetailsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response message used for the EchoErrorDetails method.
    * 
* * Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EchoErrorDetailsResponse) com.google.showcase.v1beta1.EchoErrorDetailsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.EchoErrorDetailsResponse.class, com.google.showcase.v1beta1.EchoErrorDetailsResponse.Builder.class); + com.google.showcase.v1beta1.EchoErrorDetailsResponse.class, + com.google.showcase.v1beta1.EchoErrorDetailsResponse.Builder.class); } // Construct using com.google.showcase.v1beta1.EchoErrorDetailsResponse.newBuilder() @@ -1527,18 +1616,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSingleDetailFieldBuilder(); getMultipleDetailsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1557,9 +1646,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor; } @java.lang.Override @@ -1578,8 +1667,11 @@ public com.google.showcase.v1beta1.EchoErrorDetailsResponse build() { @java.lang.Override public com.google.showcase.v1beta1.EchoErrorDetailsResponse buildPartial() { - com.google.showcase.v1beta1.EchoErrorDetailsResponse result = new com.google.showcase.v1beta1.EchoErrorDetailsResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.EchoErrorDetailsResponse result = + new com.google.showcase.v1beta1.EchoErrorDetailsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1588,15 +1680,13 @@ private void buildPartial0(com.google.showcase.v1beta1.EchoErrorDetailsResponse int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.singleDetail_ = singleDetailBuilder_ == null - ? singleDetail_ - : singleDetailBuilder_.build(); + result.singleDetail_ = + singleDetailBuilder_ == null ? singleDetail_ : singleDetailBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.multipleDetails_ = multipleDetailsBuilder_ == null - ? multipleDetails_ - : multipleDetailsBuilder_.build(); + result.multipleDetails_ = + multipleDetailsBuilder_ == null ? multipleDetails_ : multipleDetailsBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -1606,38 +1696,39 @@ private void buildPartial0(com.google.showcase.v1beta1.EchoErrorDetailsResponse public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.EchoErrorDetailsResponse) { - return mergeFrom((com.google.showcase.v1beta1.EchoErrorDetailsResponse)other); + return mergeFrom((com.google.showcase.v1beta1.EchoErrorDetailsResponse) other); } else { super.mergeFrom(other); return this; @@ -1645,7 +1736,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.EchoErrorDetailsResponse other) { - if (other == com.google.showcase.v1beta1.EchoErrorDetailsResponse.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.EchoErrorDetailsResponse.getDefaultInstance()) + return this; if (other.hasSingleDetail()) { mergeSingleDetail(other.getSingleDetail()); } @@ -1678,26 +1770,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSingleDetailFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getMultipleDetailsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getSingleDetailFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getMultipleDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1707,33 +1798,45 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail singleDetail_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail, com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder, com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder> singleDetailBuilder_; + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail, + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder, + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder> + singleDetailBuilder_; /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * + * * @return Whether the singleDetail field is set. */ public boolean hasSingleDetail() { return ((bitField0_ & 0x00000001) != 0); } /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * + * * @return The singleDetail. */ public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail getSingleDetail() { if (singleDetailBuilder_ == null) { - return singleDetail_ == null ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance() : singleDetail_; + return singleDetail_ == null + ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance() + : singleDetail_; } else { return singleDetailBuilder_.getMessage(); } } /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * */ - public Builder setSingleDetail(com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail value) { + public Builder setSingleDetail( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail value) { if (singleDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1747,7 +1850,8 @@ public Builder setSingleDetail(com.google.showcase.v1beta1.EchoErrorDetailsRespo return this; } /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * */ public Builder setSingleDetail( com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder builderForValue) { @@ -1761,13 +1865,17 @@ public Builder setSingleDetail( return this; } /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * */ - public Builder mergeSingleDetail(com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail value) { + public Builder mergeSingleDetail( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail value) { if (singleDetailBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - singleDetail_ != null && - singleDetail_ != com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && singleDetail_ != null + && singleDetail_ + != com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail + .getDefaultInstance()) { getSingleDetailBuilder().mergeFrom(value); } else { singleDetail_ = value; @@ -1782,7 +1890,8 @@ public Builder mergeSingleDetail(com.google.showcase.v1beta1.EchoErrorDetailsRes return this; } /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * */ public Builder clearSingleDetail() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1795,36 +1904,45 @@ public Builder clearSingleDetail() { return this; } /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * */ - public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder getSingleDetailBuilder() { + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder + getSingleDetailBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSingleDetailFieldBuilder().getBuilder(); } /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * */ - public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder getSingleDetailOrBuilder() { + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder + getSingleDetailOrBuilder() { if (singleDetailBuilder_ != null) { return singleDetailBuilder_.getMessageOrBuilder(); } else { - return singleDetail_ == null ? - com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance() : singleDetail_; + return singleDetail_ == null + ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance() + : singleDetail_; } } /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail, com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder, com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder> + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail, + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder, + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder> getSingleDetailFieldBuilder() { if (singleDetailBuilder_ == null) { - singleDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail, com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder, com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder>( - getSingleDetail(), - getParentForChildren(), - isClean()); + singleDetailBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail, + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder, + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder>( + getSingleDetail(), getParentForChildren(), isClean()); singleDetail_ = null; } return singleDetailBuilder_; @@ -1832,29 +1950,42 @@ public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilde private com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multipleDetails_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails, com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder, com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder> multipleDetailsBuilder_; + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails, + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder, + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder> + multipleDetailsBuilder_; /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * + * * @return Whether the multipleDetails field is set. */ public boolean hasMultipleDetails() { return ((bitField0_ & 0x00000002) != 0); } /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * + * * @return The multipleDetails. */ - public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails getMultipleDetails() { + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails + getMultipleDetails() { if (multipleDetailsBuilder_ == null) { - return multipleDetails_ == null ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.getDefaultInstance() : multipleDetails_; + return multipleDetails_ == null + ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails + .getDefaultInstance() + : multipleDetails_; } else { return multipleDetailsBuilder_.getMessage(); } } /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * */ - public Builder setMultipleDetails(com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails value) { + public Builder setMultipleDetails( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails value) { if (multipleDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1868,10 +1999,12 @@ public Builder setMultipleDetails(com.google.showcase.v1beta1.EchoErrorDetailsRe return this; } /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * */ public Builder setMultipleDetails( - com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder builderForValue) { + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder + builderForValue) { if (multipleDetailsBuilder_ == null) { multipleDetails_ = builderForValue.build(); } else { @@ -1882,13 +2015,17 @@ public Builder setMultipleDetails( return this; } /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * */ - public Builder mergeMultipleDetails(com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails value) { + public Builder mergeMultipleDetails( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails value) { if (multipleDetailsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - multipleDetails_ != null && - multipleDetails_ != com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && multipleDetails_ != null + && multipleDetails_ + != com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails + .getDefaultInstance()) { getMultipleDetailsBuilder().mergeFrom(value); } else { multipleDetails_ = value; @@ -1903,7 +2040,8 @@ public Builder mergeMultipleDetails(com.google.showcase.v1beta1.EchoErrorDetails return this; } /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * */ public Builder clearMultipleDetails() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1916,43 +2054,53 @@ public Builder clearMultipleDetails() { return this; } /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * */ - public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder getMultipleDetailsBuilder() { + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder + getMultipleDetailsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMultipleDetailsFieldBuilder().getBuilder(); } /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * */ - public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder getMultipleDetailsOrBuilder() { + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder + getMultipleDetailsOrBuilder() { if (multipleDetailsBuilder_ != null) { return multipleDetailsBuilder_.getMessageOrBuilder(); } else { - return multipleDetails_ == null ? - com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.getDefaultInstance() : multipleDetails_; + return multipleDetails_ == null + ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails + .getDefaultInstance() + : multipleDetails_; } } /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails, com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder, com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder> + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails, + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder, + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder> getMultipleDetailsFieldBuilder() { if (multipleDetailsBuilder_ == null) { - multipleDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails, com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder, com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder>( - getMultipleDetails(), - getParentForChildren(), - isClean()); + multipleDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails, + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder, + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder>( + getMultipleDetails(), getParentForChildren(), isClean()); multipleDetails_ = null; } return multipleDetailsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1962,12 +2110,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.EchoErrorDetailsResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EchoErrorDetailsResponse) private static final com.google.showcase.v1beta1.EchoErrorDetailsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EchoErrorDetailsResponse(); } @@ -1976,27 +2124,27 @@ public static com.google.showcase.v1beta1.EchoErrorDetailsResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EchoErrorDetailsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EchoErrorDetailsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2011,6 +2159,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.EchoErrorDetailsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsResponseOrBuilder.java similarity index 60% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsResponseOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsResponseOrBuilder.java index d2bbb5e349..54666fc9b5 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsResponseOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsResponseOrBuilder.java @@ -1,40 +1,65 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface EchoErrorDetailsResponseOrBuilder extends +public interface EchoErrorDetailsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EchoErrorDetailsResponse) com.google.protobuf.MessageOrBuilder { /** * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * * @return Whether the singleDetail field is set. */ boolean hasSingleDetail(); /** * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * * @return The singleDetail. */ com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail getSingleDetail(); /** * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; */ - com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder getSingleDetailOrBuilder(); + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder + getSingleDetailOrBuilder(); /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * + * * @return Whether the multipleDetails field is set. */ boolean hasMultipleDetails(); /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * + * * @return The multipleDetails. */ com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails getMultipleDetails(); /** - * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * */ - com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder getMultipleDetailsOrBuilder(); + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder + getMultipleDetailsOrBuilder(); } diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java new file mode 100644 index 0000000000..efd0bc4290 --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java @@ -0,0 +1,447 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public final class EchoOuterClass { + private EchoOuterClass() {} + + 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_showcase_v1beta1_EchoRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_EchoRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_EchoResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_EchoResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ExpandRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ExpandRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_PagedExpandRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_PagedExpandResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_PagedExpandResponseList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_WaitRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_WaitRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_WaitResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_WaitResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_WaitMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_WaitMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_BlockRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_BlockRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_BlockResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_BlockResponse_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)schema/google/showcase/v1beta1/echo.pr" + + "oto\022\027google.showcase.v1beta1\032\034google/api" + + "/annotations.proto\032\027google/api/client.pr" + + "oto\032\037google/api/field_behavior.proto\032\033go" + + "ogle/api/field_info.proto\032\030google/api/ro" + + "uting.proto\032#google/longrunning/operatio" + + "ns.proto\032\031google/protobuf/any.proto\032\036goo" + + "gle/protobuf/duration.proto\032\037google/prot" + + "obuf/timestamp.proto\032\027google/rpc/status." + + "proto\"\210\002\n\013EchoRequest\022\021\n\007content\030\001 \001(\tH\000" + + "\022#\n\005error\030\002 \001(\0132\022.google.rpc.StatusH\000\0223\n" + + "\010severity\030\003 \001(\0162!.google.showcase.v1beta" + + "1.Severity\022\016\n\006header\030\004 \001(\t\022\024\n\014other_head" + + "er\030\005 \001(\t\022\034\n\nrequest_id\030\007 \001(\tB\010\342\214\317\327\010\002\010\001\022\'" + + "\n\020other_request_id\030\010 \001(\tB\010\342\214\317\327\010\002\010\001H\001\210\001\001B" + + "\n\n\010responseB\023\n\021_other_request_id\"\202\001\n\014Ech" + + "oResponse\022\017\n\007content\030\001 \001(\t\0223\n\010severity\030\002" + + " \001(\0162!.google.showcase.v1beta1.Severity\022" + + "\022\n\nrequest_id\030\003 \001(\t\022\030\n\020other_request_id\030" + + "\004 \001(\t\"P\n\027EchoErrorDetailsRequest\022\032\n\022sing" + + "le_detail_text\030\001 \001(\t\022\031\n\021multi_detail_tex" + + "t\030\002 \003(\t\"\362\002\n\030EchoErrorDetailsResponse\022U\n\r" + + "single_detail\030\001 \001(\0132>.google.showcase.v1" + + "beta1.EchoErrorDetailsResponse.SingleDet" + + "ail\022[\n\020multiple_details\030\002 \001(\0132A.google.s" + + "howcase.v1beta1.EchoErrorDetailsResponse" + + ".MultipleDetails\032M\n\014SingleDetail\022=\n\005erro" + + "r\030\001 \001(\0132..google.showcase.v1beta1.ErrorW" + + "ithSingleDetail\032S\n\017MultipleDetails\022@\n\005er" + + "ror\030\001 \001(\01321.google.showcase.v1beta1.Erro" + + "rWithMultipleDetails\">\n\025ErrorWithSingleD" + + "etail\022%\n\007details\030\001 \001(\0132\024.google.protobuf" + + ".Any\"A\n\030ErrorWithMultipleDetails\022%\n\007deta" + + "ils\030\001 \003(\0132\024.google.protobuf.Any\"x\n\rExpan" + + "dRequest\022\017\n\007content\030\001 \001(\t\022!\n\005error\030\002 \001(\013" + + "2\022.google.rpc.Status\0223\n\020stream_wait_time" + + "\030\003 \001(\0132\031.google.protobuf.Duration\"Q\n\022Pag" + + "edExpandRequest\022\024\n\007content\030\001 \001(\tB\003\340A\002\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"Y\n\030" + + "PagedExpandLegacyRequest\022\024\n\007content\030\001 \001(" + + "\tB\003\340A\002\022\023\n\013max_results\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\"h\n\023PagedExpandResponse\0228\n\trespon" + + "ses\030\001 \003(\0132%.google.showcase.v1beta1.Echo" + + "Response\022\027\n\017next_page_token\030\002 \001(\t\"(\n\027Pag" + + "edExpandResponseList\022\r\n\005words\030\001 \003(\t\"\203\002\n\037" + + "PagedExpandLegacyMappedResponse\022`\n\014alpha" + + "betized\030\001 \003(\0132J.google.showcase.v1beta1." + + "PagedExpandLegacyMappedResponse.Alphabet" + + "izedEntry\022\027\n\017next_page_token\030\002 \001(\t\032e\n\021Al" + + "phabetizedEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 " + + "\001(\01320.google.showcase.v1beta1.PagedExpan" + + "dResponseList:\0028\001\"\331\001\n\013WaitRequest\022.\n\010end" + + "_time\030\001 \001(\0132\032.google.protobuf.TimestampH" + + "\000\022(\n\003ttl\030\004 \001(\0132\031.google.protobuf.Duratio" + + "nH\000\022#\n\005error\030\002 \001(\0132\022.google.rpc.StatusH\001" + + "\0228\n\007success\030\003 \001(\0132%.google.showcase.v1be" + + "ta1.WaitResponseH\001B\005\n\003endB\n\n\010response\"\037\n" + + "\014WaitResponse\022\017\n\007content\030\001 \001(\t\"<\n\014WaitMe" + + "tadata\022,\n\010end_time\030\001 \001(\0132\032.google.protob" + + "uf.Timestamp\"\255\001\n\014BlockRequest\0221\n\016respons" + + "e_delay\030\001 \001(\0132\031.google.protobuf.Duration" + + "\022#\n\005error\030\002 \001(\0132\022.google.rpc.StatusH\000\0229\n" + + "\007success\030\003 \001(\0132&.google.showcase.v1beta1" + + ".BlockResponseH\000B\n\n\010response\" \n\rBlockRes" + + "ponse\022\017\n\007content\030\001 \001(\t*D\n\010Severity\022\017\n\013UN" + + "NECESSARY\020\000\022\r\n\tNECESSARY\020\001\022\n\n\006URGENT\020\002\022\014" + + "\n\010CRITICAL\020\0032\262\r\n\004Echo\022\224\003\n\004Echo\022$.google." + + "showcase.v1beta1.EchoRequest\032%.google.sh" + + "owcase.v1beta1.EchoResponse\"\276\002\202\323\344\223\002\027\"\022/v" + + "1beta1/echo:echo:\001*\212\323\344\223\002\232\002\022\010\n\006header\022\031\n\006" + + "header\022\017{routing_id=**}\022+\n\006header\022!{tabl" + + "e_name=regions/*/zones/*/**}\022\"\n\006header\022\030" + + "{super_id=projects/*}/**\0220\n\006header\022&{tab" + + "le_name=projects/*/instances/*/**}\0221\n\006he" + + "ader\022\'projects/*/{instance_id=instances/" + + "*}/**\022\030\n\014other_header\022\010{baz=**}\022#\n\014other" + + "_header\022\023{qux=projects/*}/**\022\237\001\n\020EchoErr" + + "orDetails\0220.google.showcase.v1beta1.Echo" + + "ErrorDetailsRequest\0321.google.showcase.v1" + + "beta1.EchoErrorDetailsResponse\"&\202\323\344\223\002 \"\033" + + "/v1beta1/echo:error-details:\001*\022\212\001\n\006Expan" + + "d\022&.google.showcase.v1beta1.ExpandReques" + + "t\032%.google.showcase.v1beta1.EchoResponse" + + "\"/\332A\rcontent,error\202\323\344\223\002\031\"\024/v1beta1/echo:" + + "expand:\001*0\001\022z\n\007Collect\022$.google.showcase" + + ".v1beta1.EchoRequest\032%.google.showcase.v" + + "1beta1.EchoResponse\" \202\323\344\223\002\032\"\025/v1beta1/ec" + + "ho:collect:\001*(\001\022W\n\004Chat\022$.google.showcas" + + "e.v1beta1.EchoRequest\032%.google.showcase." + + "v1beta1.EchoResponse(\0010\001\022\216\001\n\013PagedExpand" + + "\022+.google.showcase.v1beta1.PagedExpandRe" + + "quest\032,.google.showcase.v1beta1.PagedExp" + + "andResponse\"$\202\323\344\223\002\036\"\031/v1beta1/echo:paged" + + "Expand:\001*\022\240\001\n\021PagedExpandLegacy\0221.google" + + ".showcase.v1beta1.PagedExpandLegacyReque" + + "st\032,.google.showcase.v1beta1.PagedExpand" + + "Response\"*\202\323\344\223\002$\"\037/v1beta1/echo:pagedExp" + + "andLegacy:\001*\022\262\001\n\027PagedExpandLegacyMapped" + + "\022+.google.showcase.v1beta1.PagedExpandRe" + + "quest\0328.google.showcase.v1beta1.PagedExp" + + "andLegacyMappedResponse\"0\202\323\344\223\002*\"%/v1beta" + + "1/echo:pagedExpandLegacyMapped:\001*\022\211\001\n\004Wa" + + "it\022$.google.showcase.v1beta1.WaitRequest" + + "\032\035.google.longrunning.Operation\"<\312A\034\n\014Wa" + + "itResponse\022\014WaitMetadata\202\323\344\223\002\027\"\022/v1beta1" + + "/echo:wait:\001*\022v\n\005Block\022%.google.showcase" + + ".v1beta1.BlockRequest\032&.google.showcase." + + "v1beta1.BlockResponse\"\036\202\323\344\223\002\030\"\023/v1beta1/" + + "echo:block:\001*\032\"\312A\016localhost:7469\212\324\333\322\017\013v1" + + "_20240408Bq\n\033com.google.showcase.v1beta1" + + "P\001Z4github.com/googleapis/gapic-showcase" + + "/server/genproto\352\002\031Google::Showcase::V1b" + + "eta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), + com.google.api.RoutingProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_showcase_v1beta1_EchoRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_showcase_v1beta1_EchoRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_EchoRequest_descriptor, + new java.lang.String[] { + "Content", + "Error", + "Severity", + "Header", + "OtherHeader", + "RequestId", + "OtherRequestId", + "Response", + }); + internal_static_google_showcase_v1beta1_EchoResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_showcase_v1beta1_EchoResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_EchoResponse_descriptor, + new java.lang.String[] { + "Content", "Severity", "RequestId", "OtherRequestId", + }); + internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_descriptor, + new java.lang.String[] { + "SingleDetailText", "MultiDetailText", + }); + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor, + new java.lang.String[] { + "SingleDetail", "MultipleDetails", + }); + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor = + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor, + new java.lang.String[] { + "Error", + }); + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor = + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor + .getNestedTypes() + .get(1); + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor, + new java.lang.String[] { + "Error", + }); + internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_descriptor, + new java.lang.String[] { + "Details", + }); + internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_descriptor, + new java.lang.String[] { + "Details", + }); + internal_static_google_showcase_v1beta1_ExpandRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_showcase_v1beta1_ExpandRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ExpandRequest_descriptor, + new java.lang.String[] { + "Content", "Error", "StreamWaitTime", + }); + internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_showcase_v1beta1_PagedExpandRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor, + new java.lang.String[] { + "Content", "PageSize", "PageToken", + }); + internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor, + new java.lang.String[] { + "Content", "MaxResults", "PageToken", + }); + internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_showcase_v1beta1_PagedExpandResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor, + new java.lang.String[] { + "Responses", "NextPageToken", + }); + internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_showcase_v1beta1_PagedExpandResponseList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor, + new java.lang.String[] { + "Words", + }); + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor, + new java.lang.String[] { + "Alphabetized", "NextPageToken", + }); + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_descriptor = + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_showcase_v1beta1_WaitRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_showcase_v1beta1_WaitRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_WaitRequest_descriptor, + new java.lang.String[] { + "EndTime", "Ttl", "Error", "Success", "End", "Response", + }); + internal_static_google_showcase_v1beta1_WaitResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_showcase_v1beta1_WaitResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_WaitResponse_descriptor, + new java.lang.String[] { + "Content", + }); + internal_static_google_showcase_v1beta1_WaitMetadata_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_showcase_v1beta1_WaitMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_WaitMetadata_descriptor, + new java.lang.String[] { + "EndTime", + }); + internal_static_google_showcase_v1beta1_BlockRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_showcase_v1beta1_BlockRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_BlockRequest_descriptor, + new java.lang.String[] { + "ResponseDelay", "Error", "Success", "Response", + }); + internal_static_google_showcase_v1beta1_BlockResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_showcase_v1beta1_BlockResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_BlockResponse_descriptor, + new java.lang.String[] { + "Content", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.apiVersion); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.RoutingProto.routing); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.RoutingProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequest.java similarity index 73% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequest.java index 840e963095..06d72ba906 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request message used for the Echo, Collect and Chat methods.
  * If content or opt are set in this message then the request will succeed.
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.EchoRequest}
  */
-public final class EchoRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class EchoRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EchoRequest)
     EchoRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use EchoRequest.newBuilder() to construct.
   private EchoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private EchoRequest() {
     severity_ = 0;
     header_ = "";
@@ -33,35 +51,40 @@ private EchoRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new EchoRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.EchoOuterClass
+        .internal_static_google_showcase_v1beta1_EchoRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.EchoOuterClass
+        .internal_static_google_showcase_v1beta1_EchoRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.EchoRequest.class, com.google.showcase.v1beta1.EchoRequest.Builder.class);
+            com.google.showcase.v1beta1.EchoRequest.class,
+            com.google.showcase.v1beta1.EchoRequest.Builder.class);
   }
 
   private int bitField0_;
   private int responseCase_ = 0;
+
   @SuppressWarnings("serial")
   private java.lang.Object response_;
+
   public enum ResponseCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONTENT(1),
     ERROR(2),
     RESPONSE_NOT_SET(0);
     private final int value;
+
     private ResponseCase(int value) {
       this.value = value;
     }
@@ -77,41 +100,50 @@ public static ResponseCase valueOf(int value) {
 
     public static ResponseCase forNumber(int value) {
       switch (value) {
-        case 1: return CONTENT;
-        case 2: return ERROR;
-        case 0: return RESPONSE_NOT_SET;
-        default: return null;
+        case 1:
+          return CONTENT;
+        case 2:
+          return ERROR;
+        case 0:
+          return RESPONSE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ResponseCase
-  getResponseCase() {
-    return ResponseCase.forNumber(
-        responseCase_);
+  public ResponseCase getResponseCase() {
+    return ResponseCase.forNumber(responseCase_);
   }
 
   public static final int CONTENT_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * The content to be echoed by the server.
    * 
* * string content = 1; + * * @return Whether the content field is set. */ public boolean hasContent() { return responseCase_ == 1; } /** + * + * *
    * The content to be echoed by the server.
    * 
* * string content = 1; + * * @return The content. */ public java.lang.String getContent() { @@ -122,8 +154,7 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (responseCase_ == 1) { response_ = s; @@ -132,23 +163,24 @@ public java.lang.String getContent() { } } /** + * + * *
    * The content to be echoed by the server.
    * 
* * string content = 1; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = ""; if (responseCase_ == 1) { ref = response_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (responseCase_ == 1) { response_ = b; } @@ -160,11 +192,14 @@ public java.lang.String getContent() { public static final int ERROR_FIELD_NUMBER = 2; /** + * + * *
    * The error to be thrown by the server.
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ @java.lang.Override @@ -172,21 +207,26 @@ public boolean hasError() { return responseCase_ == 2; } /** + * + * *
    * The error to be thrown by the server.
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ @java.lang.Override public com.google.rpc.Status getError() { if (responseCase_ == 2) { - return (com.google.rpc.Status) response_; + return (com.google.rpc.Status) response_; } return com.google.rpc.Status.getDefaultInstance(); } /** + * + * *
    * The error to be thrown by the server.
    * 
@@ -196,7 +236,7 @@ public com.google.rpc.Status getError() { @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (responseCase_ == 2) { - return (com.google.rpc.Status) response_; + return (com.google.rpc.Status) response_; } return com.google.rpc.Status.getDefaultInstance(); } @@ -204,38 +244,51 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { public static final int SEVERITY_FIELD_NUMBER = 3; private int severity_ = 0; /** + * + * *
    * The severity to be echoed by the server.
    * 
* * .google.showcase.v1beta1.Severity severity = 3; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
    * The severity to be echoed by the server.
    * 
* * .google.showcase.v1beta1.Severity severity = 3; + * * @return The severity. */ - @java.lang.Override public com.google.showcase.v1beta1.Severity getSeverity() { - com.google.showcase.v1beta1.Severity result = com.google.showcase.v1beta1.Severity.forNumber(severity_); + @java.lang.Override + public com.google.showcase.v1beta1.Severity getSeverity() { + com.google.showcase.v1beta1.Severity result = + com.google.showcase.v1beta1.Severity.forNumber(severity_); return result == null ? com.google.showcase.v1beta1.Severity.UNRECOGNIZED : result; } public static final int HEADER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object header_ = ""; /** + * + * *
    * Optional. This field can be set to test the routing annotation on the Echo method.
    * 
* * string header = 4; + * * @return The header. */ @java.lang.Override @@ -244,29 +297,29 @@ public java.lang.String getHeader() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); header_ = s; return s; } } /** + * + * *
    * Optional. This field can be set to test the routing annotation on the Echo method.
    * 
* * string header = 4; + * * @return The bytes for header. */ @java.lang.Override - public com.google.protobuf.ByteString - getHeaderBytes() { + public com.google.protobuf.ByteString getHeaderBytes() { java.lang.Object ref = header_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); header_ = b; return b; } else { @@ -275,14 +328,18 @@ public java.lang.String getHeader() { } public static final int OTHER_HEADER_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object otherHeader_ = ""; /** + * + * *
    * Optional. This field can be set to test the routing annotation on the Echo method.
    * 
* * string other_header = 5; + * * @return The otherHeader. */ @java.lang.Override @@ -291,29 +348,29 @@ public java.lang.String getOtherHeader() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); otherHeader_ = s; return s; } } /** + * + * *
    * Optional. This field can be set to test the routing annotation on the Echo method.
    * 
* * string other_header = 5; + * * @return The bytes for otherHeader. */ @java.lang.Override - public com.google.protobuf.ByteString - getOtherHeaderBytes() { + public com.google.protobuf.ByteString getOtherHeaderBytes() { java.lang.Object ref = otherHeader_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); otherHeader_ = b; return b; } else { @@ -322,14 +379,18 @@ public java.lang.String getOtherHeader() { } public static final int REQUEST_ID_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * To facilitate testing of https://google.aip.dev/client-libraries/4235
    * 
* * string request_id = 7 [(.google.api.field_info) = { ... } + * * @return The requestId. */ @java.lang.Override @@ -338,29 +399,29 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * To facilitate testing of https://google.aip.dev/client-libraries/4235
    * 
* * string request_id = 7 [(.google.api.field_info) = { ... } + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -369,14 +430,18 @@ public java.lang.String getRequestId() { } public static final int OTHER_REQUEST_ID_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object otherRequestId_ = ""; /** + * + * *
    * To facilitate testing of https://google.aip.dev/client-libraries/4235
    * 
* * optional string other_request_id = 8 [(.google.api.field_info) = { ... } + * * @return Whether the otherRequestId field is set. */ @java.lang.Override @@ -384,11 +449,14 @@ public boolean hasOtherRequestId() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * To facilitate testing of https://google.aip.dev/client-libraries/4235
    * 
* * optional string other_request_id = 8 [(.google.api.field_info) = { ... } + * * @return The otherRequestId. */ @java.lang.Override @@ -397,29 +465,29 @@ public java.lang.String getOtherRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); otherRequestId_ = s; return s; } } /** + * + * *
    * To facilitate testing of https://google.aip.dev/client-libraries/4235
    * 
* * optional string other_request_id = 8 [(.google.api.field_info) = { ... } + * * @return The bytes for otherRequestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getOtherRequestIdBytes() { + public com.google.protobuf.ByteString getOtherRequestIdBytes() { java.lang.Object ref = otherRequestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); otherRequestId_ = b; return b; } else { @@ -428,6 +496,7 @@ public java.lang.String getOtherRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -439,8 +508,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (responseCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, response_); } @@ -475,12 +543,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, response_); } if (responseCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.rpc.Status) response_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.rpc.Status) response_); } if (severity_ != com.google.showcase.v1beta1.Severity.UNNECESSARY.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, severity_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(header_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, header_); @@ -502,7 +570,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.EchoRequest)) { return super.equals(obj); @@ -510,26 +578,20 @@ public boolean equals(final java.lang.Object obj) { com.google.showcase.v1beta1.EchoRequest other = (com.google.showcase.v1beta1.EchoRequest) obj; if (severity_ != other.severity_) return false; - if (!getHeader() - .equals(other.getHeader())) return false; - if (!getOtherHeader() - .equals(other.getOtherHeader())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getHeader().equals(other.getHeader())) return false; + if (!getOtherHeader().equals(other.getOtherHeader())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (hasOtherRequestId() != other.hasOtherRequestId()) return false; if (hasOtherRequestId()) { - if (!getOtherRequestId() - .equals(other.getOtherRequestId())) return false; + if (!getOtherRequestId().equals(other.getOtherRequestId())) return false; } if (!getResponseCase().equals(other.getResponseCase())) return false; switch (responseCase_) { case 1: - if (!getContent() - .equals(other.getContent())) return false; + if (!getContent().equals(other.getContent())) return false; break; case 2: - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; break; case 0: default: @@ -574,99 +636,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.EchoRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.EchoRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EchoRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.EchoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EchoRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.EchoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EchoRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.EchoRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EchoRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.EchoRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.EchoRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.EchoRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.EchoRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EchoRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.EchoRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message used for the Echo, Collect and Chat methods.
    * If content or opt are set in this message then the request will succeed.
@@ -676,33 +743,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.EchoRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EchoRequest)
       com.google.showcase.v1beta1.EchoRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.EchoOuterClass
+          .internal_static_google_showcase_v1beta1_EchoRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.EchoOuterClass
+          .internal_static_google_showcase_v1beta1_EchoRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.EchoRequest.class, com.google.showcase.v1beta1.EchoRequest.Builder.class);
+              com.google.showcase.v1beta1.EchoRequest.class,
+              com.google.showcase.v1beta1.EchoRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.EchoRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -721,9 +787,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.EchoOuterClass
+          .internal_static_google_showcase_v1beta1_EchoRequest_descriptor;
     }
 
     @java.lang.Override
@@ -742,8 +808,11 @@ public com.google.showcase.v1beta1.EchoRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.EchoRequest buildPartial() {
-      com.google.showcase.v1beta1.EchoRequest result = new com.google.showcase.v1beta1.EchoRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.EchoRequest result =
+          new com.google.showcase.v1beta1.EchoRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -774,8 +843,7 @@ private void buildPartial0(com.google.showcase.v1beta1.EchoRequest result) {
     private void buildPartialOneofs(com.google.showcase.v1beta1.EchoRequest result) {
       result.responseCase_ = responseCase_;
       result.response_ = this.response_;
-      if (responseCase_ == 2 &&
-          errorBuilder_ != null) {
+      if (responseCase_ == 2 && errorBuilder_ != null) {
         result.response_ = errorBuilder_.build();
       }
     }
@@ -784,38 +852,39 @@ private void buildPartialOneofs(com.google.showcase.v1beta1.EchoRequest result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.EchoRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.EchoRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.EchoRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -848,19 +917,22 @@ public Builder mergeFrom(com.google.showcase.v1beta1.EchoRequest other) {
         onChanged();
       }
       switch (other.getResponseCase()) {
-        case CONTENT: {
-          responseCase_ = 1;
-          response_ = other.response_;
-          onChanged();
-          break;
-        }
-        case ERROR: {
-          mergeError(other.getError());
-          break;
-        }
-        case RESPONSE_NOT_SET: {
-          break;
-        }
+        case CONTENT:
+          {
+            responseCase_ = 1;
+            response_ = other.response_;
+            onChanged();
+            break;
+          }
+        case ERROR:
+          {
+            mergeError(other.getError());
+            break;
+          }
+        case RESPONSE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -888,50 +960,56 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              responseCase_ = 1;
-              response_ = s;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              responseCase_ = 2;
-              break;
-            } // case 18
-            case 24: {
-              severity_ = input.readEnum();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 34: {
-              header_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              otherHeader_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 58: {
-              requestId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 58
-            case 66: {
-              otherRequestId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 66
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                responseCase_ = 1;
+                response_ = s;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
+                responseCase_ = 2;
+                break;
+              } // case 18
+            case 24:
+              {
+                severity_ = input.readEnum();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 34:
+              {
+                header_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                otherHeader_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 58:
+              {
+                requestId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 58
+            case 66:
+              {
+                otherRequestId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 66
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -941,12 +1019,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int responseCase_ = 0;
     private java.lang.Object response_;
-    public ResponseCase
-        getResponseCase() {
-      return ResponseCase.forNumber(
-          responseCase_);
+
+    public ResponseCase getResponseCase() {
+      return ResponseCase.forNumber(responseCase_);
     }
 
     public Builder clearResponse() {
@@ -959,11 +1037,14 @@ public Builder clearResponse() {
     private int bitField0_;
 
     /**
+     *
+     *
      * 
      * The content to be echoed by the server.
      * 
* * string content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -971,11 +1052,14 @@ public boolean hasContent() { return responseCase_ == 1; } /** + * + * *
      * The content to be echoed by the server.
      * 
* * string content = 1; + * * @return The content. */ @java.lang.Override @@ -985,8 +1069,7 @@ public java.lang.String getContent() { ref = response_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (responseCase_ == 1) { response_ = s; @@ -997,24 +1080,25 @@ public java.lang.String getContent() { } } /** + * + * *
      * The content to be echoed by the server.
      * 
* * string content = 1; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = ""; if (responseCase_ == 1) { ref = response_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (responseCase_ == 1) { response_ = b; } @@ -1024,28 +1108,35 @@ public java.lang.String getContent() { } } /** + * + * *
      * The content to be echoed by the server.
      * 
* * string content = 1; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } responseCase_ = 1; response_ = value; onChanged(); return this; } /** + * + * *
      * The content to be echoed by the server.
      * 
* * string content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -1057,17 +1148,21 @@ public Builder clearContent() { return this; } /** + * + * *
      * The content to be echoed by the server.
      * 
* * string content = 1; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); responseCase_ = 1; response_ = value; @@ -1076,13 +1171,17 @@ public Builder setContentBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
      * The error to be thrown by the server.
      * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ @java.lang.Override @@ -1090,11 +1189,14 @@ public boolean hasError() { return responseCase_ == 2; } /** + * + * *
      * The error to be thrown by the server.
      * 
* * .google.rpc.Status error = 2; + * * @return The error. */ @java.lang.Override @@ -1112,6 +1214,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * The error to be thrown by the server.
      * 
@@ -1132,14 +1236,15 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** + * + * *
      * The error to be thrown by the server.
      * 
* * .google.rpc.Status error = 2; */ - public Builder setError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { response_ = builderForValue.build(); onChanged(); @@ -1150,6 +1255,8 @@ public Builder setError( return this; } /** + * + * *
      * The error to be thrown by the server.
      * 
@@ -1158,10 +1265,11 @@ public Builder setError( */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (responseCase_ == 2 && - response_ != com.google.rpc.Status.getDefaultInstance()) { - response_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_) - .mergeFrom(value).buildPartial(); + if (responseCase_ == 2 && response_ != com.google.rpc.Status.getDefaultInstance()) { + response_ = + com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_) + .mergeFrom(value) + .buildPartial(); } else { response_ = value; } @@ -1177,6 +1285,8 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** + * + * *
      * The error to be thrown by the server.
      * 
@@ -1200,6 +1310,8 @@ public Builder clearError() { return this; } /** + * + * *
      * The error to be thrown by the server.
      * 
@@ -1210,6 +1322,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** + * + * *
      * The error to be thrown by the server.
      * 
@@ -1228,6 +1342,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } } /** + * + * *
      * The error to be thrown by the server.
      * 
@@ -1235,17 +1351,18 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { if (!(responseCase_ == 2)) { response_ = com.google.rpc.Status.getDefaultInstance(); } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - (com.google.rpc.Status) response_, - getParentForChildren(), - isClean()); + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + (com.google.rpc.Status) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 2; @@ -1255,22 +1372,29 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { private int severity_ = 0; /** + * + * *
      * The severity to be echoed by the server.
      * 
* * .google.showcase.v1beta1.Severity severity = 3; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
      * The severity to be echoed by the server.
      * 
* * .google.showcase.v1beta1.Severity severity = 3; + * * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ @@ -1281,24 +1405,31 @@ public Builder setSeverityValue(int value) { return this; } /** + * + * *
      * The severity to be echoed by the server.
      * 
* * .google.showcase.v1beta1.Severity severity = 3; + * * @return The severity. */ @java.lang.Override public com.google.showcase.v1beta1.Severity getSeverity() { - com.google.showcase.v1beta1.Severity result = com.google.showcase.v1beta1.Severity.forNumber(severity_); + com.google.showcase.v1beta1.Severity result = + com.google.showcase.v1beta1.Severity.forNumber(severity_); return result == null ? com.google.showcase.v1beta1.Severity.UNRECOGNIZED : result; } /** + * + * *
      * The severity to be echoed by the server.
      * 
* * .google.showcase.v1beta1.Severity severity = 3; + * * @param value The severity to set. * @return This builder for chaining. */ @@ -1312,11 +1443,14 @@ public Builder setSeverity(com.google.showcase.v1beta1.Severity value) { return this; } /** + * + * *
      * The severity to be echoed by the server.
      * 
* * .google.showcase.v1beta1.Severity severity = 3; + * * @return This builder for chaining. */ public Builder clearSeverity() { @@ -1328,18 +1462,20 @@ public Builder clearSeverity() { private java.lang.Object header_ = ""; /** + * + * *
      * Optional. This field can be set to test the routing annotation on the Echo method.
      * 
* * string header = 4; + * * @return The header. */ public java.lang.String getHeader() { java.lang.Object ref = header_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); header_ = s; return s; @@ -1348,20 +1484,21 @@ public java.lang.String getHeader() { } } /** + * + * *
      * Optional. This field can be set to test the routing annotation on the Echo method.
      * 
* * string header = 4; + * * @return The bytes for header. */ - public com.google.protobuf.ByteString - getHeaderBytes() { + public com.google.protobuf.ByteString getHeaderBytes() { java.lang.Object ref = header_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); header_ = b; return b; } else { @@ -1369,28 +1506,35 @@ public java.lang.String getHeader() { } } /** + * + * *
      * Optional. This field can be set to test the routing annotation on the Echo method.
      * 
* * string header = 4; + * * @param value The header to set. * @return This builder for chaining. */ - public Builder setHeader( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHeader(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } header_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. This field can be set to test the routing annotation on the Echo method.
      * 
* * string header = 4; + * * @return This builder for chaining. */ public Builder clearHeader() { @@ -1400,17 +1544,21 @@ public Builder clearHeader() { return this; } /** + * + * *
      * Optional. This field can be set to test the routing annotation on the Echo method.
      * 
* * string header = 4; + * * @param value The bytes for header to set. * @return This builder for chaining. */ - public Builder setHeaderBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHeaderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); header_ = value; bitField0_ |= 0x00000008; @@ -1420,18 +1568,20 @@ public Builder setHeaderBytes( private java.lang.Object otherHeader_ = ""; /** + * + * *
      * Optional. This field can be set to test the routing annotation on the Echo method.
      * 
* * string other_header = 5; + * * @return The otherHeader. */ public java.lang.String getOtherHeader() { java.lang.Object ref = otherHeader_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); otherHeader_ = s; return s; @@ -1440,20 +1590,21 @@ public java.lang.String getOtherHeader() { } } /** + * + * *
      * Optional. This field can be set to test the routing annotation on the Echo method.
      * 
* * string other_header = 5; + * * @return The bytes for otherHeader. */ - public com.google.protobuf.ByteString - getOtherHeaderBytes() { + public com.google.protobuf.ByteString getOtherHeaderBytes() { java.lang.Object ref = otherHeader_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); otherHeader_ = b; return b; } else { @@ -1461,28 +1612,35 @@ public java.lang.String getOtherHeader() { } } /** + * + * *
      * Optional. This field can be set to test the routing annotation on the Echo method.
      * 
* * string other_header = 5; + * * @param value The otherHeader to set. * @return This builder for chaining. */ - public Builder setOtherHeader( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOtherHeader(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } otherHeader_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. This field can be set to test the routing annotation on the Echo method.
      * 
* * string other_header = 5; + * * @return This builder for chaining. */ public Builder clearOtherHeader() { @@ -1492,17 +1650,21 @@ public Builder clearOtherHeader() { return this; } /** + * + * *
      * Optional. This field can be set to test the routing annotation on the Echo method.
      * 
* * string other_header = 5; + * * @param value The bytes for otherHeader to set. * @return This builder for chaining. */ - public Builder setOtherHeaderBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOtherHeaderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); otherHeader_ = value; bitField0_ |= 0x00000010; @@ -1512,18 +1674,20 @@ public Builder setOtherHeaderBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * To facilitate testing of https://google.aip.dev/client-libraries/4235
      * 
* * string request_id = 7 [(.google.api.field_info) = { ... } + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1532,20 +1696,21 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * To facilitate testing of https://google.aip.dev/client-libraries/4235
      * 
* * string request_id = 7 [(.google.api.field_info) = { ... } + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1553,28 +1718,35 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * To facilitate testing of https://google.aip.dev/client-libraries/4235
      * 
* * string request_id = 7 [(.google.api.field_info) = { ... } + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * To facilitate testing of https://google.aip.dev/client-libraries/4235
      * 
* * string request_id = 7 [(.google.api.field_info) = { ... } + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1584,17 +1756,21 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * To facilitate testing of https://google.aip.dev/client-libraries/4235
      * 
* * string request_id = 7 [(.google.api.field_info) = { ... } + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000020; @@ -1604,29 +1780,34 @@ public Builder setRequestIdBytes( private java.lang.Object otherRequestId_ = ""; /** + * + * *
      * To facilitate testing of https://google.aip.dev/client-libraries/4235
      * 
* * optional string other_request_id = 8 [(.google.api.field_info) = { ... } + * * @return Whether the otherRequestId field is set. */ public boolean hasOtherRequestId() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * To facilitate testing of https://google.aip.dev/client-libraries/4235
      * 
* * optional string other_request_id = 8 [(.google.api.field_info) = { ... } + * * @return The otherRequestId. */ public java.lang.String getOtherRequestId() { java.lang.Object ref = otherRequestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); otherRequestId_ = s; return s; @@ -1635,20 +1816,21 @@ public java.lang.String getOtherRequestId() { } } /** + * + * *
      * To facilitate testing of https://google.aip.dev/client-libraries/4235
      * 
* * optional string other_request_id = 8 [(.google.api.field_info) = { ... } + * * @return The bytes for otherRequestId. */ - public com.google.protobuf.ByteString - getOtherRequestIdBytes() { + public com.google.protobuf.ByteString getOtherRequestIdBytes() { java.lang.Object ref = otherRequestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); otherRequestId_ = b; return b; } else { @@ -1656,28 +1838,35 @@ public java.lang.String getOtherRequestId() { } } /** + * + * *
      * To facilitate testing of https://google.aip.dev/client-libraries/4235
      * 
* * optional string other_request_id = 8 [(.google.api.field_info) = { ... } + * * @param value The otherRequestId to set. * @return This builder for chaining. */ - public Builder setOtherRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOtherRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } otherRequestId_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * To facilitate testing of https://google.aip.dev/client-libraries/4235
      * 
* * optional string other_request_id = 8 [(.google.api.field_info) = { ... } + * * @return This builder for chaining. */ public Builder clearOtherRequestId() { @@ -1687,26 +1876,30 @@ public Builder clearOtherRequestId() { return this; } /** + * + * *
      * To facilitate testing of https://google.aip.dev/client-libraries/4235
      * 
* * optional string other_request_id = 8 [(.google.api.field_info) = { ... } + * * @param value The bytes for otherRequestId to set. * @return This builder for chaining. */ - public Builder setOtherRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOtherRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); otherRequestId_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1716,12 +1909,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.EchoRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EchoRequest) private static final com.google.showcase.v1beta1.EchoRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EchoRequest(); } @@ -1730,27 +1923,27 @@ public static com.google.showcase.v1beta1.EchoRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EchoRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EchoRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1765,6 +1958,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.EchoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequestOrBuilder.java similarity index 78% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequestOrBuilder.java index b9c5afd5e7..a55c497491 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoRequestOrBuilder.java @@ -1,61 +1,93 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface EchoRequestOrBuilder extends +public interface EchoRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EchoRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The content to be echoed by the server.
    * 
* * string content = 1; + * * @return Whether the content field is set. */ boolean hasContent(); /** + * + * *
    * The content to be echoed by the server.
    * 
* * string content = 1; + * * @return The content. */ java.lang.String getContent(); /** + * + * *
    * The content to be echoed by the server.
    * 
* * string content = 1; + * * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + com.google.protobuf.ByteString getContentBytes(); /** + * + * *
    * The error to be thrown by the server.
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * The error to be thrown by the server.
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * The error to be thrown by the server.
    * 
@@ -65,112 +97,141 @@ public interface EchoRequestOrBuilder extends com.google.rpc.StatusOrBuilder getErrorOrBuilder(); /** + * + * *
    * The severity to be echoed by the server.
    * 
* * .google.showcase.v1beta1.Severity severity = 3; + * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** + * + * *
    * The severity to be echoed by the server.
    * 
* * .google.showcase.v1beta1.Severity severity = 3; + * * @return The severity. */ com.google.showcase.v1beta1.Severity getSeverity(); /** + * + * *
    * Optional. This field can be set to test the routing annotation on the Echo method.
    * 
* * string header = 4; + * * @return The header. */ java.lang.String getHeader(); /** + * + * *
    * Optional. This field can be set to test the routing annotation on the Echo method.
    * 
* * string header = 4; + * * @return The bytes for header. */ - com.google.protobuf.ByteString - getHeaderBytes(); + com.google.protobuf.ByteString getHeaderBytes(); /** + * + * *
    * Optional. This field can be set to test the routing annotation on the Echo method.
    * 
* * string other_header = 5; + * * @return The otherHeader. */ java.lang.String getOtherHeader(); /** + * + * *
    * Optional. This field can be set to test the routing annotation on the Echo method.
    * 
* * string other_header = 5; + * * @return The bytes for otherHeader. */ - com.google.protobuf.ByteString - getOtherHeaderBytes(); + com.google.protobuf.ByteString getOtherHeaderBytes(); /** + * + * *
    * To facilitate testing of https://google.aip.dev/client-libraries/4235
    * 
* * string request_id = 7 [(.google.api.field_info) = { ... } + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * To facilitate testing of https://google.aip.dev/client-libraries/4235
    * 
* * string request_id = 7 [(.google.api.field_info) = { ... } + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * To facilitate testing of https://google.aip.dev/client-libraries/4235
    * 
* * optional string other_request_id = 8 [(.google.api.field_info) = { ... } + * * @return Whether the otherRequestId field is set. */ boolean hasOtherRequestId(); /** + * + * *
    * To facilitate testing of https://google.aip.dev/client-libraries/4235
    * 
* * optional string other_request_id = 8 [(.google.api.field_info) = { ... } + * * @return The otherRequestId. */ java.lang.String getOtherRequestId(); /** + * + * *
    * To facilitate testing of https://google.aip.dev/client-libraries/4235
    * 
* * optional string other_request_id = 8 [(.google.api.field_info) = { ... } + * * @return The bytes for otherRequestId. */ - com.google.protobuf.ByteString - getOtherRequestIdBytes(); + com.google.protobuf.ByteString getOtherRequestIdBytes(); com.google.showcase.v1beta1.EchoRequest.ResponseCase getResponseCase(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponse.java similarity index 70% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponse.java index 8d83158ad4..fce91f2469 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto @@ -5,21 +20,24 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The response message for the Echo methods.
  * 
* * Protobuf type {@code google.showcase.v1beta1.EchoResponse} */ -public final class EchoResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EchoResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EchoResponse) EchoResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EchoResponse.newBuilder() to construct. private EchoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EchoResponse() { content_ = ""; severity_ = 0; @@ -29,33 +47,38 @@ private EchoResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EchoResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoResponse_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.EchoResponse.class, com.google.showcase.v1beta1.EchoResponse.Builder.class); + com.google.showcase.v1beta1.EchoResponse.class, + com.google.showcase.v1beta1.EchoResponse.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object content_ = ""; /** + * + * *
    * The content specified in the request.
    * 
* * string content = 1; + * * @return The content. */ @java.lang.Override @@ -64,29 +87,29 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** + * + * *
    * The content specified in the request.
    * 
* * string content = 1; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -97,38 +120,51 @@ public java.lang.String getContent() { public static final int SEVERITY_FIELD_NUMBER = 2; private int severity_ = 0; /** + * + * *
    * The severity specified in the request.
    * 
* * .google.showcase.v1beta1.Severity severity = 2; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
    * The severity specified in the request.
    * 
* * .google.showcase.v1beta1.Severity severity = 2; + * * @return The severity. */ - @java.lang.Override public com.google.showcase.v1beta1.Severity getSeverity() { - com.google.showcase.v1beta1.Severity result = com.google.showcase.v1beta1.Severity.forNumber(severity_); + @java.lang.Override + public com.google.showcase.v1beta1.Severity getSeverity() { + com.google.showcase.v1beta1.Severity result = + com.google.showcase.v1beta1.Severity.forNumber(severity_); return result == null ? com.google.showcase.v1beta1.Severity.UNRECOGNIZED : result; } public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * The request ID specified or autopopulated in the request.
    * 
* * string request_id = 3; + * * @return The requestId. */ @java.lang.Override @@ -137,29 +173,29 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * The request ID specified or autopopulated in the request.
    * 
* * string request_id = 3; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -168,14 +204,18 @@ public java.lang.String getRequestId() { } public static final int OTHER_REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object otherRequestId_ = ""; /** + * + * *
    * The other request ID specified or autopopulated in the request.
    * 
* * string other_request_id = 4; + * * @return The otherRequestId. */ @java.lang.Override @@ -184,29 +224,29 @@ public java.lang.String getOtherRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); otherRequestId_ = s; return s; } } /** + * + * *
    * The other request ID specified or autopopulated in the request.
    * 
* * string other_request_id = 4; + * * @return The bytes for otherRequestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getOtherRequestIdBytes() { + public com.google.protobuf.ByteString getOtherRequestIdBytes() { java.lang.Object ref = otherRequestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); otherRequestId_ = b; return b; } else { @@ -215,6 +255,7 @@ public java.lang.String getOtherRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } @@ -253,8 +293,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); } if (severity_ != com.google.showcase.v1beta1.Severity.UNNECESSARY.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, severity_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -270,20 +309,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.EchoResponse)) { return super.equals(obj); } com.google.showcase.v1beta1.EchoResponse other = (com.google.showcase.v1beta1.EchoResponse) obj; - if (!getContent() - .equals(other.getContent())) return false; + if (!getContent().equals(other.getContent())) return false; if (severity_ != other.severity_) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (!getOtherRequestId() - .equals(other.getOtherRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getOtherRequestId().equals(other.getOtherRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -308,132 +344,136 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.EchoResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.EchoResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EchoResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.EchoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EchoResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.EchoResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EchoResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.EchoResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EchoResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.EchoResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.EchoResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.EchoResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.EchoResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EchoResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.EchoResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response message for the Echo methods.
    * 
* * Protobuf type {@code google.showcase.v1beta1.EchoResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EchoResponse) com.google.showcase.v1beta1.EchoResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoResponse_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.EchoResponse.class, com.google.showcase.v1beta1.EchoResponse.Builder.class); + com.google.showcase.v1beta1.EchoResponse.class, + com.google.showcase.v1beta1.EchoResponse.Builder.class); } // Construct using com.google.showcase.v1beta1.EchoResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +486,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_EchoResponse_descriptor; } @java.lang.Override @@ -467,8 +507,11 @@ public com.google.showcase.v1beta1.EchoResponse build() { @java.lang.Override public com.google.showcase.v1beta1.EchoResponse buildPartial() { - com.google.showcase.v1beta1.EchoResponse result = new com.google.showcase.v1beta1.EchoResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.EchoResponse result = + new com.google.showcase.v1beta1.EchoResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -493,38 +536,39 @@ private void buildPartial0(com.google.showcase.v1beta1.EchoResponse result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.EchoResponse) { - return mergeFrom((com.google.showcase.v1beta1.EchoResponse)other); + return mergeFrom((com.google.showcase.v1beta1.EchoResponse) other); } else { super.mergeFrom(other); return this; @@ -577,32 +621,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - content_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - severity_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - otherRequestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + severity_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + otherRequestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -612,22 +661,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object content_ = ""; /** + * + * *
      * The content specified in the request.
      * 
* * string content = 1; + * * @return The content. */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -636,20 +688,21 @@ public java.lang.String getContent() { } } /** + * + * *
      * The content specified in the request.
      * 
* * string content = 1; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -657,28 +710,35 @@ public java.lang.String getContent() { } } /** + * + * *
      * The content specified in the request.
      * 
* * string content = 1; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } content_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The content specified in the request.
      * 
* * string content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -688,17 +748,21 @@ public Builder clearContent() { return this; } /** + * + * *
      * The content specified in the request.
      * 
* * string content = 1; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); content_ = value; bitField0_ |= 0x00000001; @@ -708,22 +772,29 @@ public Builder setContentBytes( private int severity_ = 0; /** + * + * *
      * The severity specified in the request.
      * 
* * .google.showcase.v1beta1.Severity severity = 2; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
      * The severity specified in the request.
      * 
* * .google.showcase.v1beta1.Severity severity = 2; + * * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ @@ -734,24 +805,31 @@ public Builder setSeverityValue(int value) { return this; } /** + * + * *
      * The severity specified in the request.
      * 
* * .google.showcase.v1beta1.Severity severity = 2; + * * @return The severity. */ @java.lang.Override public com.google.showcase.v1beta1.Severity getSeverity() { - com.google.showcase.v1beta1.Severity result = com.google.showcase.v1beta1.Severity.forNumber(severity_); + com.google.showcase.v1beta1.Severity result = + com.google.showcase.v1beta1.Severity.forNumber(severity_); return result == null ? com.google.showcase.v1beta1.Severity.UNRECOGNIZED : result; } /** + * + * *
      * The severity specified in the request.
      * 
* * .google.showcase.v1beta1.Severity severity = 2; + * * @param value The severity to set. * @return This builder for chaining. */ @@ -765,11 +843,14 @@ public Builder setSeverity(com.google.showcase.v1beta1.Severity value) { return this; } /** + * + * *
      * The severity specified in the request.
      * 
* * .google.showcase.v1beta1.Severity severity = 2; + * * @return This builder for chaining. */ public Builder clearSeverity() { @@ -781,18 +862,20 @@ public Builder clearSeverity() { private java.lang.Object requestId_ = ""; /** + * + * *
      * The request ID specified or autopopulated in the request.
      * 
* * string request_id = 3; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -801,20 +884,21 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * The request ID specified or autopopulated in the request.
      * 
* * string request_id = 3; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -822,28 +906,35 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * The request ID specified or autopopulated in the request.
      * 
* * string request_id = 3; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The request ID specified or autopopulated in the request.
      * 
* * string request_id = 3; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -853,17 +944,21 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * The request ID specified or autopopulated in the request.
      * 
* * string request_id = 3; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; @@ -873,18 +968,20 @@ public Builder setRequestIdBytes( private java.lang.Object otherRequestId_ = ""; /** + * + * *
      * The other request ID specified or autopopulated in the request.
      * 
* * string other_request_id = 4; + * * @return The otherRequestId. */ public java.lang.String getOtherRequestId() { java.lang.Object ref = otherRequestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); otherRequestId_ = s; return s; @@ -893,20 +990,21 @@ public java.lang.String getOtherRequestId() { } } /** + * + * *
      * The other request ID specified or autopopulated in the request.
      * 
* * string other_request_id = 4; + * * @return The bytes for otherRequestId. */ - public com.google.protobuf.ByteString - getOtherRequestIdBytes() { + public com.google.protobuf.ByteString getOtherRequestIdBytes() { java.lang.Object ref = otherRequestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); otherRequestId_ = b; return b; } else { @@ -914,28 +1012,35 @@ public java.lang.String getOtherRequestId() { } } /** + * + * *
      * The other request ID specified or autopopulated in the request.
      * 
* * string other_request_id = 4; + * * @param value The otherRequestId to set. * @return This builder for chaining. */ - public Builder setOtherRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOtherRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } otherRequestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The other request ID specified or autopopulated in the request.
      * 
* * string other_request_id = 4; + * * @return This builder for chaining. */ public Builder clearOtherRequestId() { @@ -945,26 +1050,30 @@ public Builder clearOtherRequestId() { return this; } /** + * + * *
      * The other request ID specified or autopopulated in the request.
      * 
* * string other_request_id = 4; + * * @param value The bytes for otherRequestId to set. * @return This builder for chaining. */ - public Builder setOtherRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOtherRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); otherRequestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -974,12 +1083,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.EchoResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EchoResponse) private static final com.google.showcase.v1beta1.EchoResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EchoResponse(); } @@ -988,27 +1097,27 @@ public static com.google.showcase.v1beta1.EchoResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EchoResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EchoResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1023,6 +1132,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.EchoResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponseOrBuilder.java similarity index 67% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponseOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponseOrBuilder.java index 7b0aa1f8ab..a8afba0807 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponseOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoResponseOrBuilder.java @@ -1,89 +1,126 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface EchoResponseOrBuilder extends +public interface EchoResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EchoResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The content specified in the request.
    * 
* * string content = 1; + * * @return The content. */ java.lang.String getContent(); /** + * + * *
    * The content specified in the request.
    * 
* * string content = 1; + * * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + com.google.protobuf.ByteString getContentBytes(); /** + * + * *
    * The severity specified in the request.
    * 
* * .google.showcase.v1beta1.Severity severity = 2; + * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** + * + * *
    * The severity specified in the request.
    * 
* * .google.showcase.v1beta1.Severity severity = 2; + * * @return The severity. */ com.google.showcase.v1beta1.Severity getSeverity(); /** + * + * *
    * The request ID specified or autopopulated in the request.
    * 
* * string request_id = 3; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * The request ID specified or autopopulated in the request.
    * 
* * string request_id = 3; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * The other request ID specified or autopopulated in the request.
    * 
* * string other_request_id = 4; + * * @return The otherRequestId. */ java.lang.String getOtherRequestId(); /** + * + * *
    * The other request ID specified or autopopulated in the request.
    * 
* * string other_request_id = 4; + * * @return The bytes for otherRequestId. */ - com.google.protobuf.ByteString - getOtherRequestIdBytes(); + com.google.protobuf.ByteString getOtherRequestIdBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequest.java similarity index 64% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequest.java index ee269d03f4..541ddc55b9 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequest.java @@ -1,52 +1,69 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/compliance.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -/** - * Protobuf type {@code google.showcase.v1beta1.EnumRequest} - */ -public final class EnumRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.showcase.v1beta1.EnumRequest} */ +public final class EnumRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EnumRequest) EnumRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EnumRequest.newBuilder() to construct. private EnumRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EnumRequest() { - } + + private EnumRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EnumRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_EnumRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumRequest_fieldAccessorTable + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_EnumRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.EnumRequest.class, com.google.showcase.v1beta1.EnumRequest.Builder.class); + com.google.showcase.v1beta1.EnumRequest.class, + com.google.showcase.v1beta1.EnumRequest.Builder.class); } public static final int UNKNOWN_ENUM_FIELD_NUMBER = 1; private boolean unknownEnum_ = false; /** + * + * *
    * Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file.
    * 
* * bool unknown_enum = 1; + * * @return The unknownEnum. */ @java.lang.Override @@ -55,6 +72,7 @@ public boolean getUnknownEnum() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -66,8 +84,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (unknownEnum_ != false) { output.writeBool(1, unknownEnum_); } @@ -81,8 +98,7 @@ public int getSerializedSize() { size = 0; if (unknownEnum_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, unknownEnum_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, unknownEnum_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -92,15 +108,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.EnumRequest)) { return super.equals(obj); } com.google.showcase.v1beta1.EnumRequest other = (com.google.showcase.v1beta1.EnumRequest) obj; - if (getUnknownEnum() - != other.getUnknownEnum()) return false; + if (getUnknownEnum() != other.getUnknownEnum()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -113,135 +128,134 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + UNKNOWN_ENUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUnknownEnum()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUnknownEnum()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.showcase.v1beta1.EnumRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.EnumRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EnumRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.EnumRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EnumRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.EnumRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EnumRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.EnumRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EnumRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.EnumRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.EnumRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.EnumRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.EnumRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EnumRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.EnumRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.EnumRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.EnumRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EnumRequest) com.google.showcase.v1beta1.EnumRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_EnumRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumRequest_fieldAccessorTable + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_EnumRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.EnumRequest.class, com.google.showcase.v1beta1.EnumRequest.Builder.class); + com.google.showcase.v1beta1.EnumRequest.class, + com.google.showcase.v1beta1.EnumRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.EnumRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -251,9 +265,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_EnumRequest_descriptor; } @java.lang.Override @@ -272,8 +286,11 @@ public com.google.showcase.v1beta1.EnumRequest build() { @java.lang.Override public com.google.showcase.v1beta1.EnumRequest buildPartial() { - com.google.showcase.v1beta1.EnumRequest result = new com.google.showcase.v1beta1.EnumRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.EnumRequest result = + new com.google.showcase.v1beta1.EnumRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -289,38 +306,39 @@ private void buildPartial0(com.google.showcase.v1beta1.EnumRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.EnumRequest) { - return mergeFrom((com.google.showcase.v1beta1.EnumRequest)other); + return mergeFrom((com.google.showcase.v1beta1.EnumRequest) other); } else { super.mergeFrom(other); return this; @@ -358,17 +376,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - unknownEnum_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + unknownEnum_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -378,15 +398,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean unknownEnum_ ; + private boolean unknownEnum_; /** + * + * *
      * Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file.
      * 
* * bool unknown_enum = 1; + * * @return The unknownEnum. */ @java.lang.Override @@ -394,11 +418,14 @@ public boolean getUnknownEnum() { return unknownEnum_; } /** + * + * *
      * Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file.
      * 
* * bool unknown_enum = 1; + * * @param value The unknownEnum to set. * @return This builder for chaining. */ @@ -410,11 +437,14 @@ public Builder setUnknownEnum(boolean value) { return this; } /** + * + * *
      * Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file.
      * 
* * bool unknown_enum = 1; + * * @return This builder for chaining. */ public Builder clearUnknownEnum() { @@ -423,9 +453,9 @@ public Builder clearUnknownEnum() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -435,12 +465,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.EnumRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EnumRequest) private static final com.google.showcase.v1beta1.EnumRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EnumRequest(); } @@ -449,27 +479,27 @@ public static com.google.showcase.v1beta1.EnumRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnumRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -484,6 +514,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.EnumRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequestOrBuilder.java new file mode 100644 index 0000000000..09cef7e3cb --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequestOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/compliance.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface EnumRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EnumRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file.
+   * 
+ * + * bool unknown_enum = 1; + * + * @return The unknownEnum. + */ + boolean getUnknownEnum(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponse.java similarity index 67% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponse.java index 8b0afc7aad..0d559711e7 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponse.java @@ -1,54 +1,72 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/compliance.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -/** - * Protobuf type {@code google.showcase.v1beta1.EnumResponse} - */ -public final class EnumResponse extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.showcase.v1beta1.EnumResponse} */ +public final class EnumResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EnumResponse) EnumResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EnumResponse.newBuilder() to construct. private EnumResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EnumResponse() { continent_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EnumResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_EnumResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumResponse_fieldAccessorTable + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_EnumResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.EnumResponse.class, com.google.showcase.v1beta1.EnumResponse.Builder.class); + com.google.showcase.v1beta1.EnumResponse.class, + com.google.showcase.v1beta1.EnumResponse.Builder.class); } private int bitField0_; public static final int REQUEST_FIELD_NUMBER = 1; private com.google.showcase.v1beta1.EnumRequest request_; /** + * + * *
    * The original request for a known or unknown enum from the server.
    * 
* * .google.showcase.v1beta1.EnumRequest request = 1; + * * @return Whether the request field is set. */ @java.lang.Override @@ -56,18 +74,25 @@ public boolean hasRequest() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The original request for a known or unknown enum from the server.
    * 
* * .google.showcase.v1beta1.EnumRequest request = 1; + * * @return The request. */ @java.lang.Override public com.google.showcase.v1beta1.EnumRequest getRequest() { - return request_ == null ? com.google.showcase.v1beta1.EnumRequest.getDefaultInstance() : request_; + return request_ == null + ? com.google.showcase.v1beta1.EnumRequest.getDefaultInstance() + : request_; } /** + * + * *
    * The original request for a known or unknown enum from the server.
    * 
@@ -76,36 +101,48 @@ public com.google.showcase.v1beta1.EnumRequest getRequest() { */ @java.lang.Override public com.google.showcase.v1beta1.EnumRequestOrBuilder getRequestOrBuilder() { - return request_ == null ? com.google.showcase.v1beta1.EnumRequest.getDefaultInstance() : request_; + return request_ == null + ? com.google.showcase.v1beta1.EnumRequest.getDefaultInstance() + : request_; } public static final int CONTINENT_FIELD_NUMBER = 2; private int continent_ = 0; /** + * + * *
    * The actual enum the server provided.
    * 
* * .google.showcase.v1beta1.Continent continent = 2; + * * @return The enum numeric value on the wire for continent. */ - @java.lang.Override public int getContinentValue() { + @java.lang.Override + public int getContinentValue() { return continent_; } /** + * + * *
    * The actual enum the server provided.
    * 
* * .google.showcase.v1beta1.Continent continent = 2; + * * @return The continent. */ - @java.lang.Override public com.google.showcase.v1beta1.Continent getContinent() { - com.google.showcase.v1beta1.Continent result = com.google.showcase.v1beta1.Continent.forNumber(continent_); + @java.lang.Override + public com.google.showcase.v1beta1.Continent getContinent() { + com.google.showcase.v1beta1.Continent result = + com.google.showcase.v1beta1.Continent.forNumber(continent_); return result == null ? com.google.showcase.v1beta1.Continent.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -117,8 +154,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRequest()); } @@ -135,12 +171,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRequest()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRequest()); } if (continent_ != com.google.showcase.v1beta1.Continent.CONTINENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, continent_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, continent_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -150,7 +184,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.EnumResponse)) { return super.equals(obj); @@ -159,8 +193,7 @@ public boolean equals(final java.lang.Object obj) { if (hasRequest() != other.hasRequest()) return false; if (hasRequest()) { - if (!getRequest() - .equals(other.getRequest())) return false; + if (!getRequest().equals(other.getRequest())) return false; } if (continent_ != other.continent_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -185,116 +218,119 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.EnumResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.EnumResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EnumResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.EnumResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EnumResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.EnumResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.EnumResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.EnumResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EnumResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.EnumResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.EnumResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.EnumResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.EnumResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.EnumResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.EnumResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.EnumResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.EnumResponse} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EnumResponse) com.google.showcase.v1beta1.EnumResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_EnumResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumResponse_fieldAccessorTable + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_EnumResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.EnumResponse.class, com.google.showcase.v1beta1.EnumResponse.Builder.class); + com.google.showcase.v1beta1.EnumResponse.class, + com.google.showcase.v1beta1.EnumResponse.Builder.class); } // Construct using com.google.showcase.v1beta1.EnumResponse.newBuilder() @@ -302,17 +338,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRequestFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -327,9 +363,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_EnumResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_EnumResponse_descriptor; } @java.lang.Override @@ -348,8 +384,11 @@ public com.google.showcase.v1beta1.EnumResponse build() { @java.lang.Override public com.google.showcase.v1beta1.EnumResponse buildPartial() { - com.google.showcase.v1beta1.EnumResponse result = new com.google.showcase.v1beta1.EnumResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.EnumResponse result = + new com.google.showcase.v1beta1.EnumResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -358,9 +397,7 @@ private void buildPartial0(com.google.showcase.v1beta1.EnumResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.request_ = requestBuilder_ == null - ? request_ - : requestBuilder_.build(); + result.request_ = requestBuilder_ == null ? request_ : requestBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -373,38 +410,39 @@ private void buildPartial0(com.google.showcase.v1beta1.EnumResponse result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.EnumResponse) { - return mergeFrom((com.google.showcase.v1beta1.EnumResponse)other); + return mergeFrom((com.google.showcase.v1beta1.EnumResponse) other); } else { super.mergeFrom(other); return this; @@ -445,24 +483,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getRequestFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - continent_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getRequestFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + continent_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -472,38 +511,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.showcase.v1beta1.EnumRequest request_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.EnumRequest, com.google.showcase.v1beta1.EnumRequest.Builder, com.google.showcase.v1beta1.EnumRequestOrBuilder> requestBuilder_; + com.google.showcase.v1beta1.EnumRequest, + com.google.showcase.v1beta1.EnumRequest.Builder, + com.google.showcase.v1beta1.EnumRequestOrBuilder> + requestBuilder_; /** + * + * *
      * The original request for a known or unknown enum from the server.
      * 
* * .google.showcase.v1beta1.EnumRequest request = 1; + * * @return Whether the request field is set. */ public boolean hasRequest() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The original request for a known or unknown enum from the server.
      * 
* * .google.showcase.v1beta1.EnumRequest request = 1; + * * @return The request. */ public com.google.showcase.v1beta1.EnumRequest getRequest() { if (requestBuilder_ == null) { - return request_ == null ? com.google.showcase.v1beta1.EnumRequest.getDefaultInstance() : request_; + return request_ == null + ? com.google.showcase.v1beta1.EnumRequest.getDefaultInstance() + : request_; } else { return requestBuilder_.getMessage(); } } /** + * + * *
      * The original request for a known or unknown enum from the server.
      * 
@@ -524,14 +577,15 @@ public Builder setRequest(com.google.showcase.v1beta1.EnumRequest value) { return this; } /** + * + * *
      * The original request for a known or unknown enum from the server.
      * 
* * .google.showcase.v1beta1.EnumRequest request = 1; */ - public Builder setRequest( - com.google.showcase.v1beta1.EnumRequest.Builder builderForValue) { + public Builder setRequest(com.google.showcase.v1beta1.EnumRequest.Builder builderForValue) { if (requestBuilder_ == null) { request_ = builderForValue.build(); } else { @@ -542,6 +596,8 @@ public Builder setRequest( return this; } /** + * + * *
      * The original request for a known or unknown enum from the server.
      * 
@@ -550,9 +606,9 @@ public Builder setRequest( */ public Builder mergeRequest(com.google.showcase.v1beta1.EnumRequest value) { if (requestBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - request_ != null && - request_ != com.google.showcase.v1beta1.EnumRequest.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && request_ != null + && request_ != com.google.showcase.v1beta1.EnumRequest.getDefaultInstance()) { getRequestBuilder().mergeFrom(value); } else { request_ = value; @@ -567,6 +623,8 @@ public Builder mergeRequest(com.google.showcase.v1beta1.EnumRequest value) { return this; } /** + * + * *
      * The original request for a known or unknown enum from the server.
      * 
@@ -584,6 +642,8 @@ public Builder clearRequest() { return this; } /** + * + * *
      * The original request for a known or unknown enum from the server.
      * 
@@ -596,6 +656,8 @@ public com.google.showcase.v1beta1.EnumRequest.Builder getRequestBuilder() { return getRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The original request for a known or unknown enum from the server.
      * 
@@ -606,11 +668,14 @@ public com.google.showcase.v1beta1.EnumRequestOrBuilder getRequestOrBuilder() { if (requestBuilder_ != null) { return requestBuilder_.getMessageOrBuilder(); } else { - return request_ == null ? - com.google.showcase.v1beta1.EnumRequest.getDefaultInstance() : request_; + return request_ == null + ? com.google.showcase.v1beta1.EnumRequest.getDefaultInstance() + : request_; } } /** + * + * *
      * The original request for a known or unknown enum from the server.
      * 
@@ -618,14 +683,17 @@ public com.google.showcase.v1beta1.EnumRequestOrBuilder getRequestOrBuilder() { * .google.showcase.v1beta1.EnumRequest request = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.EnumRequest, com.google.showcase.v1beta1.EnumRequest.Builder, com.google.showcase.v1beta1.EnumRequestOrBuilder> + com.google.showcase.v1beta1.EnumRequest, + com.google.showcase.v1beta1.EnumRequest.Builder, + com.google.showcase.v1beta1.EnumRequestOrBuilder> getRequestFieldBuilder() { if (requestBuilder_ == null) { - requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.EnumRequest, com.google.showcase.v1beta1.EnumRequest.Builder, com.google.showcase.v1beta1.EnumRequestOrBuilder>( - getRequest(), - getParentForChildren(), - isClean()); + requestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.EnumRequest, + com.google.showcase.v1beta1.EnumRequest.Builder, + com.google.showcase.v1beta1.EnumRequestOrBuilder>( + getRequest(), getParentForChildren(), isClean()); request_ = null; } return requestBuilder_; @@ -633,22 +701,29 @@ public com.google.showcase.v1beta1.EnumRequestOrBuilder getRequestOrBuilder() { private int continent_ = 0; /** + * + * *
      * The actual enum the server provided.
      * 
* * .google.showcase.v1beta1.Continent continent = 2; + * * @return The enum numeric value on the wire for continent. */ - @java.lang.Override public int getContinentValue() { + @java.lang.Override + public int getContinentValue() { return continent_; } /** + * + * *
      * The actual enum the server provided.
      * 
* * .google.showcase.v1beta1.Continent continent = 2; + * * @param value The enum numeric value on the wire for continent to set. * @return This builder for chaining. */ @@ -659,24 +734,31 @@ public Builder setContinentValue(int value) { return this; } /** + * + * *
      * The actual enum the server provided.
      * 
* * .google.showcase.v1beta1.Continent continent = 2; + * * @return The continent. */ @java.lang.Override public com.google.showcase.v1beta1.Continent getContinent() { - com.google.showcase.v1beta1.Continent result = com.google.showcase.v1beta1.Continent.forNumber(continent_); + com.google.showcase.v1beta1.Continent result = + com.google.showcase.v1beta1.Continent.forNumber(continent_); return result == null ? com.google.showcase.v1beta1.Continent.UNRECOGNIZED : result; } /** + * + * *
      * The actual enum the server provided.
      * 
* * .google.showcase.v1beta1.Continent continent = 2; + * * @param value The continent to set. * @return This builder for chaining. */ @@ -690,11 +772,14 @@ public Builder setContinent(com.google.showcase.v1beta1.Continent value) { return this; } /** + * + * *
      * The actual enum the server provided.
      * 
* * .google.showcase.v1beta1.Continent continent = 2; + * * @return This builder for chaining. */ public Builder clearContinent() { @@ -703,9 +788,9 @@ public Builder clearContinent() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -715,12 +800,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.EnumResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EnumResponse) private static final com.google.showcase.v1beta1.EnumResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EnumResponse(); } @@ -729,27 +814,27 @@ public static com.google.showcase.v1beta1.EnumResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnumResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -764,6 +849,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.EnumResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponseOrBuilder.java similarity index 68% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponseOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponseOrBuilder.java index 54056a9f3d..c68f40e687 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponseOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumResponseOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/compliance.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface EnumResponseOrBuilder extends +public interface EnumResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EnumResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The original request for a known or unknown enum from the server.
    * 
* * .google.showcase.v1beta1.EnumRequest request = 1; + * * @return Whether the request field is set. */ boolean hasRequest(); /** + * + * *
    * The original request for a known or unknown enum from the server.
    * 
* * .google.showcase.v1beta1.EnumRequest request = 1; + * * @return The request. */ com.google.showcase.v1beta1.EnumRequest getRequest(); /** + * + * *
    * The original request for a known or unknown enum from the server.
    * 
@@ -36,20 +60,26 @@ public interface EnumResponseOrBuilder extends com.google.showcase.v1beta1.EnumRequestOrBuilder getRequestOrBuilder(); /** + * + * *
    * The actual enum the server provided.
    * 
* * .google.showcase.v1beta1.Continent continent = 2; + * * @return The enum numeric value on the wire for continent. */ int getContinentValue(); /** + * + * *
    * The actual enum the server provided.
    * 
* * .google.showcase.v1beta1.Continent continent = 2; + * * @return The continent. */ com.google.showcase.v1beta1.Continent getContinent(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithMultipleDetails.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithMultipleDetails.java similarity index 60% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithMultipleDetails.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithMultipleDetails.java index a9eaae8b90..c9b832e192 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithMultipleDetails.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithMultipleDetails.java @@ -1,87 +1,92 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -/** - * Protobuf type {@code google.showcase.v1beta1.ErrorWithMultipleDetails} - */ -public final class ErrorWithMultipleDetails extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.showcase.v1beta1.ErrorWithMultipleDetails} */ +public final class ErrorWithMultipleDetails extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ErrorWithMultipleDetails) ErrorWithMultipleDetailsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ErrorWithMultipleDetails.newBuilder() to construct. private ErrorWithMultipleDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ErrorWithMultipleDetails() { details_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ErrorWithMultipleDetails(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ErrorWithMultipleDetails.class, com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder.class); + com.google.showcase.v1beta1.ErrorWithMultipleDetails.class, + com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder.class); } public static final int DETAILS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List details_; - /** - * repeated .google.protobuf.Any details = 1; - */ + /** repeated .google.protobuf.Any details = 1; */ @java.lang.Override public java.util.List getDetailsList() { return details_; } - /** - * repeated .google.protobuf.Any details = 1; - */ + /** repeated .google.protobuf.Any details = 1; */ @java.lang.Override - public java.util.List - getDetailsOrBuilderList() { + public java.util.List getDetailsOrBuilderList() { return details_; } - /** - * repeated .google.protobuf.Any details = 1; - */ + /** repeated .google.protobuf.Any details = 1; */ @java.lang.Override public int getDetailsCount() { return details_.size(); } - /** - * repeated .google.protobuf.Any details = 1; - */ + /** repeated .google.protobuf.Any details = 1; */ @java.lang.Override public com.google.protobuf.Any getDetails(int index) { return details_.get(index); } - /** - * repeated .google.protobuf.Any details = 1; - */ + /** repeated .google.protobuf.Any details = 1; */ @java.lang.Override - public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder( - int index) { + public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder(int index) { return details_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -93,8 +98,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < details_.size(); i++) { output.writeMessage(1, details_.get(i)); } @@ -108,8 +112,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < details_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, details_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, details_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -119,15 +122,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.ErrorWithMultipleDetails)) { return super.equals(obj); } - com.google.showcase.v1beta1.ErrorWithMultipleDetails other = (com.google.showcase.v1beta1.ErrorWithMultipleDetails) obj; + com.google.showcase.v1beta1.ErrorWithMultipleDetails other = + (com.google.showcase.v1beta1.ErrorWithMultipleDetails) obj; - if (!getDetailsList() - .equals(other.getDetailsList())) return false; + if (!getDetailsList().equals(other.getDetailsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -149,127 +152,127 @@ public int hashCode() { } public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.ErrorWithMultipleDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.ErrorWithMultipleDetails} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.ErrorWithMultipleDetails} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ErrorWithMultipleDetails) com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ErrorWithMultipleDetails.class, com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder.class); + com.google.showcase.v1beta1.ErrorWithMultipleDetails.class, + com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder.class); } // Construct using com.google.showcase.v1beta1.ErrorWithMultipleDetails.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -285,9 +288,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_descriptor; } @java.lang.Override @@ -306,14 +309,18 @@ public com.google.showcase.v1beta1.ErrorWithMultipleDetails build() { @java.lang.Override public com.google.showcase.v1beta1.ErrorWithMultipleDetails buildPartial() { - com.google.showcase.v1beta1.ErrorWithMultipleDetails result = new com.google.showcase.v1beta1.ErrorWithMultipleDetails(this); + com.google.showcase.v1beta1.ErrorWithMultipleDetails result = + new com.google.showcase.v1beta1.ErrorWithMultipleDetails(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.showcase.v1beta1.ErrorWithMultipleDetails result) { + private void buildPartialRepeatedFields( + com.google.showcase.v1beta1.ErrorWithMultipleDetails result) { if (detailsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { details_ = java.util.Collections.unmodifiableList(details_); @@ -333,38 +340,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ErrorWithMultipleDetails public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ErrorWithMultipleDetails) { - return mergeFrom((com.google.showcase.v1beta1.ErrorWithMultipleDetails)other); + return mergeFrom((com.google.showcase.v1beta1.ErrorWithMultipleDetails) other); } else { super.mergeFrom(other); return this; @@ -372,7 +380,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.ErrorWithMultipleDetails other) { - if (other == com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance()) + return this; if (detailsBuilder_ == null) { if (!other.details_.isEmpty()) { if (details_.isEmpty()) { @@ -391,9 +400,10 @@ public Builder mergeFrom(com.google.showcase.v1beta1.ErrorWithMultipleDetails ot detailsBuilder_ = null; details_ = other.details_; bitField0_ = (bitField0_ & ~0x00000001); - detailsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDetailsFieldBuilder() : null; + detailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDetailsFieldBuilder() + : null; } else { detailsBuilder_.addAllMessages(other.details_); } @@ -425,25 +435,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.Any m = - input.readMessage( - com.google.protobuf.Any.parser(), - extensionRegistry); - if (detailsBuilder_ == null) { - ensureDetailsIsMutable(); - details_.add(m); - } else { - detailsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.Any m = + input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(m); + } else { + detailsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -453,23 +463,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List details_ = - java.util.Collections.emptyList(); + private java.util.List details_ = java.util.Collections.emptyList(); + private void ensureDetailsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { details_ = new java.util.ArrayList(details_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> detailsBuilder_; + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> + detailsBuilder_; - /** - * repeated .google.protobuf.Any details = 1; - */ + /** repeated .google.protobuf.Any details = 1; */ public java.util.List getDetailsList() { if (detailsBuilder_ == null) { return java.util.Collections.unmodifiableList(details_); @@ -477,9 +489,7 @@ public java.util.List getDetailsList() { return detailsBuilder_.getMessageList(); } } - /** - * repeated .google.protobuf.Any details = 1; - */ + /** repeated .google.protobuf.Any details = 1; */ public int getDetailsCount() { if (detailsBuilder_ == null) { return details_.size(); @@ -487,9 +497,7 @@ public int getDetailsCount() { return detailsBuilder_.getCount(); } } - /** - * repeated .google.protobuf.Any details = 1; - */ + /** repeated .google.protobuf.Any details = 1; */ public com.google.protobuf.Any getDetails(int index) { if (detailsBuilder_ == null) { return details_.get(index); @@ -497,11 +505,8 @@ public com.google.protobuf.Any getDetails(int index) { return detailsBuilder_.getMessage(index); } } - /** - * repeated .google.protobuf.Any details = 1; - */ - public Builder setDetails( - int index, com.google.protobuf.Any value) { + /** repeated .google.protobuf.Any details = 1; */ + public Builder setDetails(int index, com.google.protobuf.Any value) { if (detailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -514,11 +519,8 @@ public Builder setDetails( } return this; } - /** - * repeated .google.protobuf.Any details = 1; - */ - public Builder setDetails( - int index, com.google.protobuf.Any.Builder builderForValue) { + /** repeated .google.protobuf.Any details = 1; */ + public Builder setDetails(int index, com.google.protobuf.Any.Builder builderForValue) { if (detailsBuilder_ == null) { ensureDetailsIsMutable(); details_.set(index, builderForValue.build()); @@ -528,9 +530,7 @@ public Builder setDetails( } return this; } - /** - * repeated .google.protobuf.Any details = 1; - */ + /** repeated .google.protobuf.Any details = 1; */ public Builder addDetails(com.google.protobuf.Any value) { if (detailsBuilder_ == null) { if (value == null) { @@ -544,11 +544,8 @@ public Builder addDetails(com.google.protobuf.Any value) { } return this; } - /** - * repeated .google.protobuf.Any details = 1; - */ - public Builder addDetails( - int index, com.google.protobuf.Any value) { + /** repeated .google.protobuf.Any details = 1; */ + public Builder addDetails(int index, com.google.protobuf.Any value) { if (detailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -561,11 +558,8 @@ public Builder addDetails( } return this; } - /** - * repeated .google.protobuf.Any details = 1; - */ - public Builder addDetails( - com.google.protobuf.Any.Builder builderForValue) { + /** repeated .google.protobuf.Any details = 1; */ + public Builder addDetails(com.google.protobuf.Any.Builder builderForValue) { if (detailsBuilder_ == null) { ensureDetailsIsMutable(); details_.add(builderForValue.build()); @@ -575,11 +569,8 @@ public Builder addDetails( } return this; } - /** - * repeated .google.protobuf.Any details = 1; - */ - public Builder addDetails( - int index, com.google.protobuf.Any.Builder builderForValue) { + /** repeated .google.protobuf.Any details = 1; */ + public Builder addDetails(int index, com.google.protobuf.Any.Builder builderForValue) { if (detailsBuilder_ == null) { ensureDetailsIsMutable(); details_.add(index, builderForValue.build()); @@ -589,24 +580,18 @@ public Builder addDetails( } return this; } - /** - * repeated .google.protobuf.Any details = 1; - */ - public Builder addAllDetails( - java.lang.Iterable values) { + /** repeated .google.protobuf.Any details = 1; */ + public Builder addAllDetails(java.lang.Iterable values) { if (detailsBuilder_ == null) { ensureDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, details_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, details_); onChanged(); } else { detailsBuilder_.addAllMessages(values); } return this; } - /** - * repeated .google.protobuf.Any details = 1; - */ + /** repeated .google.protobuf.Any details = 1; */ public Builder clearDetails() { if (detailsBuilder_ == null) { details_ = java.util.Collections.emptyList(); @@ -617,9 +602,7 @@ public Builder clearDetails() { } return this; } - /** - * repeated .google.protobuf.Any details = 1; - */ + /** repeated .google.protobuf.Any details = 1; */ public Builder removeDetails(int index) { if (detailsBuilder_ == null) { ensureDetailsIsMutable(); @@ -630,73 +613,59 @@ public Builder removeDetails(int index) { } return this; } - /** - * repeated .google.protobuf.Any details = 1; - */ - public com.google.protobuf.Any.Builder getDetailsBuilder( - int index) { + /** repeated .google.protobuf.Any details = 1; */ + public com.google.protobuf.Any.Builder getDetailsBuilder(int index) { return getDetailsFieldBuilder().getBuilder(index); } - /** - * repeated .google.protobuf.Any details = 1; - */ - public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder( - int index) { + /** repeated .google.protobuf.Any details = 1; */ + public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder(int index) { if (detailsBuilder_ == null) { - return details_.get(index); } else { + return details_.get(index); + } else { return detailsBuilder_.getMessageOrBuilder(index); } } - /** - * repeated .google.protobuf.Any details = 1; - */ - public java.util.List - getDetailsOrBuilderList() { + /** repeated .google.protobuf.Any details = 1; */ + public java.util.List getDetailsOrBuilderList() { if (detailsBuilder_ != null) { return detailsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(details_); } } - /** - * repeated .google.protobuf.Any details = 1; - */ + /** repeated .google.protobuf.Any details = 1; */ public com.google.protobuf.Any.Builder addDetailsBuilder() { - return getDetailsFieldBuilder().addBuilder( - com.google.protobuf.Any.getDefaultInstance()); - } - /** - * repeated .google.protobuf.Any details = 1; - */ - public com.google.protobuf.Any.Builder addDetailsBuilder( - int index) { - return getDetailsFieldBuilder().addBuilder( - index, com.google.protobuf.Any.getDefaultInstance()); - } - /** - * repeated .google.protobuf.Any details = 1; - */ - public java.util.List - getDetailsBuilderList() { + return getDetailsFieldBuilder().addBuilder(com.google.protobuf.Any.getDefaultInstance()); + } + /** repeated .google.protobuf.Any details = 1; */ + public com.google.protobuf.Any.Builder addDetailsBuilder(int index) { + return getDetailsFieldBuilder() + .addBuilder(index, com.google.protobuf.Any.getDefaultInstance()); + } + /** repeated .google.protobuf.Any details = 1; */ + public java.util.List getDetailsBuilderList() { return getDetailsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> getDetailsFieldBuilder() { if (detailsBuilder_ == null) { - detailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - details_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + detailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder>( + details_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); details_ = null; } return detailsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -706,12 +675,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ErrorWithMultipleDetails) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ErrorWithMultipleDetails) private static final com.google.showcase.v1beta1.ErrorWithMultipleDetails DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ErrorWithMultipleDetails(); } @@ -720,27 +689,27 @@ public static com.google.showcase.v1beta1.ErrorWithMultipleDetails getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorWithMultipleDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorWithMultipleDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -755,6 +724,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.ErrorWithMultipleDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithMultipleDetailsOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithMultipleDetailsOrBuilder.java new file mode 100644 index 0000000000..b61a282255 --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithMultipleDetailsOrBuilder.java @@ -0,0 +1,37 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface ErrorWithMultipleDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ErrorWithMultipleDetails) + com.google.protobuf.MessageOrBuilder { + + /** repeated .google.protobuf.Any details = 1; */ + java.util.List getDetailsList(); + /** repeated .google.protobuf.Any details = 1; */ + com.google.protobuf.Any getDetails(int index); + /** repeated .google.protobuf.Any details = 1; */ + int getDetailsCount(); + /** repeated .google.protobuf.Any details = 1; */ + java.util.List getDetailsOrBuilderList(); + /** repeated .google.protobuf.Any details = 1; */ + com.google.protobuf.AnyOrBuilder getDetailsOrBuilder(int index); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithSingleDetail.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithSingleDetail.java similarity index 63% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithSingleDetail.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithSingleDetail.java index c4585b4092..ee1ba7cd56 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithSingleDetail.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithSingleDetail.java @@ -1,42 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -/** - * Protobuf type {@code google.showcase.v1beta1.ErrorWithSingleDetail} - */ -public final class ErrorWithSingleDetail extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.showcase.v1beta1.ErrorWithSingleDetail} */ +public final class ErrorWithSingleDetail extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ErrorWithSingleDetail) ErrorWithSingleDetailOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ErrorWithSingleDetail.newBuilder() to construct. private ErrorWithSingleDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ErrorWithSingleDetail() { - } + + private ErrorWithSingleDetail() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ErrorWithSingleDetail(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ErrorWithSingleDetail.class, com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder.class); + com.google.showcase.v1beta1.ErrorWithSingleDetail.class, + com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder.class); } private int bitField0_; @@ -44,6 +58,7 @@ protected java.lang.Object newInstance( private com.google.protobuf.Any details_; /** * .google.protobuf.Any details = 1; + * * @return Whether the details field is set. */ @java.lang.Override @@ -52,21 +67,21 @@ public boolean hasDetails() { } /** * .google.protobuf.Any details = 1; + * * @return The details. */ @java.lang.Override public com.google.protobuf.Any getDetails() { return details_ == null ? com.google.protobuf.Any.getDefaultInstance() : details_; } - /** - * .google.protobuf.Any details = 1; - */ + /** .google.protobuf.Any details = 1; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder() { return details_ == null ? com.google.protobuf.Any.getDefaultInstance() : details_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -78,8 +93,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getDetails()); } @@ -93,8 +107,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDetails()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDetails()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -104,17 +117,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.ErrorWithSingleDetail)) { return super.equals(obj); } - com.google.showcase.v1beta1.ErrorWithSingleDetail other = (com.google.showcase.v1beta1.ErrorWithSingleDetail) obj; + com.google.showcase.v1beta1.ErrorWithSingleDetail other = + (com.google.showcase.v1beta1.ErrorWithSingleDetail) obj; if (hasDetails() != other.hasDetails()) return false; if (hasDetails()) { - if (!getDetails() - .equals(other.getDetails())) return false; + if (!getDetails().equals(other.getDetails())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -137,115 +150,118 @@ public int hashCode() { } public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.ErrorWithSingleDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.ErrorWithSingleDetail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.ErrorWithSingleDetail} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ErrorWithSingleDetail) com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ErrorWithSingleDetail.class, com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder.class); + com.google.showcase.v1beta1.ErrorWithSingleDetail.class, + com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder.class); } // Construct using com.google.showcase.v1beta1.ErrorWithSingleDetail.newBuilder() @@ -253,17 +269,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDetailsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -277,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_descriptor; } @java.lang.Override @@ -298,8 +314,11 @@ public com.google.showcase.v1beta1.ErrorWithSingleDetail build() { @java.lang.Override public com.google.showcase.v1beta1.ErrorWithSingleDetail buildPartial() { - com.google.showcase.v1beta1.ErrorWithSingleDetail result = new com.google.showcase.v1beta1.ErrorWithSingleDetail(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.ErrorWithSingleDetail result = + new com.google.showcase.v1beta1.ErrorWithSingleDetail(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -308,9 +327,7 @@ private void buildPartial0(com.google.showcase.v1beta1.ErrorWithSingleDetail res int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.details_ = detailsBuilder_ == null - ? details_ - : detailsBuilder_.build(); + result.details_ = detailsBuilder_ == null ? details_ : detailsBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -320,38 +337,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ErrorWithSingleDetail res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ErrorWithSingleDetail) { - return mergeFrom((com.google.showcase.v1beta1.ErrorWithSingleDetail)other); + return mergeFrom((com.google.showcase.v1beta1.ErrorWithSingleDetail) other); } else { super.mergeFrom(other); return this; @@ -359,7 +377,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.ErrorWithSingleDetail other) { - if (other == com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance()) + return this; if (other.hasDetails()) { mergeDetails(other.getDetails()); } @@ -389,19 +408,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getDetailsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -411,13 +430,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Any details_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> detailsBuilder_; + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> + detailsBuilder_; /** * .google.protobuf.Any details = 1; + * * @return Whether the details field is set. */ public boolean hasDetails() { @@ -425,6 +449,7 @@ public boolean hasDetails() { } /** * .google.protobuf.Any details = 1; + * * @return The details. */ public com.google.protobuf.Any getDetails() { @@ -434,9 +459,7 @@ public com.google.protobuf.Any getDetails() { return detailsBuilder_.getMessage(); } } - /** - * .google.protobuf.Any details = 1; - */ + /** .google.protobuf.Any details = 1; */ public Builder setDetails(com.google.protobuf.Any value) { if (detailsBuilder_ == null) { if (value == null) { @@ -450,11 +473,8 @@ public Builder setDetails(com.google.protobuf.Any value) { onChanged(); return this; } - /** - * .google.protobuf.Any details = 1; - */ - public Builder setDetails( - com.google.protobuf.Any.Builder builderForValue) { + /** .google.protobuf.Any details = 1; */ + public Builder setDetails(com.google.protobuf.Any.Builder builderForValue) { if (detailsBuilder_ == null) { details_ = builderForValue.build(); } else { @@ -464,14 +484,12 @@ public Builder setDetails( onChanged(); return this; } - /** - * .google.protobuf.Any details = 1; - */ + /** .google.protobuf.Any details = 1; */ public Builder mergeDetails(com.google.protobuf.Any value) { if (detailsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - details_ != null && - details_ != com.google.protobuf.Any.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && details_ != null + && details_ != com.google.protobuf.Any.getDefaultInstance()) { getDetailsBuilder().mergeFrom(value); } else { details_ = value; @@ -485,9 +503,7 @@ public Builder mergeDetails(com.google.protobuf.Any value) { } return this; } - /** - * .google.protobuf.Any details = 1; - */ + /** .google.protobuf.Any details = 1; */ public Builder clearDetails() { bitField0_ = (bitField0_ & ~0x00000001); details_ = null; @@ -498,44 +514,39 @@ public Builder clearDetails() { onChanged(); return this; } - /** - * .google.protobuf.Any details = 1; - */ + /** .google.protobuf.Any details = 1; */ public com.google.protobuf.Any.Builder getDetailsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDetailsFieldBuilder().getBuilder(); } - /** - * .google.protobuf.Any details = 1; - */ + /** .google.protobuf.Any details = 1; */ public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder() { if (detailsBuilder_ != null) { return detailsBuilder_.getMessageOrBuilder(); } else { - return details_ == null ? - com.google.protobuf.Any.getDefaultInstance() : details_; + return details_ == null ? com.google.protobuf.Any.getDefaultInstance() : details_; } } - /** - * .google.protobuf.Any details = 1; - */ + /** .google.protobuf.Any details = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> getDetailsFieldBuilder() { if (detailsBuilder_ == null) { - detailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getDetails(), - getParentForChildren(), - isClean()); + detailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder>(getDetails(), getParentForChildren(), isClean()); details_ = null; } return detailsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -545,12 +556,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ErrorWithSingleDetail) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ErrorWithSingleDetail) private static final com.google.showcase.v1beta1.ErrorWithSingleDetail DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ErrorWithSingleDetail(); } @@ -559,27 +570,27 @@ public static com.google.showcase.v1beta1.ErrorWithSingleDetail getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorWithSingleDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorWithSingleDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,6 +605,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.ErrorWithSingleDetail getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithSingleDetailOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithSingleDetailOrBuilder.java new file mode 100644 index 0000000000..6f4a4f4cf2 --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithSingleDetailOrBuilder.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface ErrorWithSingleDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ErrorWithSingleDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.protobuf.Any details = 1; + * + * @return Whether the details field is set. + */ + boolean hasDetails(); + /** + * .google.protobuf.Any details = 1; + * + * @return The details. + */ + com.google.protobuf.Any getDetails(); + /** .google.protobuf.Any details = 1; */ + com.google.protobuf.AnyOrBuilder getDetailsOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java similarity index 68% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java index 31d974ab88..85ea577f1f 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto @@ -5,55 +20,63 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request message for the Expand method.
  * 
* * Protobuf type {@code google.showcase.v1beta1.ExpandRequest} */ -public final class ExpandRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExpandRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ExpandRequest) ExpandRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExpandRequest.newBuilder() to construct. private ExpandRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExpandRequest() { content_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExpandRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ExpandRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_ExpandRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ExpandRequest_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_ExpandRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ExpandRequest.class, com.google.showcase.v1beta1.ExpandRequest.Builder.class); + com.google.showcase.v1beta1.ExpandRequest.class, + com.google.showcase.v1beta1.ExpandRequest.Builder.class); } private int bitField0_; public static final int CONTENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object content_ = ""; /** + * + * *
    * The content that will be split into words and returned on the stream.
    * 
* * string content = 1; + * * @return The content. */ @java.lang.Override @@ -62,29 +85,29 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** + * + * *
    * The content that will be split into words and returned on the stream.
    * 
* * string content = 1; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -95,11 +118,14 @@ public java.lang.String getContent() { public static final int ERROR_FIELD_NUMBER = 2; private com.google.rpc.Status error_; /** + * + * *
    * The error that is thrown after all words are sent on the stream.
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ @java.lang.Override @@ -107,11 +133,14 @@ public boolean hasError() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The error that is thrown after all words are sent on the stream.
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ @java.lang.Override @@ -119,6 +148,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
    * The error that is thrown after all words are sent on the stream.
    * 
@@ -133,11 +164,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { public static final int STREAM_WAIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Duration streamWaitTime_; /** + * + * *
-   *The wait time between each server streaming messages
+   * The wait time between each server streaming messages
    * 
* * .google.protobuf.Duration stream_wait_time = 3; + * * @return Whether the streamWaitTime field is set. */ @java.lang.Override @@ -145,30 +179,40 @@ public boolean hasStreamWaitTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
-   *The wait time between each server streaming messages
+   * The wait time between each server streaming messages
    * 
* * .google.protobuf.Duration stream_wait_time = 3; + * * @return The streamWaitTime. */ @java.lang.Override public com.google.protobuf.Duration getStreamWaitTime() { - return streamWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : streamWaitTime_; + return streamWaitTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : streamWaitTime_; } /** + * + * *
-   *The wait time between each server streaming messages
+   * The wait time between each server streaming messages
    * 
* * .google.protobuf.Duration stream_wait_time = 3; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getStreamWaitTimeOrBuilder() { - return streamWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : streamWaitTime_; + return streamWaitTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : streamWaitTime_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,8 +224,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } @@ -204,12 +247,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getError()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStreamWaitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStreamWaitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -219,24 +260,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.ExpandRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.ExpandRequest other = (com.google.showcase.v1beta1.ExpandRequest) obj; + com.google.showcase.v1beta1.ExpandRequest other = + (com.google.showcase.v1beta1.ExpandRequest) obj; - if (!getContent() - .equals(other.getContent())) return false; + if (!getContent().equals(other.getContent())) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; } if (hasStreamWaitTime() != other.hasStreamWaitTime()) return false; if (hasStreamWaitTime()) { - if (!getStreamWaitTime() - .equals(other.getStreamWaitTime())) return false; + if (!getStreamWaitTime().equals(other.getStreamWaitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -264,120 +303,127 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.ExpandRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.ExpandRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ExpandRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ExpandRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ExpandRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ExpandRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ExpandRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ExpandRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ExpandRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.ExpandRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.ExpandRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.ExpandRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ExpandRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ExpandRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.ExpandRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for the Expand method.
    * 
* * Protobuf type {@code google.showcase.v1beta1.ExpandRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ExpandRequest) com.google.showcase.v1beta1.ExpandRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ExpandRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_ExpandRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ExpandRequest_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_ExpandRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ExpandRequest.class, com.google.showcase.v1beta1.ExpandRequest.Builder.class); + com.google.showcase.v1beta1.ExpandRequest.class, + com.google.showcase.v1beta1.ExpandRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.ExpandRequest.newBuilder() @@ -385,18 +431,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getErrorFieldBuilder(); getStreamWaitTimeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +462,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ExpandRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_ExpandRequest_descriptor; } @java.lang.Override @@ -437,8 +483,11 @@ public com.google.showcase.v1beta1.ExpandRequest build() { @java.lang.Override public com.google.showcase.v1beta1.ExpandRequest buildPartial() { - com.google.showcase.v1beta1.ExpandRequest result = new com.google.showcase.v1beta1.ExpandRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.ExpandRequest result = + new com.google.showcase.v1beta1.ExpandRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -450,15 +499,12 @@ private void buildPartial0(com.google.showcase.v1beta1.ExpandRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.error_ = errorBuilder_ == null - ? error_ - : errorBuilder_.build(); + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.streamWaitTime_ = streamWaitTimeBuilder_ == null - ? streamWaitTime_ - : streamWaitTimeBuilder_.build(); + result.streamWaitTime_ = + streamWaitTimeBuilder_ == null ? streamWaitTime_ : streamWaitTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -468,38 +514,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ExpandRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ExpandRequest) { - return mergeFrom((com.google.showcase.v1beta1.ExpandRequest)other); + return mergeFrom((com.google.showcase.v1beta1.ExpandRequest) other); } else { super.mergeFrom(other); return this; @@ -545,31 +592,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - content_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getErrorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getStreamWaitTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getStreamWaitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -579,22 +626,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object content_ = ""; /** + * + * *
      * The content that will be split into words and returned on the stream.
      * 
* * string content = 1; + * * @return The content. */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -603,20 +653,21 @@ public java.lang.String getContent() { } } /** + * + * *
      * The content that will be split into words and returned on the stream.
      * 
* * string content = 1; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -624,28 +675,35 @@ public java.lang.String getContent() { } } /** + * + * *
      * The content that will be split into words and returned on the stream.
      * 
* * string content = 1; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } content_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The content that will be split into words and returned on the stream.
      * 
* * string content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -655,17 +713,21 @@ public Builder clearContent() { return this; } /** + * + * *
      * The content that will be split into words and returned on the stream.
      * 
* * string content = 1; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); content_ = value; bitField0_ |= 0x00000001; @@ -675,24 +737,31 @@ public Builder setContentBytes( private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
      * The error that is thrown after all words are sent on the stream.
      * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The error that is thrown after all words are sent on the stream.
      * 
* * .google.rpc.Status error = 2; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -703,6 +772,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * The error that is thrown after all words are sent on the stream.
      * 
@@ -723,14 +794,15 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** + * + * *
      * The error that is thrown after all words are sent on the stream.
      * 
* * .google.rpc.Status error = 2; */ - public Builder setError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); } else { @@ -741,6 +813,8 @@ public Builder setError( return this; } /** + * + * *
      * The error that is thrown after all words are sent on the stream.
      * 
@@ -749,9 +823,9 @@ public Builder setError( */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - error_ != null && - error_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -766,6 +840,8 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** + * + * *
      * The error that is thrown after all words are sent on the stream.
      * 
@@ -783,6 +859,8 @@ public Builder clearError() { return this; } /** + * + * *
      * The error that is thrown after all words are sent on the stream.
      * 
@@ -795,6 +873,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** + * + * *
      * The error that is thrown after all words are sent on the stream.
      * 
@@ -805,11 +885,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { - return error_ == null ? - com.google.rpc.Status.getDefaultInstance() : error_; + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } } /** + * + * *
      * The error that is thrown after all words are sent on the stream.
      * 
@@ -817,14 +898,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getError(), - getParentForChildren(), - isClean()); + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; @@ -832,36 +913,49 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { private com.google.protobuf.Duration streamWaitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> streamWaitTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + streamWaitTimeBuilder_; /** + * + * *
-     *The wait time between each server streaming messages
+     * The wait time between each server streaming messages
      * 
* * .google.protobuf.Duration stream_wait_time = 3; + * * @return Whether the streamWaitTime field is set. */ public boolean hasStreamWaitTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
-     *The wait time between each server streaming messages
+     * The wait time between each server streaming messages
      * 
* * .google.protobuf.Duration stream_wait_time = 3; + * * @return The streamWaitTime. */ public com.google.protobuf.Duration getStreamWaitTime() { if (streamWaitTimeBuilder_ == null) { - return streamWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : streamWaitTime_; + return streamWaitTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : streamWaitTime_; } else { return streamWaitTimeBuilder_.getMessage(); } } /** + * + * *
-     *The wait time between each server streaming messages
+     * The wait time between each server streaming messages
      * 
* * .google.protobuf.Duration stream_wait_time = 3; @@ -880,14 +974,15 @@ public Builder setStreamWaitTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
-     *The wait time between each server streaming messages
+     * The wait time between each server streaming messages
      * 
* * .google.protobuf.Duration stream_wait_time = 3; */ - public Builder setStreamWaitTime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setStreamWaitTime(com.google.protobuf.Duration.Builder builderForValue) { if (streamWaitTimeBuilder_ == null) { streamWaitTime_ = builderForValue.build(); } else { @@ -898,17 +993,19 @@ public Builder setStreamWaitTime( return this; } /** + * + * *
-     *The wait time between each server streaming messages
+     * The wait time between each server streaming messages
      * 
* * .google.protobuf.Duration stream_wait_time = 3; */ public Builder mergeStreamWaitTime(com.google.protobuf.Duration value) { if (streamWaitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - streamWaitTime_ != null && - streamWaitTime_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && streamWaitTime_ != null + && streamWaitTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getStreamWaitTimeBuilder().mergeFrom(value); } else { streamWaitTime_ = value; @@ -923,8 +1020,10 @@ public Builder mergeStreamWaitTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
-     *The wait time between each server streaming messages
+     * The wait time between each server streaming messages
      * 
* * .google.protobuf.Duration stream_wait_time = 3; @@ -940,8 +1039,10 @@ public Builder clearStreamWaitTime() { return this; } /** + * + * *
-     *The wait time between each server streaming messages
+     * The wait time between each server streaming messages
      * 
* * .google.protobuf.Duration stream_wait_time = 3; @@ -952,8 +1053,10 @@ public com.google.protobuf.Duration.Builder getStreamWaitTimeBuilder() { return getStreamWaitTimeFieldBuilder().getBuilder(); } /** + * + * *
-     *The wait time between each server streaming messages
+     * The wait time between each server streaming messages
      * 
* * .google.protobuf.Duration stream_wait_time = 3; @@ -962,33 +1065,39 @@ public com.google.protobuf.DurationOrBuilder getStreamWaitTimeOrBuilder() { if (streamWaitTimeBuilder_ != null) { return streamWaitTimeBuilder_.getMessageOrBuilder(); } else { - return streamWaitTime_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : streamWaitTime_; + return streamWaitTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : streamWaitTime_; } } /** + * + * *
-     *The wait time between each server streaming messages
+     * The wait time between each server streaming messages
      * 
* * .google.protobuf.Duration stream_wait_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getStreamWaitTimeFieldBuilder() { if (streamWaitTimeBuilder_ == null) { - streamWaitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getStreamWaitTime(), - getParentForChildren(), - isClean()); + streamWaitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getStreamWaitTime(), getParentForChildren(), isClean()); streamWaitTime_ = null; } return streamWaitTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -998,12 +1107,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ExpandRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ExpandRequest) private static final com.google.showcase.v1beta1.ExpandRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ExpandRequest(); } @@ -1012,27 +1121,27 @@ public static com.google.showcase.v1beta1.ExpandRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExpandRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExpandRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1047,6 +1156,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.ExpandRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequestOrBuilder.java similarity index 66% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequestOrBuilder.java index b5a36115a1..1f82ac04fc 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ExpandRequestOrBuilder.java @@ -1,52 +1,81 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface ExpandRequestOrBuilder extends +public interface ExpandRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ExpandRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The content that will be split into words and returned on the stream.
    * 
* * string content = 1; + * * @return The content. */ java.lang.String getContent(); /** + * + * *
    * The content that will be split into words and returned on the stream.
    * 
* * string content = 1; + * * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + com.google.protobuf.ByteString getContentBytes(); /** + * + * *
    * The error that is thrown after all words are sent on the stream.
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * The error that is thrown after all words are sent on the stream.
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * The error that is thrown after all words are sent on the stream.
    * 
@@ -56,26 +85,34 @@ public interface ExpandRequestOrBuilder extends com.google.rpc.StatusOrBuilder getErrorOrBuilder(); /** + * + * *
-   *The wait time between each server streaming messages
+   * The wait time between each server streaming messages
    * 
* * .google.protobuf.Duration stream_wait_time = 3; + * * @return Whether the streamWaitTime field is set. */ boolean hasStreamWaitTime(); /** + * + * *
-   *The wait time between each server streaming messages
+   * The wait time between each server streaming messages
    * 
* * .google.protobuf.Duration stream_wait_time = 3; + * * @return The streamWaitTime. */ com.google.protobuf.Duration getStreamWaitTime(); /** + * + * *
-   *The wait time between each server streaming messages
+   * The wait time between each server streaming messages
    * 
* * .google.protobuf.Duration stream_wait_time = 3; diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequest.java similarity index 61% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequest.java index 33b546350f..b7581411df 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request message for the google.showcase.v1beta1.Messaging\GetBlurb
  * method.
@@ -12,48 +29,56 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.GetBlurbRequest}
  */
-public final class GetBlurbRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetBlurbRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.GetBlurbRequest)
     GetBlurbRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetBlurbRequest.newBuilder() to construct.
   private GetBlurbRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetBlurbRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetBlurbRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetBlurbRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_GetBlurbRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.GetBlurbRequest.class, com.google.showcase.v1beta1.GetBlurbRequest.Builder.class);
+            com.google.showcase.v1beta1.GetBlurbRequest.class,
+            com.google.showcase.v1beta1.GetBlurbRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * The resource name of the requested blurb.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,29 +87,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the requested blurb.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.GetBlurbRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.GetBlurbRequest other = (com.google.showcase.v1beta1.GetBlurbRequest) obj; + com.google.showcase.v1beta1.GetBlurbRequest other = + (com.google.showcase.v1beta1.GetBlurbRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -156,99 +183,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.GetBlurbRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.GetBlurbRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.GetBlurbRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.GetBlurbRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.GetBlurbRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for the google.showcase.v1beta1.Messaging\GetBlurb
    * method.
@@ -256,33 +288,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.GetBlurbRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.GetBlurbRequest)
       com.google.showcase.v1beta1.GetBlurbRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetBlurbRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_GetBlurbRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.GetBlurbRequest.class, com.google.showcase.v1beta1.GetBlurbRequest.Builder.class);
+              com.google.showcase.v1beta1.GetBlurbRequest.class,
+              com.google.showcase.v1beta1.GetBlurbRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.GetBlurbRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -292,9 +323,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor;
     }
 
     @java.lang.Override
@@ -313,8 +344,11 @@ public com.google.showcase.v1beta1.GetBlurbRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.GetBlurbRequest buildPartial() {
-      com.google.showcase.v1beta1.GetBlurbRequest result = new com.google.showcase.v1beta1.GetBlurbRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.GetBlurbRequest result =
+          new com.google.showcase.v1beta1.GetBlurbRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -330,38 +364,39 @@ private void buildPartial0(com.google.showcase.v1beta1.GetBlurbRequest result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.GetBlurbRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.GetBlurbRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.GetBlurbRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -401,17 +436,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -421,22 +458,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the requested blurb.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,20 +487,23 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the requested blurb.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -466,28 +511,39 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the requested blurb.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the requested blurb.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -497,26 +553,32 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the requested blurb.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.GetBlurbRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.GetBlurbRequest) private static final com.google.showcase.v1beta1.GetBlurbRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.GetBlurbRequest(); } @@ -540,27 +602,27 @@ public static com.google.showcase.v1beta1.GetBlurbRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBlurbRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBlurbRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +637,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.GetBlurbRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequestOrBuilder.java new file mode 100644 index 0000000000..47d1043dd6 --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface GetBlurbRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.GetBlurbRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the requested blurb.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The resource name of the requested blurb.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequest.java similarity index 61% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequest.java index 23209bff1b..1d4a759949 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request message for the google.showcase.v1beta1.Messaging\GetRoom
  * method.
@@ -12,48 +29,56 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.GetRoomRequest}
  */
-public final class GetRoomRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetRoomRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.GetRoomRequest)
     GetRoomRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetRoomRequest.newBuilder() to construct.
   private GetRoomRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetRoomRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetRoomRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetRoomRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_GetRoomRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.GetRoomRequest.class, com.google.showcase.v1beta1.GetRoomRequest.Builder.class);
+            com.google.showcase.v1beta1.GetRoomRequest.class,
+            com.google.showcase.v1beta1.GetRoomRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * The resource name of the requested room.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,29 +87,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the requested room.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.GetRoomRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.GetRoomRequest other = (com.google.showcase.v1beta1.GetRoomRequest) obj; + com.google.showcase.v1beta1.GetRoomRequest other = + (com.google.showcase.v1beta1.GetRoomRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -156,99 +183,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.GetRoomRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.GetRoomRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.GetRoomRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.GetRoomRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.GetRoomRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.GetRoomRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.GetRoomRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.GetRoomRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.GetRoomRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.GetRoomRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.GetRoomRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.GetRoomRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.GetRoomRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.GetRoomRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.GetRoomRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for the google.showcase.v1beta1.Messaging\GetRoom
    * method.
@@ -256,33 +288,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.GetRoomRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.GetRoomRequest)
       com.google.showcase.v1beta1.GetRoomRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetRoomRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_GetRoomRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.GetRoomRequest.class, com.google.showcase.v1beta1.GetRoomRequest.Builder.class);
+              com.google.showcase.v1beta1.GetRoomRequest.class,
+              com.google.showcase.v1beta1.GetRoomRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.GetRoomRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -292,9 +323,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor;
     }
 
     @java.lang.Override
@@ -313,8 +344,11 @@ public com.google.showcase.v1beta1.GetRoomRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.GetRoomRequest buildPartial() {
-      com.google.showcase.v1beta1.GetRoomRequest result = new com.google.showcase.v1beta1.GetRoomRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.GetRoomRequest result =
+          new com.google.showcase.v1beta1.GetRoomRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -330,38 +364,39 @@ private void buildPartial0(com.google.showcase.v1beta1.GetRoomRequest result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.GetRoomRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.GetRoomRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.GetRoomRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -401,17 +436,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -421,22 +458,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the requested room.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,20 +487,23 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the requested room.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -466,28 +511,39 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the requested room.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the requested room.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -497,26 +553,32 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the requested room.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.GetRoomRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.GetRoomRequest) private static final com.google.showcase.v1beta1.GetRoomRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.GetRoomRequest(); } @@ -540,27 +602,27 @@ public static com.google.showcase.v1beta1.GetRoomRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRoomRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRoomRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +637,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.GetRoomRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequestOrBuilder.java new file mode 100644 index 0000000000..0029fecfd7 --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface GetRoomRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.GetRoomRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the requested room.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The resource name of the requested room.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequest.java similarity index 60% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequest.java index 40f3096099..5a22a0a634 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequest.java @@ -1,50 +1,69 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/sequence.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -/** - * Protobuf type {@code google.showcase.v1beta1.GetSequenceReportRequest} - */ -public final class GetSequenceReportRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.showcase.v1beta1.GetSequenceReportRequest} */ +public final class GetSequenceReportRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.GetSequenceReportRequest) GetSequenceReportRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSequenceReportRequest.newBuilder() to construct. private GetSequenceReportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSequenceReportRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSequenceReportRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetSequenceReportRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_GetSequenceReportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetSequenceReportRequest_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_GetSequenceReportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.GetSequenceReportRequest.class, com.google.showcase.v1beta1.GetSequenceReportRequest.Builder.class); + com.google.showcase.v1beta1.GetSequenceReportRequest.class, + com.google.showcase.v1beta1.GetSequenceReportRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -53,25 +72,25 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -80,6 +99,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -91,8 +111,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -116,15 +135,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.GetSequenceReportRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.GetSequenceReportRequest other = (com.google.showcase.v1beta1.GetSequenceReportRequest) obj; + com.google.showcase.v1beta1.GetSequenceReportRequest other = + (com.google.showcase.v1beta1.GetSequenceReportRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -144,127 +163,127 @@ public int hashCode() { } public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.GetSequenceReportRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.GetSequenceReportRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.GetSequenceReportRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.GetSequenceReportRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.GetSequenceReportRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.GetSequenceReportRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.GetSequenceReportRequest) com.google.showcase.v1beta1.GetSequenceReportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetSequenceReportRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_GetSequenceReportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetSequenceReportRequest_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_GetSequenceReportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.GetSequenceReportRequest.class, com.google.showcase.v1beta1.GetSequenceReportRequest.Builder.class); + com.google.showcase.v1beta1.GetSequenceReportRequest.class, + com.google.showcase.v1beta1.GetSequenceReportRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.GetSequenceReportRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetSequenceReportRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_GetSequenceReportRequest_descriptor; } @java.lang.Override @@ -295,8 +314,11 @@ public com.google.showcase.v1beta1.GetSequenceReportRequest build() { @java.lang.Override public com.google.showcase.v1beta1.GetSequenceReportRequest buildPartial() { - com.google.showcase.v1beta1.GetSequenceReportRequest result = new com.google.showcase.v1beta1.GetSequenceReportRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.GetSequenceReportRequest result = + new com.google.showcase.v1beta1.GetSequenceReportRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -312,38 +334,39 @@ private void buildPartial0(com.google.showcase.v1beta1.GetSequenceReportRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.GetSequenceReportRequest) { - return mergeFrom((com.google.showcase.v1beta1.GetSequenceReportRequest)other); + return mergeFrom((com.google.showcase.v1beta1.GetSequenceReportRequest) other); } else { super.mergeFrom(other); return this; @@ -351,7 +374,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.GetSequenceReportRequest other) { - if (other == com.google.showcase.v1beta1.GetSequenceReportRequest.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.GetSequenceReportRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -383,17 +407,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -403,18 +429,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -423,16 +452,17 @@ public java.lang.String getName() { } } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -440,20 +470,27 @@ public java.lang.String getName() { } } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -463,22 +500,26 @@ public Builder clearName() { return this; } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -488,12 +529,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.GetSequenceReportRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.GetSequenceReportRequest) private static final com.google.showcase.v1beta1.GetSequenceReportRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.GetSequenceReportRequest(); } @@ -502,27 +543,27 @@ public static com.google.showcase.v1beta1.GetSequenceReportRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSequenceReportRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSequenceReportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -537,6 +578,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.GetSequenceReportRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequestOrBuilder.java new file mode 100644 index 0000000000..7a01a8cc13 --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequestOrBuilder.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface GetSequenceReportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.GetSequenceReportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequest.java similarity index 65% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequest.java index 627f2a8a55..300d42db27 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto @@ -5,54 +20,62 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request for the GetSession method.
  * 
* * Protobuf type {@code google.showcase.v1beta1.GetSessionRequest} */ -public final class GetSessionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSessionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.GetSessionRequest) GetSessionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSessionRequest.newBuilder() to construct. private GetSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSessionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSessionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_GetSessionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_GetSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_GetSessionRequest_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_GetSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.GetSessionRequest.class, com.google.showcase.v1beta1.GetSessionRequest.Builder.class); + com.google.showcase.v1beta1.GetSessionRequest.class, + com.google.showcase.v1beta1.GetSessionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The session to be retrieved.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -61,29 +84,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The session to be retrieved.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -92,6 +115,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +127,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -128,15 +151,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.GetSessionRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.GetSessionRequest other = (com.google.showcase.v1beta1.GetSessionRequest) obj; + com.google.showcase.v1beta1.GetSessionRequest other = + (com.google.showcase.v1beta1.GetSessionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,132 +178,136 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.GetSessionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.GetSessionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.GetSessionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.GetSessionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.GetSessionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.GetSessionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.GetSessionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.GetSessionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.GetSessionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.GetSessionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.GetSessionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.GetSessionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.GetSessionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.GetSessionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.GetSessionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for the GetSession method.
    * 
* * Protobuf type {@code google.showcase.v1beta1.GetSessionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.GetSessionRequest) com.google.showcase.v1beta1.GetSessionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_GetSessionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_GetSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_GetSessionRequest_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_GetSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.GetSessionRequest.class, com.google.showcase.v1beta1.GetSessionRequest.Builder.class); + com.google.showcase.v1beta1.GetSessionRequest.class, + com.google.showcase.v1beta1.GetSessionRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.GetSessionRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -290,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_GetSessionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_GetSessionRequest_descriptor; } @java.lang.Override @@ -311,8 +338,11 @@ public com.google.showcase.v1beta1.GetSessionRequest build() { @java.lang.Override public com.google.showcase.v1beta1.GetSessionRequest buildPartial() { - com.google.showcase.v1beta1.GetSessionRequest result = new com.google.showcase.v1beta1.GetSessionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.GetSessionRequest result = + new com.google.showcase.v1beta1.GetSessionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -328,38 +358,39 @@ private void buildPartial0(com.google.showcase.v1beta1.GetSessionRequest result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.GetSessionRequest) { - return mergeFrom((com.google.showcase.v1beta1.GetSessionRequest)other); + return mergeFrom((com.google.showcase.v1beta1.GetSessionRequest) other); } else { super.mergeFrom(other); return this; @@ -399,17 +430,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -419,22 +452,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The session to be retrieved.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -443,20 +479,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The session to be retrieved.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -464,28 +501,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The session to be retrieved.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The session to be retrieved.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { @@ -495,26 +539,30 @@ public Builder clearName() { return this; } /** + * + * *
      * The session to be retrieved.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -524,12 +572,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.GetSessionRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.GetSessionRequest) private static final com.google.showcase.v1beta1.GetSessionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.GetSessionRequest(); } @@ -538,27 +586,27 @@ public static com.google.showcase.v1beta1.GetSessionRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSessionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -573,6 +621,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.GetSessionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequestOrBuilder.java new file mode 100644 index 0000000000..888c7577b3 --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequestOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface GetSessionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.GetSessionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The session to be retrieved.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The session to be retrieved.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequest.java similarity index 57% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequest.java index c6540bc50f..984a9b9f3b 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequest.java @@ -1,50 +1,70 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/sequence.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -/** - * Protobuf type {@code google.showcase.v1beta1.GetStreamingSequenceReportRequest} - */ -public final class GetStreamingSequenceReportRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.showcase.v1beta1.GetStreamingSequenceReportRequest} */ +public final class GetStreamingSequenceReportRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.GetStreamingSequenceReportRequest) GetStreamingSequenceReportRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetStreamingSequenceReportRequest.newBuilder() to construct. - private GetStreamingSequenceReportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetStreamingSequenceReportRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetStreamingSequenceReportRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetStreamingSequenceReportRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.class, com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.Builder.class); + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.class, + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -53,25 +73,25 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -80,6 +100,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -91,8 +112,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -116,15 +136,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.GetStreamingSequenceReportRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.GetStreamingSequenceReportRequest other = (com.google.showcase.v1beta1.GetStreamingSequenceReportRequest) obj; + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest other = + (com.google.showcase.v1beta1.GetStreamingSequenceReportRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -144,127 +164,128 @@ public int hashCode() { } public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.showcase.v1beta1.GetStreamingSequenceReportRequest prototype) { + + public static Builder newBuilder( + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.GetStreamingSequenceReportRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.GetStreamingSequenceReportRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.GetStreamingSequenceReportRequest) com.google.showcase.v1beta1.GetStreamingSequenceReportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.class, com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.Builder.class); + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.class, + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,13 +295,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_descriptor; } @java.lang.Override - public com.google.showcase.v1beta1.GetStreamingSequenceReportRequest getDefaultInstanceForType() { + public com.google.showcase.v1beta1.GetStreamingSequenceReportRequest + getDefaultInstanceForType() { return com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.getDefaultInstance(); } @@ -295,13 +317,17 @@ public com.google.showcase.v1beta1.GetStreamingSequenceReportRequest build() { @java.lang.Override public com.google.showcase.v1beta1.GetStreamingSequenceReportRequest buildPartial() { - com.google.showcase.v1beta1.GetStreamingSequenceReportRequest result = new com.google.showcase.v1beta1.GetStreamingSequenceReportRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest result = + new com.google.showcase.v1beta1.GetStreamingSequenceReportRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.showcase.v1beta1.GetStreamingSequenceReportRequest result) { + private void buildPartial0( + com.google.showcase.v1beta1.GetStreamingSequenceReportRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -312,38 +338,39 @@ private void buildPartial0(com.google.showcase.v1beta1.GetStreamingSequenceRepor public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.GetStreamingSequenceReportRequest) { - return mergeFrom((com.google.showcase.v1beta1.GetStreamingSequenceReportRequest)other); + return mergeFrom((com.google.showcase.v1beta1.GetStreamingSequenceReportRequest) other); } else { super.mergeFrom(other); return this; @@ -351,7 +378,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.GetStreamingSequenceReportRequest other) { - if (other == com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.getDefaultInstance()) return this; + if (other + == com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -383,17 +412,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -403,18 +434,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -423,16 +457,17 @@ public java.lang.String getName() { } } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -440,20 +475,27 @@ public java.lang.String getName() { } } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -463,22 +505,26 @@ public Builder clearName() { return this; } /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -488,12 +534,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.GetStreamingSequenceReportRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.GetStreamingSequenceReportRequest) - private static final com.google.showcase.v1beta1.GetStreamingSequenceReportRequest DEFAULT_INSTANCE; + private static final com.google.showcase.v1beta1.GetStreamingSequenceReportRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.GetStreamingSequenceReportRequest(); } @@ -502,27 +549,27 @@ public static com.google.showcase.v1beta1.GetStreamingSequenceReportRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetStreamingSequenceReportRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetStreamingSequenceReportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -537,6 +584,4 @@ public com.google.protobuf.Parser getParserFo public com.google.showcase.v1beta1.GetStreamingSequenceReportRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequestOrBuilder.java new file mode 100644 index 0000000000..4e0c82f4cf --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequestOrBuilder.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/sequence.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface GetStreamingSequenceReportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.GetStreamingSequenceReportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequest.java similarity index 61% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequest.java index 8c7cb1ce5f..567b853e20 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/identity.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request message for the google.showcase.v1beta1.Identity\GetUser
  * method.
@@ -12,48 +29,56 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.GetUserRequest}
  */
-public final class GetUserRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetUserRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.GetUserRequest)
     GetUserRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetUserRequest.newBuilder() to construct.
   private GetUserRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetUserRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetUserRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_GetUserRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.IdentityOuterClass
+        .internal_static_google_showcase_v1beta1_GetUserRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_GetUserRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.IdentityOuterClass
+        .internal_static_google_showcase_v1beta1_GetUserRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.GetUserRequest.class, com.google.showcase.v1beta1.GetUserRequest.Builder.class);
+            com.google.showcase.v1beta1.GetUserRequest.class,
+            com.google.showcase.v1beta1.GetUserRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * The resource name of the requested user.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,29 +87,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the requested user.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.GetUserRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.GetUserRequest other = (com.google.showcase.v1beta1.GetUserRequest) obj; + com.google.showcase.v1beta1.GetUserRequest other = + (com.google.showcase.v1beta1.GetUserRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -156,99 +183,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.GetUserRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.GetUserRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.GetUserRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.GetUserRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.GetUserRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.GetUserRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.GetUserRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.GetUserRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.GetUserRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.GetUserRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.GetUserRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.GetUserRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.GetUserRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.GetUserRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.GetUserRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for the google.showcase.v1beta1.Identity\GetUser
    * method.
@@ -256,33 +288,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.GetUserRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.GetUserRequest)
       com.google.showcase.v1beta1.GetUserRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_GetUserRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.IdentityOuterClass
+          .internal_static_google_showcase_v1beta1_GetUserRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_GetUserRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.IdentityOuterClass
+          .internal_static_google_showcase_v1beta1_GetUserRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.GetUserRequest.class, com.google.showcase.v1beta1.GetUserRequest.Builder.class);
+              com.google.showcase.v1beta1.GetUserRequest.class,
+              com.google.showcase.v1beta1.GetUserRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.GetUserRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -292,9 +323,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_GetUserRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.IdentityOuterClass
+          .internal_static_google_showcase_v1beta1_GetUserRequest_descriptor;
     }
 
     @java.lang.Override
@@ -313,8 +344,11 @@ public com.google.showcase.v1beta1.GetUserRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.GetUserRequest buildPartial() {
-      com.google.showcase.v1beta1.GetUserRequest result = new com.google.showcase.v1beta1.GetUserRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.GetUserRequest result =
+          new com.google.showcase.v1beta1.GetUserRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -330,38 +364,39 @@ private void buildPartial0(com.google.showcase.v1beta1.GetUserRequest result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.GetUserRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.GetUserRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.GetUserRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -401,17 +436,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -421,22 +458,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the requested user.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,20 +487,23 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the requested user.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -466,28 +511,39 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the requested user.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the requested user.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -497,26 +553,32 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the requested user.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.GetUserRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.GetUserRequest) private static final com.google.showcase.v1beta1.GetUserRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.GetUserRequest(); } @@ -540,27 +602,27 @@ public static com.google.showcase.v1beta1.GetUserRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetUserRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetUserRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +637,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.GetUserRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequestOrBuilder.java new file mode 100644 index 0000000000..7972c33877 --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/identity.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface GetUserRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.GetUserRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the requested user.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The resource name of the requested user.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityOuterClass.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityOuterClass.java new file mode 100644 index 0000000000..90c290df3b --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityOuterClass.java @@ -0,0 +1,217 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/identity.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public final class IdentityOuterClass { + private IdentityOuterClass() {} + + 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_showcase_v1beta1_User_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_User_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_CreateUserRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_GetUserRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_GetUserRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_UpdateUserRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_DeleteUserRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListUsersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListUsersResponse_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-schema/google/showcase/v1beta1/identit" + + "y.proto\022\027google.showcase.v1beta1\032\034google" + + "/api/annotations.proto\032\027google/api/clien" + + "t.proto\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\032\033google/prot" + + "obuf/empty.proto\032 google/protobuf/field_" + + "mask.proto\032\037google/protobuf/timestamp.pr" + + "oto\"\204\003\n\004User\022\014\n\004name\030\001 \001(\t\022\031\n\014display_na" + + "me\030\002 \001(\tB\003\340A\002\022\022\n\005email\030\003 \001(\tB\003\340A\002\0224\n\013cre" + + "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022\020\n\003age\030\006 \001(\005H\000\210\001\001\022" + + "\030\n\013height_feet\030\007 \001(\001H\001\210\001\001\022\025\n\010nickname\030\010 " + + "\001(\tH\002\210\001\001\022!\n\024enable_notifications\030\t \001(\010H\003" + + "\210\001\001:/\352A,\n\034showcase.googleapis.com/User\022\014" + + "users/{user}B\006\n\004_ageB\016\n\014_height_feetB\013\n\t" + + "_nicknameB\027\n\025_enable_notifications\"@\n\021Cr" + + "eateUserRequest\022+\n\004user\030\001 \001(\0132\035.google.s" + + "howcase.v1beta1.User\"D\n\016GetUserRequest\0222" + + "\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034showcase.googleapi" + + "s.com/User\"q\n\021UpdateUserRequest\022+\n\004user\030" + + "\001 \001(\0132\035.google.showcase.v1beta1.User\022/\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMask\"G\n\021DeleteUserRequest\0222\n\004name\030\001 \001(\t" + + "B$\340A\002\372A\036\n\034showcase.googleapis.com/User\"9" + + "\n\020ListUsersRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n" + + "\npage_token\030\002 \001(\t\"Z\n\021ListUsersResponse\022," + + "\n\005users\030\001 \003(\0132\035.google.showcase.v1beta1." + + "User\022\027\n\017next_page_token\030\002 \001(\t2\212\006\n\010Identi" + + "ty\022\363\001\n\nCreateUser\022*.google.showcase.v1be" + + "ta1.CreateUserRequest\032\035.google.showcase." + + "v1beta1.User\"\231\001\332A\034user.display_name,user" + + ".email\332A^user.display_name,user.email,us" + + "er.age,user.nickname,user.enable_notific" + + "ations,user.height_feet\202\323\344\223\002\023\"\016/v1beta1/" + + "users:\001*\022y\n\007GetUser\022\'.google.showcase.v1" + + "beta1.GetUserRequest\032\035.google.showcase.v" + + "1beta1.User\"&\332A\004name\202\323\344\223\002\031\022\027/v1beta1/{na" + + "me=users/*}\022\203\001\n\nUpdateUser\022*.google.show" + + "case.v1beta1.UpdateUserRequest\032\035.google." + + "showcase.v1beta1.User\"*\202\323\344\223\002$2\034/v1beta1/" + + "{user.name=users/*}:\004user\022x\n\nDeleteUser\022" + + "*.google.showcase.v1beta1.DeleteUserRequ" + + "est\032\026.google.protobuf.Empty\"&\332A\004name\202\323\344\223" + + "\002\031*\027/v1beta1/{name=users/*}\022z\n\tListUsers" + + "\022).google.showcase.v1beta1.ListUsersRequ" + + "est\032*.google.showcase.v1beta1.ListUsersR" + + "esponse\"\026\202\323\344\223\002\020\022\016/v1beta1/users\032\021\312A\016loca" + + "lhost:7469Bq\n\033com.google.showcase.v1beta" + + "1P\001Z4github.com/googleapis/gapic-showcas" + + "e/server/genproto\352\002\031Google::Showcase::V1" + + "beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_showcase_v1beta1_User_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_showcase_v1beta1_User_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_User_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Email", + "CreateTime", + "UpdateTime", + "Age", + "HeightFeet", + "Nickname", + "EnableNotifications", + }); + internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_showcase_v1beta1_CreateUserRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor, + new java.lang.String[] { + "User", + }); + internal_static_google_showcase_v1beta1_GetUserRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_showcase_v1beta1_GetUserRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_GetUserRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_showcase_v1beta1_UpdateUserRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor, + new java.lang.String[] { + "User", "UpdateMask", + }); + internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_showcase_v1beta1_DeleteUserRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_showcase_v1beta1_ListUsersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor, + new java.lang.String[] { + "PageSize", "PageToken", + }); + internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_showcase_v1beta1_ListUsersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor, + new java.lang.String[] { + "Users", "NextPageToken", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Issue.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Issue.java similarity index 70% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Issue.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Issue.java index 50917f8b7d..32785c893e 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Issue.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Issue.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto @@ -5,21 +20,24 @@ package com.google.showcase.v1beta1; /** + * + * *
  * An issue found in the test.
  * 
* * Protobuf type {@code google.showcase.v1beta1.Issue} */ -public final class Issue extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Issue extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.Issue) IssueOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Issue.newBuilder() to construct. private Issue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Issue() { type_ = 0; severity_ = 0; @@ -28,38 +46,40 @@ private Issue() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Issue(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Issue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_Issue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Issue_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_Issue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.Issue.class, com.google.showcase.v1beta1.Issue.Builder.class); + com.google.showcase.v1beta1.Issue.class, + com.google.showcase.v1beta1.Issue.Builder.class); } /** + * + * *
    * The different potential types of issues.
    * 
* * Protobuf enum {@code google.showcase.v1beta1.Issue.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * TYPE_UNSPECIFIED = 0; - */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** TYPE_UNSPECIFIED = 0; */ TYPE_UNSPECIFIED(0), /** + * + * *
      * The test was never instrumented.
      * 
@@ -68,6 +88,8 @@ public enum Type */ SKIPPED(1), /** + * + * *
      * The test was started but never confirmed.
      * 
@@ -76,6 +98,8 @@ public enum Type */ PENDING(2), /** + * + * *
      * The test was instrumented, but Showcase got an unexpected
      * value when the generator tried to confirm success.
@@ -87,11 +111,11 @@ public enum Type
     UNRECOGNIZED(-1),
     ;
 
-    /**
-     * TYPE_UNSPECIFIED = 0;
-     */
+    /** TYPE_UNSPECIFIED = 0; */
     public static final int TYPE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The test was never instrumented.
      * 
@@ -100,6 +124,8 @@ public enum Type */ public static final int SKIPPED_VALUE = 1; /** + * + * *
      * The test was started but never confirmed.
      * 
@@ -108,6 +134,8 @@ public enum Type */ public static final int PENDING_VALUE = 2; /** + * + * *
      * The test was instrumented, but Showcase got an unexpected
      * value when the generator tried to confirm success.
@@ -117,7 +145,6 @@ public enum Type
      */
     public static final int INCORRECT_CONFIRMATION_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -142,50 +169,51 @@ public static Type valueOf(int value) {
      */
     public static Type forNumber(int value) {
       switch (value) {
-        case 0: return TYPE_UNSPECIFIED;
-        case 1: return SKIPPED;
-        case 2: return PENDING;
-        case 3: return INCORRECT_CONFIRMATION;
-        default: return null;
+        case 0:
+          return TYPE_UNSPECIFIED;
+        case 1:
+          return SKIPPED;
+        case 2:
+          return PENDING;
+        case 3:
+          return INCORRECT_CONFIRMATION;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        Type> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Type findValueByNumber(int number) {
-              return Type.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Type findValueByNumber(int number) {
+            return Type.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.showcase.v1beta1.Issue.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Type[] VALUES = values();
 
-    public static Type valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -203,19 +231,20 @@ private Type(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Severity levels.
    * 
* * Protobuf enum {@code google.showcase.v1beta1.Issue.Severity} */ - public enum Severity - implements com.google.protobuf.ProtocolMessageEnum { - /** - * SEVERITY_UNSPECIFIED = 0; - */ + public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + /** SEVERITY_UNSPECIFIED = 0; */ SEVERITY_UNSPECIFIED(0), /** + * + * *
      * Errors.
      * 
@@ -224,6 +253,8 @@ public enum Severity */ ERROR(1), /** + * + * *
      * Warnings.
      * 
@@ -234,11 +265,11 @@ public enum Severity UNRECOGNIZED(-1), ; - /** - * SEVERITY_UNSPECIFIED = 0; - */ + /** SEVERITY_UNSPECIFIED = 0; */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Errors.
      * 
@@ -247,6 +278,8 @@ public enum Severity */ public static final int ERROR_VALUE = 1; /** + * + * *
      * Warnings.
      * 
@@ -255,7 +288,6 @@ public enum Severity */ public static final int WARNING_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -280,49 +312,49 @@ public static Severity valueOf(int value) { */ public static Severity forNumber(int value) { switch (value) { - case 0: return SEVERITY_UNSPECIFIED; - case 1: return ERROR; - case 2: return WARNING; - default: return null; + case 0: + return SEVERITY_UNSPECIFIED; + case 1: + return ERROR; + case 2: + return WARNING; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Severity> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Severity findValueByNumber(int number) { - return Severity.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.showcase.v1beta1.Issue.getDescriptor().getEnumTypes().get(1); } private static final Severity[] VALUES = values(); - public static Severity valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -342,64 +374,86 @@ private Severity(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_ = 0; /** + * + * *
    * The type of the issue.
    * 
* * .google.showcase.v1beta1.Issue.Type type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * The type of the issue.
    * 
* * .google.showcase.v1beta1.Issue.Type type = 1; + * * @return The type. */ - @java.lang.Override public com.google.showcase.v1beta1.Issue.Type getType() { - com.google.showcase.v1beta1.Issue.Type result = com.google.showcase.v1beta1.Issue.Type.forNumber(type_); + @java.lang.Override + public com.google.showcase.v1beta1.Issue.Type getType() { + com.google.showcase.v1beta1.Issue.Type result = + com.google.showcase.v1beta1.Issue.Type.forNumber(type_); return result == null ? com.google.showcase.v1beta1.Issue.Type.UNRECOGNIZED : result; } public static final int SEVERITY_FIELD_NUMBER = 2; private int severity_ = 0; /** + * + * *
    * The severity of the issue.
    * 
* * .google.showcase.v1beta1.Issue.Severity severity = 2; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
    * The severity of the issue.
    * 
* * .google.showcase.v1beta1.Issue.Severity severity = 2; + * * @return The severity. */ - @java.lang.Override public com.google.showcase.v1beta1.Issue.Severity getSeverity() { - com.google.showcase.v1beta1.Issue.Severity result = com.google.showcase.v1beta1.Issue.Severity.forNumber(severity_); + @java.lang.Override + public com.google.showcase.v1beta1.Issue.Severity getSeverity() { + com.google.showcase.v1beta1.Issue.Severity result = + com.google.showcase.v1beta1.Issue.Severity.forNumber(severity_); return result == null ? com.google.showcase.v1beta1.Issue.Severity.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * A description of the issue.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -408,29 +462,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * A description of the issue.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -439,6 +493,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -450,8 +505,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != com.google.showcase.v1beta1.Issue.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } @@ -471,12 +525,10 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.showcase.v1beta1.Issue.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (severity_ != com.google.showcase.v1beta1.Issue.Severity.SEVERITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, severity_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); @@ -489,7 +541,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.Issue)) { return super.equals(obj); @@ -498,8 +550,7 @@ public boolean equals(final java.lang.Object obj) { if (type_ != other.type_) return false; if (severity_ != other.severity_) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -522,132 +573,135 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.Issue parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.Issue parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Issue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.Issue parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.showcase.v1beta1.Issue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Issue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.Issue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Issue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.Issue parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.Issue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.showcase.v1beta1.Issue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.Issue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.Issue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.Issue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.Issue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An issue found in the test.
    * 
* * Protobuf type {@code google.showcase.v1beta1.Issue} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.Issue) com.google.showcase.v1beta1.IssueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Issue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_Issue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Issue_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_Issue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.Issue.class, com.google.showcase.v1beta1.Issue.Builder.class); + com.google.showcase.v1beta1.Issue.class, + com.google.showcase.v1beta1.Issue.Builder.class); } // Construct using com.google.showcase.v1beta1.Issue.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -659,9 +713,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Issue_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_Issue_descriptor; } @java.lang.Override @@ -681,7 +735,9 @@ public com.google.showcase.v1beta1.Issue build() { @java.lang.Override public com.google.showcase.v1beta1.Issue buildPartial() { com.google.showcase.v1beta1.Issue result = new com.google.showcase.v1beta1.Issue(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -703,38 +759,39 @@ private void buildPartial0(com.google.showcase.v1beta1.Issue result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.Issue) { - return mergeFrom((com.google.showcase.v1beta1.Issue)other); + return mergeFrom((com.google.showcase.v1beta1.Issue) other); } else { super.mergeFrom(other); return this; @@ -780,27 +837,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - type_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - severity_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + severity_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -810,26 +871,34 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int type_ = 0; /** + * + * *
      * The type of the issue.
      * 
* * .google.showcase.v1beta1.Issue.Type type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * The type of the issue.
      * 
* * .google.showcase.v1beta1.Issue.Type type = 1; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -840,24 +909,31 @@ public Builder setTypeValue(int value) { return this; } /** + * + * *
      * The type of the issue.
      * 
* * .google.showcase.v1beta1.Issue.Type type = 1; + * * @return The type. */ @java.lang.Override public com.google.showcase.v1beta1.Issue.Type getType() { - com.google.showcase.v1beta1.Issue.Type result = com.google.showcase.v1beta1.Issue.Type.forNumber(type_); + com.google.showcase.v1beta1.Issue.Type result = + com.google.showcase.v1beta1.Issue.Type.forNumber(type_); return result == null ? com.google.showcase.v1beta1.Issue.Type.UNRECOGNIZED : result; } /** + * + * *
      * The type of the issue.
      * 
* * .google.showcase.v1beta1.Issue.Type type = 1; + * * @param value The type to set. * @return This builder for chaining. */ @@ -871,11 +947,14 @@ public Builder setType(com.google.showcase.v1beta1.Issue.Type value) { return this; } /** + * + * *
      * The type of the issue.
      * 
* * .google.showcase.v1beta1.Issue.Type type = 1; + * * @return This builder for chaining. */ public Builder clearType() { @@ -887,22 +966,29 @@ public Builder clearType() { private int severity_ = 0; /** + * + * *
      * The severity of the issue.
      * 
* * .google.showcase.v1beta1.Issue.Severity severity = 2; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
      * The severity of the issue.
      * 
* * .google.showcase.v1beta1.Issue.Severity severity = 2; + * * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ @@ -913,24 +999,31 @@ public Builder setSeverityValue(int value) { return this; } /** + * + * *
      * The severity of the issue.
      * 
* * .google.showcase.v1beta1.Issue.Severity severity = 2; + * * @return The severity. */ @java.lang.Override public com.google.showcase.v1beta1.Issue.Severity getSeverity() { - com.google.showcase.v1beta1.Issue.Severity result = com.google.showcase.v1beta1.Issue.Severity.forNumber(severity_); + com.google.showcase.v1beta1.Issue.Severity result = + com.google.showcase.v1beta1.Issue.Severity.forNumber(severity_); return result == null ? com.google.showcase.v1beta1.Issue.Severity.UNRECOGNIZED : result; } /** + * + * *
      * The severity of the issue.
      * 
* * .google.showcase.v1beta1.Issue.Severity severity = 2; + * * @param value The severity to set. * @return This builder for chaining. */ @@ -944,11 +1037,14 @@ public Builder setSeverity(com.google.showcase.v1beta1.Issue.Severity value) { return this; } /** + * + * *
      * The severity of the issue.
      * 
* * .google.showcase.v1beta1.Issue.Severity severity = 2; + * * @return This builder for chaining. */ public Builder clearSeverity() { @@ -960,18 +1056,20 @@ public Builder clearSeverity() { private java.lang.Object description_ = ""; /** + * + * *
      * A description of the issue.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -980,20 +1078,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A description of the issue.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1001,28 +1100,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A description of the issue.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A description of the issue.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1032,26 +1138,30 @@ public Builder clearDescription() { return this; } /** + * + * *
      * A description of the issue.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1061,12 +1171,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.Issue) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.Issue) private static final com.google.showcase.v1beta1.Issue DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.Issue(); } @@ -1075,27 +1185,27 @@ public static com.google.showcase.v1beta1.Issue getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Issue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Issue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1110,6 +1220,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.Issue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IssueOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IssueOrBuilder.java similarity index 66% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IssueOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IssueOrBuilder.java index 801d36ead8..9f13bb07dc 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IssueOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IssueOrBuilder.java @@ -1,68 +1,101 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface IssueOrBuilder extends +public interface IssueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.Issue) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The type of the issue.
    * 
* * .google.showcase.v1beta1.Issue.Type type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * The type of the issue.
    * 
* * .google.showcase.v1beta1.Issue.Type type = 1; + * * @return The type. */ com.google.showcase.v1beta1.Issue.Type getType(); /** + * + * *
    * The severity of the issue.
    * 
* * .google.showcase.v1beta1.Issue.Severity severity = 2; + * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** + * + * *
    * The severity of the issue.
    * 
* * .google.showcase.v1beta1.Issue.Severity severity = 2; + * * @return The severity. */ com.google.showcase.v1beta1.Issue.Severity getSeverity(); /** + * + * *
    * A description of the issue.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A description of the issue.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequest.java similarity index 67% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequest.java index afd70bf858..099555f20a 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request message for the google.showcase.v1beta1.Messaging\ListBlurbs
  * method.
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.ListBlurbsRequest}
  */
-public final class ListBlurbsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListBlurbsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListBlurbsRequest)
     ListBlurbsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListBlurbsRequest.newBuilder() to construct.
   private ListBlurbsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListBlurbsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -28,33 +46,40 @@ private ListBlurbsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListBlurbsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_ListBlurbsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.ListBlurbsRequest.class, com.google.showcase.v1beta1.ListBlurbsRequest.Builder.class);
+            com.google.showcase.v1beta1.ListBlurbsRequest.class,
+            com.google.showcase.v1beta1.ListBlurbsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * The resource name of the requested room or profile whos blurbs to list.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -63,29 +88,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * The resource name of the requested room or profile whos blurbs to list.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -96,6 +123,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of blurbs to return. Server may return fewer
    * blurbs than requested. If unspecified, server will pick an appropriate
@@ -103,6 +132,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -111,9 +141,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token
    * returned from the previous call to
@@ -121,6 +154,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -129,14 +163,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token
    * returned from the previous call to
@@ -144,16 +179,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -162,6 +196,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +208,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -197,8 +231,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -211,19 +244,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.ListBlurbsRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.ListBlurbsRequest other = (com.google.showcase.v1beta1.ListBlurbsRequest) obj; + com.google.showcase.v1beta1.ListBlurbsRequest other = + (com.google.showcase.v1beta1.ListBlurbsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -246,99 +277,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.ListBlurbsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.ListBlurbsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.ListBlurbsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListBlurbsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.ListBlurbsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for the google.showcase.v1beta1.Messaging\ListBlurbs
    * method.
@@ -346,33 +382,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.ListBlurbsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListBlurbsRequest)
       com.google.showcase.v1beta1.ListBlurbsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_ListBlurbsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.ListBlurbsRequest.class, com.google.showcase.v1beta1.ListBlurbsRequest.Builder.class);
+              com.google.showcase.v1beta1.ListBlurbsRequest.class,
+              com.google.showcase.v1beta1.ListBlurbsRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.ListBlurbsRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -384,9 +419,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -405,8 +440,11 @@ public com.google.showcase.v1beta1.ListBlurbsRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.ListBlurbsRequest buildPartial() {
-      com.google.showcase.v1beta1.ListBlurbsRequest result = new com.google.showcase.v1beta1.ListBlurbsRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.ListBlurbsRequest result =
+          new com.google.showcase.v1beta1.ListBlurbsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -428,38 +466,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ListBlurbsRequest result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.ListBlurbsRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.ListBlurbsRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.ListBlurbsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -507,27 +546,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -537,22 +580,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the requested room or profile whos blurbs to list.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -561,20 +609,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * The resource name of the requested room or profile whos blurbs to list.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -582,28 +633,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * The resource name of the requested room or profile whos blurbs to list.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the requested room or profile whos blurbs to list.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -613,17 +675,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * The resource name of the requested room or profile whos blurbs to list.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -631,8 +699,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of blurbs to return. Server may return fewer
      * blurbs than requested. If unspecified, server will pick an appropriate
@@ -640,6 +710,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -647,6 +718,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of blurbs to return. Server may return fewer
      * blurbs than requested. If unspecified, server will pick an appropriate
@@ -654,6 +727,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -665,6 +739,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of blurbs to return. Server may return fewer
      * blurbs than requested. If unspecified, server will pick an appropriate
@@ -672,6 +748,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -683,6 +760,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token
      * returned from the previous call to
@@ -690,13 +769,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -705,6 +784,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token
      * returned from the previous call to
@@ -712,15 +793,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -728,6 +808,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token
      * returned from the previous call to
@@ -735,18 +817,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token
      * returned from the previous call to
@@ -754,6 +840,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -763,6 +850,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token
      * returned from the previous call to
@@ -770,21 +859,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -794,12 +885,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ListBlurbsRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListBlurbsRequest) private static final com.google.showcase.v1beta1.ListBlurbsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListBlurbsRequest(); } @@ -808,27 +899,27 @@ public static com.google.showcase.v1beta1.ListBlurbsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBlurbsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBlurbsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -843,6 +934,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.ListBlurbsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequestOrBuilder.java similarity index 58% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequestOrBuilder.java index add7496f22..f49061af12 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsRequestOrBuilder.java @@ -1,34 +1,61 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface ListBlurbsRequestOrBuilder extends +public interface ListBlurbsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListBlurbsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the requested room or profile whos blurbs to list.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * The resource name of the requested room or profile whos blurbs to list.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of blurbs to return. Server may return fewer
    * blurbs than requested. If unspecified, server will pick an appropriate
@@ -36,11 +63,14 @@ public interface ListBlurbsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token
    * returned from the previous call to
@@ -48,10 +78,13 @@ public interface ListBlurbsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token
    * returned from the previous call to
@@ -59,8 +92,8 @@ public interface ListBlurbsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponse.java similarity index 72% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponse.java index 47045f4118..688b14877e 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The response message for the google.showcase.v1beta1.Messaging\ListBlurbs
  * method.
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.ListBlurbsResponse}
  */
-public final class ListBlurbsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListBlurbsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListBlurbsResponse)
     ListBlurbsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListBlurbsResponse.newBuilder() to construct.
   private ListBlurbsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListBlurbsResponse() {
     blurbs_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -28,28 +46,32 @@ private ListBlurbsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListBlurbsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsResponse_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_ListBlurbsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.ListBlurbsResponse.class, com.google.showcase.v1beta1.ListBlurbsResponse.Builder.class);
+            com.google.showcase.v1beta1.ListBlurbsResponse.class,
+            com.google.showcase.v1beta1.ListBlurbsResponse.Builder.class);
   }
 
   public static final int BLURBS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List blurbs_;
   /**
+   *
+   *
    * 
    * The list of blurbs.
    * 
@@ -61,6 +83,8 @@ public java.util.List getBlurbsList() { return blurbs_; } /** + * + * *
    * The list of blurbs.
    * 
@@ -68,11 +92,13 @@ public java.util.List getBlurbsList() { * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBlurbsOrBuilderList() { return blurbs_; } /** + * + * *
    * The list of blurbs.
    * 
@@ -84,6 +110,8 @@ public int getBlurbsCount() { return blurbs_.size(); } /** + * + * *
    * The list of blurbs.
    * 
@@ -95,6 +123,8 @@ public com.google.showcase.v1beta1.Blurb getBlurbs(int index) { return blurbs_.get(index); } /** + * + * *
    * The list of blurbs.
    * 
@@ -102,15 +132,17 @@ public com.google.showcase.v1beta1.Blurb getBlurbs(int index) { * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ @java.lang.Override - public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder( - int index) { + public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder(int index) { return blurbs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token to retrieve next page of results.
    * Pass this value in ListBlurbsRequest.page_token field in the subsequent
@@ -119,6 +151,7 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,14 +160,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve next page of results.
    * Pass this value in ListBlurbsRequest.page_token field in the subsequent
@@ -143,16 +177,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -161,6 +194,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +206,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < blurbs_.size(); i++) { output.writeMessage(1, blurbs_.get(i)); } @@ -190,8 +223,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < blurbs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, blurbs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, blurbs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -204,17 +236,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.ListBlurbsResponse)) { return super.equals(obj); } - com.google.showcase.v1beta1.ListBlurbsResponse other = (com.google.showcase.v1beta1.ListBlurbsResponse) obj; + com.google.showcase.v1beta1.ListBlurbsResponse other = + (com.google.showcase.v1beta1.ListBlurbsResponse) obj; - if (!getBlurbsList() - .equals(other.getBlurbsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getBlurbsList().equals(other.getBlurbsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,99 +268,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.ListBlurbsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.ListBlurbsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.ListBlurbsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListBlurbsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.ListBlurbsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response message for the google.showcase.v1beta1.Messaging\ListBlurbs
    * method.
@@ -337,33 +373,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.ListBlurbsResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListBlurbsResponse)
       com.google.showcase.v1beta1.ListBlurbsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsResponse_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_ListBlurbsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.ListBlurbsResponse.class, com.google.showcase.v1beta1.ListBlurbsResponse.Builder.class);
+              com.google.showcase.v1beta1.ListBlurbsResponse.class,
+              com.google.showcase.v1beta1.ListBlurbsResponse.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.ListBlurbsResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -380,9 +415,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -401,9 +436,12 @@ public com.google.showcase.v1beta1.ListBlurbsResponse build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.ListBlurbsResponse buildPartial() {
-      com.google.showcase.v1beta1.ListBlurbsResponse result = new com.google.showcase.v1beta1.ListBlurbsResponse(this);
+      com.google.showcase.v1beta1.ListBlurbsResponse result =
+          new com.google.showcase.v1beta1.ListBlurbsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -431,38 +469,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ListBlurbsResponse result
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.ListBlurbsResponse) {
-        return mergeFrom((com.google.showcase.v1beta1.ListBlurbsResponse)other);
+        return mergeFrom((com.google.showcase.v1beta1.ListBlurbsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -489,9 +528,10 @@ public Builder mergeFrom(com.google.showcase.v1beta1.ListBlurbsResponse other) {
             blurbsBuilder_ = null;
             blurbs_ = other.blurbs_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            blurbsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getBlurbsFieldBuilder() : null;
+            blurbsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getBlurbsFieldBuilder()
+                    : null;
           } else {
             blurbsBuilder_.addAllMessages(other.blurbs_);
           }
@@ -528,30 +568,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.showcase.v1beta1.Blurb m =
-                  input.readMessage(
-                      com.google.showcase.v1beta1.Blurb.parser(),
-                      extensionRegistry);
-              if (blurbsBuilder_ == null) {
-                ensureBlurbsIsMutable();
-                blurbs_.add(m);
-              } else {
-                blurbsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.showcase.v1beta1.Blurb m =
+                    input.readMessage(
+                        com.google.showcase.v1beta1.Blurb.parser(), extensionRegistry);
+                if (blurbsBuilder_ == null) {
+                  ensureBlurbsIsMutable();
+                  blurbs_.add(m);
+                } else {
+                  blurbsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -561,21 +603,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List blurbs_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureBlurbsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         blurbs_ = new java.util.ArrayList(blurbs_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> blurbsBuilder_;
+            com.google.showcase.v1beta1.Blurb,
+            com.google.showcase.v1beta1.Blurb.Builder,
+            com.google.showcase.v1beta1.BlurbOrBuilder>
+        blurbsBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of blurbs.
      * 
@@ -590,6 +639,8 @@ public java.util.List getBlurbsList() { } } /** + * + * *
      * The list of blurbs.
      * 
@@ -604,6 +655,8 @@ public int getBlurbsCount() { } } /** + * + * *
      * The list of blurbs.
      * 
@@ -618,14 +671,15 @@ public com.google.showcase.v1beta1.Blurb getBlurbs(int index) { } } /** + * + * *
      * The list of blurbs.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public Builder setBlurbs( - int index, com.google.showcase.v1beta1.Blurb value) { + public Builder setBlurbs(int index, com.google.showcase.v1beta1.Blurb value) { if (blurbsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -639,14 +693,15 @@ public Builder setBlurbs( return this; } /** + * + * *
      * The list of blurbs.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public Builder setBlurbs( - int index, com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + public Builder setBlurbs(int index, com.google.showcase.v1beta1.Blurb.Builder builderForValue) { if (blurbsBuilder_ == null) { ensureBlurbsIsMutable(); blurbs_.set(index, builderForValue.build()); @@ -657,6 +712,8 @@ public Builder setBlurbs( return this; } /** + * + * *
      * The list of blurbs.
      * 
@@ -677,14 +734,15 @@ public Builder addBlurbs(com.google.showcase.v1beta1.Blurb value) { return this; } /** + * + * *
      * The list of blurbs.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public Builder addBlurbs( - int index, com.google.showcase.v1beta1.Blurb value) { + public Builder addBlurbs(int index, com.google.showcase.v1beta1.Blurb value) { if (blurbsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -698,14 +756,15 @@ public Builder addBlurbs( return this; } /** + * + * *
      * The list of blurbs.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public Builder addBlurbs( - com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + public Builder addBlurbs(com.google.showcase.v1beta1.Blurb.Builder builderForValue) { if (blurbsBuilder_ == null) { ensureBlurbsIsMutable(); blurbs_.add(builderForValue.build()); @@ -716,14 +775,15 @@ public Builder addBlurbs( return this; } /** + * + * *
      * The list of blurbs.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public Builder addBlurbs( - int index, com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + public Builder addBlurbs(int index, com.google.showcase.v1beta1.Blurb.Builder builderForValue) { if (blurbsBuilder_ == null) { ensureBlurbsIsMutable(); blurbs_.add(index, builderForValue.build()); @@ -734,6 +794,8 @@ public Builder addBlurbs( return this; } /** + * + * *
      * The list of blurbs.
      * 
@@ -744,8 +806,7 @@ public Builder addAllBlurbs( java.lang.Iterable values) { if (blurbsBuilder_ == null) { ensureBlurbsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blurbs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blurbs_); onChanged(); } else { blurbsBuilder_.addAllMessages(values); @@ -753,6 +814,8 @@ public Builder addAllBlurbs( return this; } /** + * + * *
      * The list of blurbs.
      * 
@@ -770,6 +833,8 @@ public Builder clearBlurbs() { return this; } /** + * + * *
      * The list of blurbs.
      * 
@@ -787,39 +852,44 @@ public Builder removeBlurbs(int index) { return this; } /** + * + * *
      * The list of blurbs.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public com.google.showcase.v1beta1.Blurb.Builder getBlurbsBuilder( - int index) { + public com.google.showcase.v1beta1.Blurb.Builder getBlurbsBuilder(int index) { return getBlurbsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of blurbs.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder( - int index) { + public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder(int index) { if (blurbsBuilder_ == null) { - return blurbs_.get(index); } else { + return blurbs_.get(index); + } else { return blurbsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of blurbs.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public java.util.List - getBlurbsOrBuilderList() { + public java.util.List + getBlurbsOrBuilderList() { if (blurbsBuilder_ != null) { return blurbsBuilder_.getMessageOrBuilderList(); } else { @@ -827,6 +897,8 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder( } } /** + * + * *
      * The list of blurbs.
      * 
@@ -834,42 +906,47 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder( * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ public com.google.showcase.v1beta1.Blurb.Builder addBlurbsBuilder() { - return getBlurbsFieldBuilder().addBuilder( - com.google.showcase.v1beta1.Blurb.getDefaultInstance()); + return getBlurbsFieldBuilder() + .addBuilder(com.google.showcase.v1beta1.Blurb.getDefaultInstance()); } /** + * + * *
      * The list of blurbs.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public com.google.showcase.v1beta1.Blurb.Builder addBlurbsBuilder( - int index) { - return getBlurbsFieldBuilder().addBuilder( - index, com.google.showcase.v1beta1.Blurb.getDefaultInstance()); + public com.google.showcase.v1beta1.Blurb.Builder addBlurbsBuilder(int index) { + return getBlurbsFieldBuilder() + .addBuilder(index, com.google.showcase.v1beta1.Blurb.getDefaultInstance()); } /** + * + * *
      * The list of blurbs.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public java.util.List - getBlurbsBuilderList() { + public java.util.List getBlurbsBuilderList() { return getBlurbsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> + com.google.showcase.v1beta1.Blurb, + com.google.showcase.v1beta1.Blurb.Builder, + com.google.showcase.v1beta1.BlurbOrBuilder> getBlurbsFieldBuilder() { if (blurbsBuilder_ == null) { - blurbsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder>( - blurbs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + blurbsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, + com.google.showcase.v1beta1.Blurb.Builder, + com.google.showcase.v1beta1.BlurbOrBuilder>( + blurbs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); blurbs_ = null; } return blurbsBuilder_; @@ -877,6 +954,8 @@ public com.google.showcase.v1beta1.Blurb.Builder addBlurbsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in ListBlurbsRequest.page_token field in the subsequent
@@ -885,13 +964,13 @@ public com.google.showcase.v1beta1.Blurb.Builder addBlurbsBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -900,6 +979,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in ListBlurbsRequest.page_token field in the subsequent
@@ -908,15 +989,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -924,6 +1004,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in ListBlurbsRequest.page_token field in the subsequent
@@ -932,18 +1014,22 @@ public java.lang.String getNextPageToken() {
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in ListBlurbsRequest.page_token field in the subsequent
@@ -952,6 +1038,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -961,6 +1048,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in ListBlurbsRequest.page_token field in the subsequent
@@ -969,21 +1058,23 @@ public Builder clearNextPageToken() {
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -993,12 +1084,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ListBlurbsResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListBlurbsResponse) private static final com.google.showcase.v1beta1.ListBlurbsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListBlurbsResponse(); } @@ -1007,27 +1098,27 @@ public static com.google.showcase.v1beta1.ListBlurbsResponse getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBlurbsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBlurbsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1042,6 +1133,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.ListBlurbsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponseOrBuilder.java similarity index 68% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponseOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponseOrBuilder.java index 03022402d2..fdf37a2974 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponseOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListBlurbsResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface ListBlurbsResponseOrBuilder extends +public interface ListBlurbsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListBlurbsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of blurbs.
    * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - java.util.List - getBlurbsList(); + java.util.List getBlurbsList(); /** + * + * *
    * The list of blurbs.
    * 
@@ -26,6 +45,8 @@ public interface ListBlurbsResponseOrBuilder extends */ com.google.showcase.v1beta1.Blurb getBlurbs(int index); /** + * + * *
    * The list of blurbs.
    * 
@@ -34,25 +55,29 @@ public interface ListBlurbsResponseOrBuilder extends */ int getBlurbsCount(); /** + * + * *
    * The list of blurbs.
    * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - java.util.List - getBlurbsOrBuilderList(); + java.util.List getBlurbsOrBuilderList(); /** + * + * *
    * The list of blurbs.
    * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder( - int index); + com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results.
    * Pass this value in ListBlurbsRequest.page_token field in the subsequent
@@ -61,10 +86,13 @@ com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results.
    * Pass this value in ListBlurbsRequest.page_token field in the subsequent
@@ -73,8 +101,8 @@ com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequest.java similarity index 68% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequest.java index ba9caad97f..b7d47acd77 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request message for the google.showcase.v1beta1.Messaging\ListRooms
  * method.
@@ -12,48 +29,53 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.ListRoomsRequest}
  */
-public final class ListRoomsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListRoomsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListRoomsRequest)
     ListRoomsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListRoomsRequest.newBuilder() to construct.
   private ListRoomsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListRoomsRequest() {
     pageToken_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListRoomsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_ListRoomsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.ListRoomsRequest.class, com.google.showcase.v1beta1.ListRoomsRequest.Builder.class);
+            com.google.showcase.v1beta1.ListRoomsRequest.class,
+            com.google.showcase.v1beta1.ListRoomsRequest.Builder.class);
   }
 
   public static final int PAGE_SIZE_FIELD_NUMBER = 1;
   private int pageSize_ = 0;
   /**
+   *
+   *
    * 
    * The maximum number of rooms return. Server may return fewer rooms
    * than requested. If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 1; + * * @return The pageSize. */ @java.lang.Override @@ -62,9 +84,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token
    * returned from the previous call to
@@ -72,6 +97,7 @@ public int getPageSize() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -80,14 +106,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token
    * returned from the previous call to
@@ -95,16 +122,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -113,6 +139,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -124,8 +151,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(1, pageSize_); } @@ -142,8 +168,7 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); @@ -156,17 +181,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.ListRoomsRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.ListRoomsRequest other = (com.google.showcase.v1beta1.ListRoomsRequest) obj; + com.google.showcase.v1beta1.ListRoomsRequest other = + (com.google.showcase.v1beta1.ListRoomsRequest) obj; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,99 +211,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.ListRoomsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.ListRoomsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.ListRoomsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListRoomsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.ListRoomsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for the google.showcase.v1beta1.Messaging\ListRooms
    * method.
@@ -287,33 +316,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.ListRoomsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListRoomsRequest)
       com.google.showcase.v1beta1.ListRoomsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_ListRoomsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.ListRoomsRequest.class, com.google.showcase.v1beta1.ListRoomsRequest.Builder.class);
+              com.google.showcase.v1beta1.ListRoomsRequest.class,
+              com.google.showcase.v1beta1.ListRoomsRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.ListRoomsRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -324,9 +352,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -345,8 +373,11 @@ public com.google.showcase.v1beta1.ListRoomsRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.ListRoomsRequest buildPartial() {
-      com.google.showcase.v1beta1.ListRoomsRequest result = new com.google.showcase.v1beta1.ListRoomsRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.ListRoomsRequest result =
+          new com.google.showcase.v1beta1.ListRoomsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -365,38 +396,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ListRoomsRequest result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.ListRoomsRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.ListRoomsRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.ListRoomsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -439,22 +471,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -464,16 +499,20 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private int pageSize_ ;
+    private int pageSize_;
     /**
+     *
+     *
      * 
      * The maximum number of rooms return. Server may return fewer rooms
      * than requested. If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 1; + * * @return The pageSize. */ @java.lang.Override @@ -481,12 +520,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of rooms return. Server may return fewer rooms
      * than requested. If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 1; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -498,12 +540,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of rooms return. Server may return fewer rooms
      * than requested. If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 1; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -515,6 +560,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token
      * returned from the previous call to
@@ -522,13 +569,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -537,6 +584,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token
      * returned from the previous call to
@@ -544,15 +593,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -560,6 +608,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token
      * returned from the previous call to
@@ -567,18 +617,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token
      * returned from the previous call to
@@ -586,6 +640,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -595,6 +650,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token
      * returned from the previous call to
@@ -602,21 +659,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -626,12 +685,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ListRoomsRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListRoomsRequest) private static final com.google.showcase.v1beta1.ListRoomsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListRoomsRequest(); } @@ -640,27 +699,27 @@ public static com.google.showcase.v1beta1.ListRoomsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRoomsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRoomsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -675,6 +734,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.ListRoomsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequestOrBuilder.java similarity index 62% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequestOrBuilder.java index cb947536af..944a167c93 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsRequestOrBuilder.java @@ -1,25 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface ListRoomsRequestOrBuilder extends +public interface ListRoomsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListRoomsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The maximum number of rooms return. Server may return fewer rooms
    * than requested. If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 1; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token
    * returned from the previous call to
@@ -27,10 +48,13 @@ public interface ListRoomsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token
    * returned from the previous call to
@@ -38,8 +62,8 @@ public interface ListRoomsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponse.java similarity index 72% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponse.java index 06a178518c..413eae9949 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The response message for the google.showcase.v1beta1.Messaging\ListRooms
  * method.
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.ListRoomsResponse}
  */
-public final class ListRoomsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListRoomsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListRoomsResponse)
     ListRoomsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListRoomsResponse.newBuilder() to construct.
   private ListRoomsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListRoomsResponse() {
     rooms_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -28,28 +46,32 @@ private ListRoomsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListRoomsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsResponse_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_ListRoomsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.ListRoomsResponse.class, com.google.showcase.v1beta1.ListRoomsResponse.Builder.class);
+            com.google.showcase.v1beta1.ListRoomsResponse.class,
+            com.google.showcase.v1beta1.ListRoomsResponse.Builder.class);
   }
 
   public static final int ROOMS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List rooms_;
   /**
+   *
+   *
    * 
    * The list of rooms.
    * 
@@ -61,6 +83,8 @@ public java.util.List getRoomsList() { return rooms_; } /** + * + * *
    * The list of rooms.
    * 
@@ -68,11 +92,13 @@ public java.util.List getRoomsList() { * repeated .google.showcase.v1beta1.Room rooms = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRoomsOrBuilderList() { return rooms_; } /** + * + * *
    * The list of rooms.
    * 
@@ -84,6 +110,8 @@ public int getRoomsCount() { return rooms_.size(); } /** + * + * *
    * The list of rooms.
    * 
@@ -95,6 +123,8 @@ public com.google.showcase.v1beta1.Room getRooms(int index) { return rooms_.get(index); } /** + * + * *
    * The list of rooms.
    * 
@@ -102,15 +132,17 @@ public com.google.showcase.v1beta1.Room getRooms(int index) { * repeated .google.showcase.v1beta1.Room rooms = 1; */ @java.lang.Override - public com.google.showcase.v1beta1.RoomOrBuilder getRoomsOrBuilder( - int index) { + public com.google.showcase.v1beta1.RoomOrBuilder getRoomsOrBuilder(int index) { return rooms_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token to retrieve next page of results.
    * Pass this value in ListRoomsRequest.page_token field in the subsequent
@@ -119,6 +151,7 @@ public com.google.showcase.v1beta1.RoomOrBuilder getRoomsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,14 +160,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve next page of results.
    * Pass this value in ListRoomsRequest.page_token field in the subsequent
@@ -143,16 +177,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -161,6 +194,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +206,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < rooms_.size(); i++) { output.writeMessage(1, rooms_.get(i)); } @@ -190,8 +223,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < rooms_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rooms_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rooms_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -204,17 +236,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.ListRoomsResponse)) { return super.equals(obj); } - com.google.showcase.v1beta1.ListRoomsResponse other = (com.google.showcase.v1beta1.ListRoomsResponse) obj; + com.google.showcase.v1beta1.ListRoomsResponse other = + (com.google.showcase.v1beta1.ListRoomsResponse) obj; - if (!getRoomsList() - .equals(other.getRoomsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getRoomsList().equals(other.getRoomsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,99 +268,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.ListRoomsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.ListRoomsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.ListRoomsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListRoomsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.ListRoomsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response message for the google.showcase.v1beta1.Messaging\ListRooms
    * method.
@@ -337,33 +373,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.ListRoomsResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListRoomsResponse)
       com.google.showcase.v1beta1.ListRoomsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsResponse_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_ListRoomsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.ListRoomsResponse.class, com.google.showcase.v1beta1.ListRoomsResponse.Builder.class);
+              com.google.showcase.v1beta1.ListRoomsResponse.class,
+              com.google.showcase.v1beta1.ListRoomsResponse.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.ListRoomsResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -380,9 +415,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -401,9 +436,12 @@ public com.google.showcase.v1beta1.ListRoomsResponse build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.ListRoomsResponse buildPartial() {
-      com.google.showcase.v1beta1.ListRoomsResponse result = new com.google.showcase.v1beta1.ListRoomsResponse(this);
+      com.google.showcase.v1beta1.ListRoomsResponse result =
+          new com.google.showcase.v1beta1.ListRoomsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -431,38 +469,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ListRoomsResponse result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.ListRoomsResponse) {
-        return mergeFrom((com.google.showcase.v1beta1.ListRoomsResponse)other);
+        return mergeFrom((com.google.showcase.v1beta1.ListRoomsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -489,9 +528,10 @@ public Builder mergeFrom(com.google.showcase.v1beta1.ListRoomsResponse other) {
             roomsBuilder_ = null;
             rooms_ = other.rooms_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            roomsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRoomsFieldBuilder() : null;
+            roomsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRoomsFieldBuilder()
+                    : null;
           } else {
             roomsBuilder_.addAllMessages(other.rooms_);
           }
@@ -528,30 +568,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.showcase.v1beta1.Room m =
-                  input.readMessage(
-                      com.google.showcase.v1beta1.Room.parser(),
-                      extensionRegistry);
-              if (roomsBuilder_ == null) {
-                ensureRoomsIsMutable();
-                rooms_.add(m);
-              } else {
-                roomsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.showcase.v1beta1.Room m =
+                    input.readMessage(com.google.showcase.v1beta1.Room.parser(), extensionRegistry);
+                if (roomsBuilder_ == null) {
+                  ensureRoomsIsMutable();
+                  rooms_.add(m);
+                } else {
+                  roomsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -561,21 +602,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List rooms_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureRoomsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         rooms_ = new java.util.ArrayList(rooms_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.showcase.v1beta1.Room, com.google.showcase.v1beta1.Room.Builder, com.google.showcase.v1beta1.RoomOrBuilder> roomsBuilder_;
+            com.google.showcase.v1beta1.Room,
+            com.google.showcase.v1beta1.Room.Builder,
+            com.google.showcase.v1beta1.RoomOrBuilder>
+        roomsBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of rooms.
      * 
@@ -590,6 +638,8 @@ public java.util.List getRoomsList() { } } /** + * + * *
      * The list of rooms.
      * 
@@ -604,6 +654,8 @@ public int getRoomsCount() { } } /** + * + * *
      * The list of rooms.
      * 
@@ -618,14 +670,15 @@ public com.google.showcase.v1beta1.Room getRooms(int index) { } } /** + * + * *
      * The list of rooms.
      * 
* * repeated .google.showcase.v1beta1.Room rooms = 1; */ - public Builder setRooms( - int index, com.google.showcase.v1beta1.Room value) { + public Builder setRooms(int index, com.google.showcase.v1beta1.Room value) { if (roomsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -639,14 +692,15 @@ public Builder setRooms( return this; } /** + * + * *
      * The list of rooms.
      * 
* * repeated .google.showcase.v1beta1.Room rooms = 1; */ - public Builder setRooms( - int index, com.google.showcase.v1beta1.Room.Builder builderForValue) { + public Builder setRooms(int index, com.google.showcase.v1beta1.Room.Builder builderForValue) { if (roomsBuilder_ == null) { ensureRoomsIsMutable(); rooms_.set(index, builderForValue.build()); @@ -657,6 +711,8 @@ public Builder setRooms( return this; } /** + * + * *
      * The list of rooms.
      * 
@@ -677,14 +733,15 @@ public Builder addRooms(com.google.showcase.v1beta1.Room value) { return this; } /** + * + * *
      * The list of rooms.
      * 
* * repeated .google.showcase.v1beta1.Room rooms = 1; */ - public Builder addRooms( - int index, com.google.showcase.v1beta1.Room value) { + public Builder addRooms(int index, com.google.showcase.v1beta1.Room value) { if (roomsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -698,14 +755,15 @@ public Builder addRooms( return this; } /** + * + * *
      * The list of rooms.
      * 
* * repeated .google.showcase.v1beta1.Room rooms = 1; */ - public Builder addRooms( - com.google.showcase.v1beta1.Room.Builder builderForValue) { + public Builder addRooms(com.google.showcase.v1beta1.Room.Builder builderForValue) { if (roomsBuilder_ == null) { ensureRoomsIsMutable(); rooms_.add(builderForValue.build()); @@ -716,14 +774,15 @@ public Builder addRooms( return this; } /** + * + * *
      * The list of rooms.
      * 
* * repeated .google.showcase.v1beta1.Room rooms = 1; */ - public Builder addRooms( - int index, com.google.showcase.v1beta1.Room.Builder builderForValue) { + public Builder addRooms(int index, com.google.showcase.v1beta1.Room.Builder builderForValue) { if (roomsBuilder_ == null) { ensureRoomsIsMutable(); rooms_.add(index, builderForValue.build()); @@ -734,6 +793,8 @@ public Builder addRooms( return this; } /** + * + * *
      * The list of rooms.
      * 
@@ -744,8 +805,7 @@ public Builder addAllRooms( java.lang.Iterable values) { if (roomsBuilder_ == null) { ensureRoomsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rooms_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rooms_); onChanged(); } else { roomsBuilder_.addAllMessages(values); @@ -753,6 +813,8 @@ public Builder addAllRooms( return this; } /** + * + * *
      * The list of rooms.
      * 
@@ -770,6 +832,8 @@ public Builder clearRooms() { return this; } /** + * + * *
      * The list of rooms.
      * 
@@ -787,39 +851,44 @@ public Builder removeRooms(int index) { return this; } /** + * + * *
      * The list of rooms.
      * 
* * repeated .google.showcase.v1beta1.Room rooms = 1; */ - public com.google.showcase.v1beta1.Room.Builder getRoomsBuilder( - int index) { + public com.google.showcase.v1beta1.Room.Builder getRoomsBuilder(int index) { return getRoomsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of rooms.
      * 
* * repeated .google.showcase.v1beta1.Room rooms = 1; */ - public com.google.showcase.v1beta1.RoomOrBuilder getRoomsOrBuilder( - int index) { + public com.google.showcase.v1beta1.RoomOrBuilder getRoomsOrBuilder(int index) { if (roomsBuilder_ == null) { - return rooms_.get(index); } else { + return rooms_.get(index); + } else { return roomsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of rooms.
      * 
* * repeated .google.showcase.v1beta1.Room rooms = 1; */ - public java.util.List - getRoomsOrBuilderList() { + public java.util.List + getRoomsOrBuilderList() { if (roomsBuilder_ != null) { return roomsBuilder_.getMessageOrBuilderList(); } else { @@ -827,6 +896,8 @@ public com.google.showcase.v1beta1.RoomOrBuilder getRoomsOrBuilder( } } /** + * + * *
      * The list of rooms.
      * 
@@ -834,42 +905,47 @@ public com.google.showcase.v1beta1.RoomOrBuilder getRoomsOrBuilder( * repeated .google.showcase.v1beta1.Room rooms = 1; */ public com.google.showcase.v1beta1.Room.Builder addRoomsBuilder() { - return getRoomsFieldBuilder().addBuilder( - com.google.showcase.v1beta1.Room.getDefaultInstance()); + return getRoomsFieldBuilder() + .addBuilder(com.google.showcase.v1beta1.Room.getDefaultInstance()); } /** + * + * *
      * The list of rooms.
      * 
* * repeated .google.showcase.v1beta1.Room rooms = 1; */ - public com.google.showcase.v1beta1.Room.Builder addRoomsBuilder( - int index) { - return getRoomsFieldBuilder().addBuilder( - index, com.google.showcase.v1beta1.Room.getDefaultInstance()); + public com.google.showcase.v1beta1.Room.Builder addRoomsBuilder(int index) { + return getRoomsFieldBuilder() + .addBuilder(index, com.google.showcase.v1beta1.Room.getDefaultInstance()); } /** + * + * *
      * The list of rooms.
      * 
* * repeated .google.showcase.v1beta1.Room rooms = 1; */ - public java.util.List - getRoomsBuilderList() { + public java.util.List getRoomsBuilderList() { return getRoomsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.Room, com.google.showcase.v1beta1.Room.Builder, com.google.showcase.v1beta1.RoomOrBuilder> + com.google.showcase.v1beta1.Room, + com.google.showcase.v1beta1.Room.Builder, + com.google.showcase.v1beta1.RoomOrBuilder> getRoomsFieldBuilder() { if (roomsBuilder_ == null) { - roomsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.Room, com.google.showcase.v1beta1.Room.Builder, com.google.showcase.v1beta1.RoomOrBuilder>( - rooms_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + roomsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Room, + com.google.showcase.v1beta1.Room.Builder, + com.google.showcase.v1beta1.RoomOrBuilder>( + rooms_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); rooms_ = null; } return roomsBuilder_; @@ -877,6 +953,8 @@ public com.google.showcase.v1beta1.Room.Builder addRoomsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in ListRoomsRequest.page_token field in the subsequent
@@ -885,13 +963,13 @@ public com.google.showcase.v1beta1.Room.Builder addRoomsBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -900,6 +978,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in ListRoomsRequest.page_token field in the subsequent
@@ -908,15 +988,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -924,6 +1003,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in ListRoomsRequest.page_token field in the subsequent
@@ -932,18 +1013,22 @@ public java.lang.String getNextPageToken() {
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in ListRoomsRequest.page_token field in the subsequent
@@ -952,6 +1037,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -961,6 +1047,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in ListRoomsRequest.page_token field in the subsequent
@@ -969,21 +1057,23 @@ public Builder clearNextPageToken() {
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -993,12 +1083,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ListRoomsResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListRoomsResponse) private static final com.google.showcase.v1beta1.ListRoomsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListRoomsResponse(); } @@ -1007,27 +1097,27 @@ public static com.google.showcase.v1beta1.ListRoomsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRoomsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRoomsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1042,6 +1132,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.ListRoomsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponseOrBuilder.java similarity index 66% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponseOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponseOrBuilder.java index 9783253911..13396bec53 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponseOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListRoomsResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface ListRoomsResponseOrBuilder extends +public interface ListRoomsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListRoomsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of rooms.
    * 
* * repeated .google.showcase.v1beta1.Room rooms = 1; */ - java.util.List - getRoomsList(); + java.util.List getRoomsList(); /** + * + * *
    * The list of rooms.
    * 
@@ -26,6 +45,8 @@ public interface ListRoomsResponseOrBuilder extends */ com.google.showcase.v1beta1.Room getRooms(int index); /** + * + * *
    * The list of rooms.
    * 
@@ -34,25 +55,29 @@ public interface ListRoomsResponseOrBuilder extends */ int getRoomsCount(); /** + * + * *
    * The list of rooms.
    * 
* * repeated .google.showcase.v1beta1.Room rooms = 1; */ - java.util.List - getRoomsOrBuilderList(); + java.util.List getRoomsOrBuilderList(); /** + * + * *
    * The list of rooms.
    * 
* * repeated .google.showcase.v1beta1.Room rooms = 1; */ - com.google.showcase.v1beta1.RoomOrBuilder getRoomsOrBuilder( - int index); + com.google.showcase.v1beta1.RoomOrBuilder getRoomsOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results.
    * Pass this value in ListRoomsRequest.page_token field in the subsequent
@@ -61,10 +86,13 @@ com.google.showcase.v1beta1.RoomOrBuilder getRoomsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results.
    * Pass this value in ListRoomsRequest.page_token field in the subsequent
@@ -73,8 +101,8 @@ com.google.showcase.v1beta1.RoomOrBuilder getRoomsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequest.java similarity index 67% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequest.java index d51bd081e8..fe5bfaf6f4 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto @@ -5,53 +20,60 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request for the ListSessions method.
  * 
* * Protobuf type {@code google.showcase.v1beta1.ListSessionsRequest} */ -public final class ListSessionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSessionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListSessionsRequest) ListSessionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSessionsRequest.newBuilder() to construct. private ListSessionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSessionsRequest() { pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSessionsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListSessionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsRequest_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListSessionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ListSessionsRequest.class, com.google.showcase.v1beta1.ListSessionsRequest.Builder.class); + com.google.showcase.v1beta1.ListSessionsRequest.class, + com.google.showcase.v1beta1.ListSessionsRequest.Builder.class); } public static final int PAGE_SIZE_FIELD_NUMBER = 1; private int pageSize_ = 0; /** + * + * *
    * The maximum number of sessions to return per page.
    * 
* * int32 page_size = 1; + * * @return The pageSize. */ @java.lang.Override @@ -60,14 +82,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The page token, for retrieving subsequent pages.
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -76,29 +102,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The page token, for retrieving subsequent pages.
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -107,6 +133,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -118,8 +145,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(1, pageSize_); } @@ -136,8 +162,7 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); @@ -150,17 +175,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.ListSessionsRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.ListSessionsRequest other = (com.google.showcase.v1beta1.ListSessionsRequest) obj; + com.google.showcase.v1beta1.ListSessionsRequest other = + (com.google.showcase.v1beta1.ListSessionsRequest) obj; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -181,132 +205,136 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.ListSessionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.ListSessionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.ListSessionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListSessionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.ListSessionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for the ListSessions method.
    * 
* * Protobuf type {@code google.showcase.v1beta1.ListSessionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListSessionsRequest) com.google.showcase.v1beta1.ListSessionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListSessionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsRequest_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListSessionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ListSessionsRequest.class, com.google.showcase.v1beta1.ListSessionsRequest.Builder.class); + com.google.showcase.v1beta1.ListSessionsRequest.class, + com.google.showcase.v1beta1.ListSessionsRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.ListSessionsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -317,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListSessionsRequest_descriptor; } @java.lang.Override @@ -338,8 +366,11 @@ public com.google.showcase.v1beta1.ListSessionsRequest build() { @java.lang.Override public com.google.showcase.v1beta1.ListSessionsRequest buildPartial() { - com.google.showcase.v1beta1.ListSessionsRequest result = new com.google.showcase.v1beta1.ListSessionsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.ListSessionsRequest result = + new com.google.showcase.v1beta1.ListSessionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -358,38 +389,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ListSessionsRequest resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ListSessionsRequest) { - return mergeFrom((com.google.showcase.v1beta1.ListSessionsRequest)other); + return mergeFrom((com.google.showcase.v1beta1.ListSessionsRequest) other); } else { super.mergeFrom(other); return this; @@ -397,7 +429,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.ListSessionsRequest other) { - if (other == com.google.showcase.v1beta1.ListSessionsRequest.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.ListSessionsRequest.getDefaultInstance()) + return this; if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } @@ -432,22 +465,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -457,15 +493,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of sessions to return per page.
      * 
* * int32 page_size = 1; + * * @return The pageSize. */ @java.lang.Override @@ -473,11 +513,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of sessions to return per page.
      * 
* * int32 page_size = 1; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -489,11 +532,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of sessions to return per page.
      * 
* * int32 page_size = 1; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -505,18 +551,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The page token, for retrieving subsequent pages.
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -525,20 +573,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token, for retrieving subsequent pages.
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -546,28 +595,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token, for retrieving subsequent pages.
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The page token, for retrieving subsequent pages.
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -577,26 +633,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The page token, for retrieving subsequent pages.
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -606,12 +666,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ListSessionsRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListSessionsRequest) private static final com.google.showcase.v1beta1.ListSessionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListSessionsRequest(); } @@ -620,27 +680,27 @@ public static com.google.showcase.v1beta1.ListSessionsRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSessionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSessionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -655,6 +715,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.ListSessionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequestOrBuilder.java similarity index 54% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequestOrBuilder.java index be23e2a934..f7cdcc62a6 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsRequestOrBuilder.java @@ -1,40 +1,64 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface ListSessionsRequestOrBuilder extends +public interface ListSessionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListSessionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The maximum number of sessions to return per page.
    * 
* * int32 page_size = 1; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The page token, for retrieving subsequent pages.
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The page token, for retrieving subsequent pages.
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponse.java similarity index 71% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponse.java index 1548d50a27..06c116680f 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto @@ -5,21 +20,24 @@ package com.google.showcase.v1beta1; /** + * + * *
  * Response for the ListSessions method.
  * 
* * Protobuf type {@code google.showcase.v1beta1.ListSessionsResponse} */ -public final class ListSessionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSessionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListSessionsResponse) ListSessionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSessionsResponse.newBuilder() to construct. private ListSessionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSessionsResponse() { sessions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +45,32 @@ private ListSessionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSessionsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListSessionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsResponse_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListSessionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ListSessionsResponse.class, com.google.showcase.v1beta1.ListSessionsResponse.Builder.class); + com.google.showcase.v1beta1.ListSessionsResponse.class, + com.google.showcase.v1beta1.ListSessionsResponse.Builder.class); } public static final int SESSIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List sessions_; /** + * + * *
    * The sessions being returned.
    * 
@@ -60,6 +82,8 @@ public java.util.List getSessionsList() { return sessions_; } /** + * + * *
    * The sessions being returned.
    * 
@@ -67,11 +91,13 @@ public java.util.List getSessionsList() { * repeated .google.showcase.v1beta1.Session sessions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSessionsOrBuilderList() { return sessions_; } /** + * + * *
    * The sessions being returned.
    * 
@@ -83,6 +109,8 @@ public int getSessionsCount() { return sessions_.size(); } /** + * + * *
    * The sessions being returned.
    * 
@@ -94,6 +122,8 @@ public com.google.showcase.v1beta1.Session getSessions(int index) { return sessions_.get(index); } /** + * + * *
    * The sessions being returned.
    * 
@@ -101,21 +131,24 @@ public com.google.showcase.v1beta1.Session getSessions(int index) { * repeated .google.showcase.v1beta1.Session sessions = 1; */ @java.lang.Override - public com.google.showcase.v1beta1.SessionOrBuilder getSessionsOrBuilder( - int index) { + public com.google.showcase.v1beta1.SessionOrBuilder getSessionsOrBuilder(int index) { return sessions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * The next page token, if any.
    * An empty value here means the last page has been reached.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,30 +157,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next page token, if any.
    * An empty value here means the last page has been reached.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -156,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < sessions_.size(); i++) { output.writeMessage(1, sessions_.get(i)); } @@ -185,8 +218,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < sessions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, sessions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sessions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -199,17 +231,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.ListSessionsResponse)) { return super.equals(obj); } - com.google.showcase.v1beta1.ListSessionsResponse other = (com.google.showcase.v1beta1.ListSessionsResponse) obj; + com.google.showcase.v1beta1.ListSessionsResponse other = + (com.google.showcase.v1beta1.ListSessionsResponse) obj; - if (!getSessionsList() - .equals(other.getSessionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSessionsList().equals(other.getSessionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,132 +263,136 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.ListSessionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.ListSessionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.ListSessionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListSessionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.ListSessionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the ListSessions method.
    * 
* * Protobuf type {@code google.showcase.v1beta1.ListSessionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListSessionsResponse) com.google.showcase.v1beta1.ListSessionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListSessionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsResponse_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListSessionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ListSessionsResponse.class, com.google.showcase.v1beta1.ListSessionsResponse.Builder.class); + com.google.showcase.v1beta1.ListSessionsResponse.class, + com.google.showcase.v1beta1.ListSessionsResponse.Builder.class); } // Construct using com.google.showcase.v1beta1.ListSessionsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListSessionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListSessionsResponse_descriptor; } @java.lang.Override @@ -395,14 +430,18 @@ public com.google.showcase.v1beta1.ListSessionsResponse build() { @java.lang.Override public com.google.showcase.v1beta1.ListSessionsResponse buildPartial() { - com.google.showcase.v1beta1.ListSessionsResponse result = new com.google.showcase.v1beta1.ListSessionsResponse(this); + com.google.showcase.v1beta1.ListSessionsResponse result = + new com.google.showcase.v1beta1.ListSessionsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.showcase.v1beta1.ListSessionsResponse result) { + private void buildPartialRepeatedFields( + com.google.showcase.v1beta1.ListSessionsResponse result) { if (sessionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { sessions_ = java.util.Collections.unmodifiableList(sessions_); @@ -425,38 +464,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ListSessionsResponse resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ListSessionsResponse) { - return mergeFrom((com.google.showcase.v1beta1.ListSessionsResponse)other); + return mergeFrom((com.google.showcase.v1beta1.ListSessionsResponse) other); } else { super.mergeFrom(other); return this; @@ -464,7 +504,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.ListSessionsResponse other) { - if (other == com.google.showcase.v1beta1.ListSessionsResponse.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.ListSessionsResponse.getDefaultInstance()) + return this; if (sessionsBuilder_ == null) { if (!other.sessions_.isEmpty()) { if (sessions_.isEmpty()) { @@ -483,9 +524,10 @@ public Builder mergeFrom(com.google.showcase.v1beta1.ListSessionsResponse other) sessionsBuilder_ = null; sessions_ = other.sessions_; bitField0_ = (bitField0_ & ~0x00000001); - sessionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSessionsFieldBuilder() : null; + sessionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSessionsFieldBuilder() + : null; } else { sessionsBuilder_.addAllMessages(other.sessions_); } @@ -522,30 +564,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.showcase.v1beta1.Session m = - input.readMessage( - com.google.showcase.v1beta1.Session.parser(), - extensionRegistry); - if (sessionsBuilder_ == null) { - ensureSessionsIsMutable(); - sessions_.add(m); - } else { - sessionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.showcase.v1beta1.Session m = + input.readMessage( + com.google.showcase.v1beta1.Session.parser(), extensionRegistry); + if (sessionsBuilder_ == null) { + ensureSessionsIsMutable(); + sessions_.add(m); + } else { + sessionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,21 +599,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List sessions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSessionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { sessions_ = new java.util.ArrayList(sessions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.Session, com.google.showcase.v1beta1.Session.Builder, com.google.showcase.v1beta1.SessionOrBuilder> sessionsBuilder_; + com.google.showcase.v1beta1.Session, + com.google.showcase.v1beta1.Session.Builder, + com.google.showcase.v1beta1.SessionOrBuilder> + sessionsBuilder_; /** + * + * *
      * The sessions being returned.
      * 
@@ -584,6 +635,8 @@ public java.util.List getSessionsList() { } } /** + * + * *
      * The sessions being returned.
      * 
@@ -598,6 +651,8 @@ public int getSessionsCount() { } } /** + * + * *
      * The sessions being returned.
      * 
@@ -612,14 +667,15 @@ public com.google.showcase.v1beta1.Session getSessions(int index) { } } /** + * + * *
      * The sessions being returned.
      * 
* * repeated .google.showcase.v1beta1.Session sessions = 1; */ - public Builder setSessions( - int index, com.google.showcase.v1beta1.Session value) { + public Builder setSessions(int index, com.google.showcase.v1beta1.Session value) { if (sessionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -633,6 +689,8 @@ public Builder setSessions( return this; } /** + * + * *
      * The sessions being returned.
      * 
@@ -651,6 +709,8 @@ public Builder setSessions( return this; } /** + * + * *
      * The sessions being returned.
      * 
@@ -671,14 +731,15 @@ public Builder addSessions(com.google.showcase.v1beta1.Session value) { return this; } /** + * + * *
      * The sessions being returned.
      * 
* * repeated .google.showcase.v1beta1.Session sessions = 1; */ - public Builder addSessions( - int index, com.google.showcase.v1beta1.Session value) { + public Builder addSessions(int index, com.google.showcase.v1beta1.Session value) { if (sessionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -692,14 +753,15 @@ public Builder addSessions( return this; } /** + * + * *
      * The sessions being returned.
      * 
* * repeated .google.showcase.v1beta1.Session sessions = 1; */ - public Builder addSessions( - com.google.showcase.v1beta1.Session.Builder builderForValue) { + public Builder addSessions(com.google.showcase.v1beta1.Session.Builder builderForValue) { if (sessionsBuilder_ == null) { ensureSessionsIsMutable(); sessions_.add(builderForValue.build()); @@ -710,6 +772,8 @@ public Builder addSessions( return this; } /** + * + * *
      * The sessions being returned.
      * 
@@ -728,6 +792,8 @@ public Builder addSessions( return this; } /** + * + * *
      * The sessions being returned.
      * 
@@ -738,8 +804,7 @@ public Builder addAllSessions( java.lang.Iterable values) { if (sessionsBuilder_ == null) { ensureSessionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sessions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sessions_); onChanged(); } else { sessionsBuilder_.addAllMessages(values); @@ -747,6 +812,8 @@ public Builder addAllSessions( return this; } /** + * + * *
      * The sessions being returned.
      * 
@@ -764,6 +831,8 @@ public Builder clearSessions() { return this; } /** + * + * *
      * The sessions being returned.
      * 
@@ -781,39 +850,44 @@ public Builder removeSessions(int index) { return this; } /** + * + * *
      * The sessions being returned.
      * 
* * repeated .google.showcase.v1beta1.Session sessions = 1; */ - public com.google.showcase.v1beta1.Session.Builder getSessionsBuilder( - int index) { + public com.google.showcase.v1beta1.Session.Builder getSessionsBuilder(int index) { return getSessionsFieldBuilder().getBuilder(index); } /** + * + * *
      * The sessions being returned.
      * 
* * repeated .google.showcase.v1beta1.Session sessions = 1; */ - public com.google.showcase.v1beta1.SessionOrBuilder getSessionsOrBuilder( - int index) { + public com.google.showcase.v1beta1.SessionOrBuilder getSessionsOrBuilder(int index) { if (sessionsBuilder_ == null) { - return sessions_.get(index); } else { + return sessions_.get(index); + } else { return sessionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The sessions being returned.
      * 
* * repeated .google.showcase.v1beta1.Session sessions = 1; */ - public java.util.List - getSessionsOrBuilderList() { + public java.util.List + getSessionsOrBuilderList() { if (sessionsBuilder_ != null) { return sessionsBuilder_.getMessageOrBuilderList(); } else { @@ -821,6 +895,8 @@ public com.google.showcase.v1beta1.SessionOrBuilder getSessionsOrBuilder( } } /** + * + * *
      * The sessions being returned.
      * 
@@ -828,42 +904,47 @@ public com.google.showcase.v1beta1.SessionOrBuilder getSessionsOrBuilder( * repeated .google.showcase.v1beta1.Session sessions = 1; */ public com.google.showcase.v1beta1.Session.Builder addSessionsBuilder() { - return getSessionsFieldBuilder().addBuilder( - com.google.showcase.v1beta1.Session.getDefaultInstance()); + return getSessionsFieldBuilder() + .addBuilder(com.google.showcase.v1beta1.Session.getDefaultInstance()); } /** + * + * *
      * The sessions being returned.
      * 
* * repeated .google.showcase.v1beta1.Session sessions = 1; */ - public com.google.showcase.v1beta1.Session.Builder addSessionsBuilder( - int index) { - return getSessionsFieldBuilder().addBuilder( - index, com.google.showcase.v1beta1.Session.getDefaultInstance()); + public com.google.showcase.v1beta1.Session.Builder addSessionsBuilder(int index) { + return getSessionsFieldBuilder() + .addBuilder(index, com.google.showcase.v1beta1.Session.getDefaultInstance()); } /** + * + * *
      * The sessions being returned.
      * 
* * repeated .google.showcase.v1beta1.Session sessions = 1; */ - public java.util.List - getSessionsBuilderList() { + public java.util.List getSessionsBuilderList() { return getSessionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.Session, com.google.showcase.v1beta1.Session.Builder, com.google.showcase.v1beta1.SessionOrBuilder> + com.google.showcase.v1beta1.Session, + com.google.showcase.v1beta1.Session.Builder, + com.google.showcase.v1beta1.SessionOrBuilder> getSessionsFieldBuilder() { if (sessionsBuilder_ == null) { - sessionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.Session, com.google.showcase.v1beta1.Session.Builder, com.google.showcase.v1beta1.SessionOrBuilder>( - sessions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + sessionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Session, + com.google.showcase.v1beta1.Session.Builder, + com.google.showcase.v1beta1.SessionOrBuilder>( + sessions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); sessions_ = null; } return sessionsBuilder_; @@ -871,19 +952,21 @@ public com.google.showcase.v1beta1.Session.Builder addSessionsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next page token, if any.
      * An empty value here means the last page has been reached.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -892,21 +975,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token, if any.
      * An empty value here means the last page has been reached.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -914,30 +998,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token, if any.
      * An empty value here means the last page has been reached.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The next page token, if any.
      * An empty value here means the last page has been reached.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -947,27 +1038,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * The next page token, if any.
      * An empty value here means the last page has been reached.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -977,12 +1072,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ListSessionsResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListSessionsResponse) private static final com.google.showcase.v1beta1.ListSessionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListSessionsResponse(); } @@ -991,27 +1086,27 @@ public static com.google.showcase.v1beta1.ListSessionsResponse getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSessionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSessionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1026,6 +1121,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.ListSessionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponseOrBuilder.java similarity index 65% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponseOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponseOrBuilder.java index 531ebc2a40..723aa8f8d2 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponseOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListSessionsResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface ListSessionsResponseOrBuilder extends +public interface ListSessionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListSessionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The sessions being returned.
    * 
* * repeated .google.showcase.v1beta1.Session sessions = 1; */ - java.util.List - getSessionsList(); + java.util.List getSessionsList(); /** + * + * *
    * The sessions being returned.
    * 
@@ -26,6 +45,8 @@ public interface ListSessionsResponseOrBuilder extends */ com.google.showcase.v1beta1.Session getSessions(int index); /** + * + * *
    * The sessions being returned.
    * 
@@ -34,43 +55,50 @@ public interface ListSessionsResponseOrBuilder extends */ int getSessionsCount(); /** + * + * *
    * The sessions being returned.
    * 
* * repeated .google.showcase.v1beta1.Session sessions = 1; */ - java.util.List - getSessionsOrBuilderList(); + java.util.List getSessionsOrBuilderList(); /** + * + * *
    * The sessions being returned.
    * 
* * repeated .google.showcase.v1beta1.Session sessions = 1; */ - com.google.showcase.v1beta1.SessionOrBuilder getSessionsOrBuilder( - int index); + com.google.showcase.v1beta1.SessionOrBuilder getSessionsOrBuilder(int index); /** + * + * *
    * The next page token, if any.
    * An empty value here means the last page has been reached.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next page token, if any.
    * An empty value here means the last page has been reached.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequest.java similarity index 68% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequest.java index 17c3fe0179..ce6a8bd725 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto @@ -5,21 +20,24 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request for the ListTests method.
  * 
* * Protobuf type {@code google.showcase.v1beta1.ListTestsRequest} */ -public final class ListTestsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTestsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListTestsRequest) ListTestsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTestsRequest.newBuilder() to construct. private ListTestsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTestsRequest() { parent_ = ""; pageToken_ = ""; @@ -27,33 +45,38 @@ private ListTestsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTestsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListTestsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsRequest_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListTestsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ListTestsRequest.class, com.google.showcase.v1beta1.ListTestsRequest.Builder.class); + com.google.showcase.v1beta1.ListTestsRequest.class, + com.google.showcase.v1beta1.ListTestsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * The session.
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ @java.lang.Override @@ -62,29 +85,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * The session.
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -95,11 +118,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of tests to return per page.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -108,14 +134,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The page token, for retrieving subsequent pages.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -124,29 +154,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The page token, for retrieving subsequent pages.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -155,6 +185,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +197,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -190,8 +220,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -204,19 +233,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.ListTestsRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.ListTestsRequest other = (com.google.showcase.v1beta1.ListTestsRequest) obj; + com.google.showcase.v1beta1.ListTestsRequest other = + (com.google.showcase.v1beta1.ListTestsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -239,132 +266,136 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.ListTestsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.ListTestsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListTestsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListTestsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListTestsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListTestsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListTestsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListTestsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListTestsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.ListTestsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.ListTestsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.ListTestsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListTestsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListTestsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.ListTestsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for the ListTests method.
    * 
* * Protobuf type {@code google.showcase.v1beta1.ListTestsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListTestsRequest) com.google.showcase.v1beta1.ListTestsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListTestsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsRequest_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListTestsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ListTestsRequest.class, com.google.showcase.v1beta1.ListTestsRequest.Builder.class); + com.google.showcase.v1beta1.ListTestsRequest.class, + com.google.showcase.v1beta1.ListTestsRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.ListTestsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListTestsRequest_descriptor; } @java.lang.Override @@ -397,8 +428,11 @@ public com.google.showcase.v1beta1.ListTestsRequest build() { @java.lang.Override public com.google.showcase.v1beta1.ListTestsRequest buildPartial() { - com.google.showcase.v1beta1.ListTestsRequest result = new com.google.showcase.v1beta1.ListTestsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.ListTestsRequest result = + new com.google.showcase.v1beta1.ListTestsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -420,38 +454,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ListTestsRequest result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ListTestsRequest) { - return mergeFrom((com.google.showcase.v1beta1.ListTestsRequest)other); + return mergeFrom((com.google.showcase.v1beta1.ListTestsRequest) other); } else { super.mergeFrom(other); return this; @@ -499,27 +534,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -529,22 +568,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * The session.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -553,20 +595,21 @@ public java.lang.String getParent() { } } /** + * + * *
      * The session.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -574,28 +617,35 @@ public java.lang.String getParent() { } } /** + * + * *
      * The session.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The session.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearParent() { @@ -605,17 +655,21 @@ public Builder clearParent() { return this; } /** + * + * *
      * The session.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -623,13 +677,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of tests to return per page.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -637,11 +694,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of tests to return per page.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -653,11 +713,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of tests to return per page.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -669,18 +732,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The page token, for retrieving subsequent pages.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -689,20 +754,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token, for retrieving subsequent pages.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -710,28 +776,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token, for retrieving subsequent pages.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The page token, for retrieving subsequent pages.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -741,26 +814,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The page token, for retrieving subsequent pages.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -770,12 +847,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ListTestsRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListTestsRequest) private static final com.google.showcase.v1beta1.ListTestsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListTestsRequest(); } @@ -784,27 +861,27 @@ public static com.google.showcase.v1beta1.ListTestsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTestsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTestsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -819,6 +896,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.ListTestsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequestOrBuilder.java similarity index 60% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequestOrBuilder.java index 1442d10b8a..8f6ce1b579 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsRequestOrBuilder.java @@ -1,60 +1,89 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface ListTestsRequestOrBuilder extends +public interface ListTestsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListTestsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The session.
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * The session.
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of tests to return per page.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The page token, for retrieving subsequent pages.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The page token, for retrieving subsequent pages.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponse.java similarity index 71% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponse.java index 8cbf1b9115..aec00962fb 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto @@ -5,21 +20,24 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The response for the ListTests method.
  * 
* * Protobuf type {@code google.showcase.v1beta1.ListTestsResponse} */ -public final class ListTestsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTestsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListTestsResponse) ListTestsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTestsResponse.newBuilder() to construct. private ListTestsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTestsResponse() { tests_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +45,32 @@ private ListTestsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTestsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListTestsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsResponse_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListTestsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ListTestsResponse.class, com.google.showcase.v1beta1.ListTestsResponse.Builder.class); + com.google.showcase.v1beta1.ListTestsResponse.class, + com.google.showcase.v1beta1.ListTestsResponse.Builder.class); } public static final int TESTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List tests_; /** + * + * *
    * The tests being returned.
    * 
@@ -60,6 +82,8 @@ public java.util.List getTestsList() { return tests_; } /** + * + * *
    * The tests being returned.
    * 
@@ -67,11 +91,13 @@ public java.util.List getTestsList() { * repeated .google.showcase.v1beta1.Test tests = 1; */ @java.lang.Override - public java.util.List + public java.util.List getTestsOrBuilderList() { return tests_; } /** + * + * *
    * The tests being returned.
    * 
@@ -83,6 +109,8 @@ public int getTestsCount() { return tests_.size(); } /** + * + * *
    * The tests being returned.
    * 
@@ -94,6 +122,8 @@ public com.google.showcase.v1beta1.Test getTests(int index) { return tests_.get(index); } /** + * + * *
    * The tests being returned.
    * 
@@ -101,21 +131,24 @@ public com.google.showcase.v1beta1.Test getTests(int index) { * repeated .google.showcase.v1beta1.Test tests = 1; */ @java.lang.Override - public com.google.showcase.v1beta1.TestOrBuilder getTestsOrBuilder( - int index) { + public com.google.showcase.v1beta1.TestOrBuilder getTestsOrBuilder(int index) { return tests_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * The next page token, if any.
    * An empty value here means the last page has been reached.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,30 +157,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next page token, if any.
    * An empty value here means the last page has been reached.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -156,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < tests_.size(); i++) { output.writeMessage(1, tests_.get(i)); } @@ -185,8 +218,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < tests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, tests_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tests_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -199,17 +231,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.ListTestsResponse)) { return super.equals(obj); } - com.google.showcase.v1beta1.ListTestsResponse other = (com.google.showcase.v1beta1.ListTestsResponse) obj; + com.google.showcase.v1beta1.ListTestsResponse other = + (com.google.showcase.v1beta1.ListTestsResponse) obj; - if (!getTestsList() - .equals(other.getTestsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getTestsList().equals(other.getTestsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,132 +263,136 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.ListTestsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.ListTestsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListTestsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListTestsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListTestsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListTestsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListTestsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListTestsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListTestsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.ListTestsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.ListTestsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.ListTestsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListTestsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListTestsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.ListTestsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response for the ListTests method.
    * 
* * Protobuf type {@code google.showcase.v1beta1.ListTestsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListTestsResponse) com.google.showcase.v1beta1.ListTestsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListTestsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsResponse_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListTestsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ListTestsResponse.class, com.google.showcase.v1beta1.ListTestsResponse.Builder.class); + com.google.showcase.v1beta1.ListTestsResponse.class, + com.google.showcase.v1beta1.ListTestsResponse.Builder.class); } // Construct using com.google.showcase.v1beta1.ListTestsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ListTestsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ListTestsResponse_descriptor; } @java.lang.Override @@ -395,9 +430,12 @@ public com.google.showcase.v1beta1.ListTestsResponse build() { @java.lang.Override public com.google.showcase.v1beta1.ListTestsResponse buildPartial() { - com.google.showcase.v1beta1.ListTestsResponse result = new com.google.showcase.v1beta1.ListTestsResponse(this); + com.google.showcase.v1beta1.ListTestsResponse result = + new com.google.showcase.v1beta1.ListTestsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -425,38 +463,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ListTestsResponse result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ListTestsResponse) { - return mergeFrom((com.google.showcase.v1beta1.ListTestsResponse)other); + return mergeFrom((com.google.showcase.v1beta1.ListTestsResponse) other); } else { super.mergeFrom(other); return this; @@ -483,9 +522,10 @@ public Builder mergeFrom(com.google.showcase.v1beta1.ListTestsResponse other) { testsBuilder_ = null; tests_ = other.tests_; bitField0_ = (bitField0_ & ~0x00000001); - testsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTestsFieldBuilder() : null; + testsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTestsFieldBuilder() + : null; } else { testsBuilder_.addAllMessages(other.tests_); } @@ -522,30 +562,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.showcase.v1beta1.Test m = - input.readMessage( - com.google.showcase.v1beta1.Test.parser(), - extensionRegistry); - if (testsBuilder_ == null) { - ensureTestsIsMutable(); - tests_.add(m); - } else { - testsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.showcase.v1beta1.Test m = + input.readMessage(com.google.showcase.v1beta1.Test.parser(), extensionRegistry); + if (testsBuilder_ == null) { + ensureTestsIsMutable(); + tests_.add(m); + } else { + testsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,21 +596,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List tests_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { tests_ = new java.util.ArrayList(tests_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.Test, com.google.showcase.v1beta1.Test.Builder, com.google.showcase.v1beta1.TestOrBuilder> testsBuilder_; + com.google.showcase.v1beta1.Test, + com.google.showcase.v1beta1.Test.Builder, + com.google.showcase.v1beta1.TestOrBuilder> + testsBuilder_; /** + * + * *
      * The tests being returned.
      * 
@@ -584,6 +632,8 @@ public java.util.List getTestsList() { } } /** + * + * *
      * The tests being returned.
      * 
@@ -598,6 +648,8 @@ public int getTestsCount() { } } /** + * + * *
      * The tests being returned.
      * 
@@ -612,14 +664,15 @@ public com.google.showcase.v1beta1.Test getTests(int index) { } } /** + * + * *
      * The tests being returned.
      * 
* * repeated .google.showcase.v1beta1.Test tests = 1; */ - public Builder setTests( - int index, com.google.showcase.v1beta1.Test value) { + public Builder setTests(int index, com.google.showcase.v1beta1.Test value) { if (testsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -633,14 +686,15 @@ public Builder setTests( return this; } /** + * + * *
      * The tests being returned.
      * 
* * repeated .google.showcase.v1beta1.Test tests = 1; */ - public Builder setTests( - int index, com.google.showcase.v1beta1.Test.Builder builderForValue) { + public Builder setTests(int index, com.google.showcase.v1beta1.Test.Builder builderForValue) { if (testsBuilder_ == null) { ensureTestsIsMutable(); tests_.set(index, builderForValue.build()); @@ -651,6 +705,8 @@ public Builder setTests( return this; } /** + * + * *
      * The tests being returned.
      * 
@@ -671,14 +727,15 @@ public Builder addTests(com.google.showcase.v1beta1.Test value) { return this; } /** + * + * *
      * The tests being returned.
      * 
* * repeated .google.showcase.v1beta1.Test tests = 1; */ - public Builder addTests( - int index, com.google.showcase.v1beta1.Test value) { + public Builder addTests(int index, com.google.showcase.v1beta1.Test value) { if (testsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -692,14 +749,15 @@ public Builder addTests( return this; } /** + * + * *
      * The tests being returned.
      * 
* * repeated .google.showcase.v1beta1.Test tests = 1; */ - public Builder addTests( - com.google.showcase.v1beta1.Test.Builder builderForValue) { + public Builder addTests(com.google.showcase.v1beta1.Test.Builder builderForValue) { if (testsBuilder_ == null) { ensureTestsIsMutable(); tests_.add(builderForValue.build()); @@ -710,14 +768,15 @@ public Builder addTests( return this; } /** + * + * *
      * The tests being returned.
      * 
* * repeated .google.showcase.v1beta1.Test tests = 1; */ - public Builder addTests( - int index, com.google.showcase.v1beta1.Test.Builder builderForValue) { + public Builder addTests(int index, com.google.showcase.v1beta1.Test.Builder builderForValue) { if (testsBuilder_ == null) { ensureTestsIsMutable(); tests_.add(index, builderForValue.build()); @@ -728,6 +787,8 @@ public Builder addTests( return this; } /** + * + * *
      * The tests being returned.
      * 
@@ -738,8 +799,7 @@ public Builder addAllTests( java.lang.Iterable values) { if (testsBuilder_ == null) { ensureTestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tests_); onChanged(); } else { testsBuilder_.addAllMessages(values); @@ -747,6 +807,8 @@ public Builder addAllTests( return this; } /** + * + * *
      * The tests being returned.
      * 
@@ -764,6 +826,8 @@ public Builder clearTests() { return this; } /** + * + * *
      * The tests being returned.
      * 
@@ -781,39 +845,44 @@ public Builder removeTests(int index) { return this; } /** + * + * *
      * The tests being returned.
      * 
* * repeated .google.showcase.v1beta1.Test tests = 1; */ - public com.google.showcase.v1beta1.Test.Builder getTestsBuilder( - int index) { + public com.google.showcase.v1beta1.Test.Builder getTestsBuilder(int index) { return getTestsFieldBuilder().getBuilder(index); } /** + * + * *
      * The tests being returned.
      * 
* * repeated .google.showcase.v1beta1.Test tests = 1; */ - public com.google.showcase.v1beta1.TestOrBuilder getTestsOrBuilder( - int index) { + public com.google.showcase.v1beta1.TestOrBuilder getTestsOrBuilder(int index) { if (testsBuilder_ == null) { - return tests_.get(index); } else { + return tests_.get(index); + } else { return testsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The tests being returned.
      * 
* * repeated .google.showcase.v1beta1.Test tests = 1; */ - public java.util.List - getTestsOrBuilderList() { + public java.util.List + getTestsOrBuilderList() { if (testsBuilder_ != null) { return testsBuilder_.getMessageOrBuilderList(); } else { @@ -821,6 +890,8 @@ public com.google.showcase.v1beta1.TestOrBuilder getTestsOrBuilder( } } /** + * + * *
      * The tests being returned.
      * 
@@ -828,42 +899,47 @@ public com.google.showcase.v1beta1.TestOrBuilder getTestsOrBuilder( * repeated .google.showcase.v1beta1.Test tests = 1; */ public com.google.showcase.v1beta1.Test.Builder addTestsBuilder() { - return getTestsFieldBuilder().addBuilder( - com.google.showcase.v1beta1.Test.getDefaultInstance()); + return getTestsFieldBuilder() + .addBuilder(com.google.showcase.v1beta1.Test.getDefaultInstance()); } /** + * + * *
      * The tests being returned.
      * 
* * repeated .google.showcase.v1beta1.Test tests = 1; */ - public com.google.showcase.v1beta1.Test.Builder addTestsBuilder( - int index) { - return getTestsFieldBuilder().addBuilder( - index, com.google.showcase.v1beta1.Test.getDefaultInstance()); + public com.google.showcase.v1beta1.Test.Builder addTestsBuilder(int index) { + return getTestsFieldBuilder() + .addBuilder(index, com.google.showcase.v1beta1.Test.getDefaultInstance()); } /** + * + * *
      * The tests being returned.
      * 
* * repeated .google.showcase.v1beta1.Test tests = 1; */ - public java.util.List - getTestsBuilderList() { + public java.util.List getTestsBuilderList() { return getTestsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.Test, com.google.showcase.v1beta1.Test.Builder, com.google.showcase.v1beta1.TestOrBuilder> + com.google.showcase.v1beta1.Test, + com.google.showcase.v1beta1.Test.Builder, + com.google.showcase.v1beta1.TestOrBuilder> getTestsFieldBuilder() { if (testsBuilder_ == null) { - testsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.Test, com.google.showcase.v1beta1.Test.Builder, com.google.showcase.v1beta1.TestOrBuilder>( - tests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + testsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Test, + com.google.showcase.v1beta1.Test.Builder, + com.google.showcase.v1beta1.TestOrBuilder>( + tests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); tests_ = null; } return testsBuilder_; @@ -871,19 +947,21 @@ public com.google.showcase.v1beta1.Test.Builder addTestsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next page token, if any.
      * An empty value here means the last page has been reached.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -892,21 +970,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token, if any.
      * An empty value here means the last page has been reached.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -914,30 +993,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token, if any.
      * An empty value here means the last page has been reached.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The next page token, if any.
      * An empty value here means the last page has been reached.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -947,27 +1033,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * The next page token, if any.
      * An empty value here means the last page has been reached.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -977,12 +1067,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ListTestsResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListTestsResponse) private static final com.google.showcase.v1beta1.ListTestsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListTestsResponse(); } @@ -991,27 +1081,27 @@ public static com.google.showcase.v1beta1.ListTestsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTestsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTestsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1026,6 +1116,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.ListTestsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponseOrBuilder.java similarity index 63% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponseOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponseOrBuilder.java index 31291ae5d8..5ad9894160 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponseOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListTestsResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface ListTestsResponseOrBuilder extends +public interface ListTestsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListTestsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The tests being returned.
    * 
* * repeated .google.showcase.v1beta1.Test tests = 1; */ - java.util.List - getTestsList(); + java.util.List getTestsList(); /** + * + * *
    * The tests being returned.
    * 
@@ -26,6 +45,8 @@ public interface ListTestsResponseOrBuilder extends */ com.google.showcase.v1beta1.Test getTests(int index); /** + * + * *
    * The tests being returned.
    * 
@@ -34,43 +55,50 @@ public interface ListTestsResponseOrBuilder extends */ int getTestsCount(); /** + * + * *
    * The tests being returned.
    * 
* * repeated .google.showcase.v1beta1.Test tests = 1; */ - java.util.List - getTestsOrBuilderList(); + java.util.List getTestsOrBuilderList(); /** + * + * *
    * The tests being returned.
    * 
* * repeated .google.showcase.v1beta1.Test tests = 1; */ - com.google.showcase.v1beta1.TestOrBuilder getTestsOrBuilder( - int index); + com.google.showcase.v1beta1.TestOrBuilder getTestsOrBuilder(int index); /** + * + * *
    * The next page token, if any.
    * An empty value here means the last page has been reached.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next page token, if any.
    * An empty value here means the last page has been reached.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequest.java similarity index 68% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequest.java index 6a2bb24c5e..c6592acb69 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/identity.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request message for the google.showcase.v1beta1.Identity\ListUsers
  * method.
@@ -12,48 +29,53 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.ListUsersRequest}
  */
-public final class ListUsersRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListUsersRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListUsersRequest)
     ListUsersRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListUsersRequest.newBuilder() to construct.
   private ListUsersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListUsersRequest() {
     pageToken_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListUsersRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.IdentityOuterClass
+        .internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.IdentityOuterClass
+        .internal_static_google_showcase_v1beta1_ListUsersRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.ListUsersRequest.class, com.google.showcase.v1beta1.ListUsersRequest.Builder.class);
+            com.google.showcase.v1beta1.ListUsersRequest.class,
+            com.google.showcase.v1beta1.ListUsersRequest.Builder.class);
   }
 
   public static final int PAGE_SIZE_FIELD_NUMBER = 1;
   private int pageSize_ = 0;
   /**
+   *
+   *
    * 
    * The maximum number of users to return. Server may return fewer users
    * than requested. If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 1; + * * @return The pageSize. */ @java.lang.Override @@ -62,9 +84,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The value of google.showcase.v1beta1.ListUsersResponse.next_page_token
    * returned from the previous call to
@@ -72,6 +97,7 @@ public int getPageSize() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -80,14 +106,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value of google.showcase.v1beta1.ListUsersResponse.next_page_token
    * returned from the previous call to
@@ -95,16 +122,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -113,6 +139,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -124,8 +151,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(1, pageSize_); } @@ -142,8 +168,7 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); @@ -156,17 +181,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.ListUsersRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.ListUsersRequest other = (com.google.showcase.v1beta1.ListUsersRequest) obj; + com.google.showcase.v1beta1.ListUsersRequest other = + (com.google.showcase.v1beta1.ListUsersRequest) obj; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,99 +211,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.ListUsersRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.ListUsersRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListUsersRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListUsersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListUsersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListUsersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListUsersRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListUsersRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListUsersRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.ListUsersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.ListUsersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.ListUsersRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListUsersRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListUsersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.ListUsersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for the google.showcase.v1beta1.Identity\ListUsers
    * method.
@@ -287,33 +316,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.ListUsersRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListUsersRequest)
       com.google.showcase.v1beta1.ListUsersRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.IdentityOuterClass
+          .internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.IdentityOuterClass
+          .internal_static_google_showcase_v1beta1_ListUsersRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.ListUsersRequest.class, com.google.showcase.v1beta1.ListUsersRequest.Builder.class);
+              com.google.showcase.v1beta1.ListUsersRequest.class,
+              com.google.showcase.v1beta1.ListUsersRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.ListUsersRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -324,9 +352,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.IdentityOuterClass
+          .internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor;
     }
 
     @java.lang.Override
@@ -345,8 +373,11 @@ public com.google.showcase.v1beta1.ListUsersRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.ListUsersRequest buildPartial() {
-      com.google.showcase.v1beta1.ListUsersRequest result = new com.google.showcase.v1beta1.ListUsersRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.ListUsersRequest result =
+          new com.google.showcase.v1beta1.ListUsersRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -365,38 +396,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ListUsersRequest result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.ListUsersRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.ListUsersRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.ListUsersRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -439,22 +471,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -464,16 +499,20 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private int pageSize_ ;
+    private int pageSize_;
     /**
+     *
+     *
      * 
      * The maximum number of users to return. Server may return fewer users
      * than requested. If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 1; + * * @return The pageSize. */ @java.lang.Override @@ -481,12 +520,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of users to return. Server may return fewer users
      * than requested. If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 1; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -498,12 +540,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of users to return. Server may return fewer users
      * than requested. If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 1; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -515,6 +560,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value of google.showcase.v1beta1.ListUsersResponse.next_page_token
      * returned from the previous call to
@@ -522,13 +569,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -537,6 +584,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of google.showcase.v1beta1.ListUsersResponse.next_page_token
      * returned from the previous call to
@@ -544,15 +593,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -560,6 +608,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of google.showcase.v1beta1.ListUsersResponse.next_page_token
      * returned from the previous call to
@@ -567,18 +617,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The value of google.showcase.v1beta1.ListUsersResponse.next_page_token
      * returned from the previous call to
@@ -586,6 +640,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -595,6 +650,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The value of google.showcase.v1beta1.ListUsersResponse.next_page_token
      * returned from the previous call to
@@ -602,21 +659,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -626,12 +685,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ListUsersRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListUsersRequest) private static final com.google.showcase.v1beta1.ListUsersRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListUsersRequest(); } @@ -640,27 +699,27 @@ public static com.google.showcase.v1beta1.ListUsersRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -675,6 +734,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.ListUsersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequestOrBuilder.java similarity index 62% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequestOrBuilder.java index f1acdf5dce..4a2cc746b5 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersRequestOrBuilder.java @@ -1,25 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/identity.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface ListUsersRequestOrBuilder extends +public interface ListUsersRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListUsersRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The maximum number of users to return. Server may return fewer users
    * than requested. If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 1; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The value of google.showcase.v1beta1.ListUsersResponse.next_page_token
    * returned from the previous call to
@@ -27,10 +48,13 @@ public interface ListUsersRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value of google.showcase.v1beta1.ListUsersResponse.next_page_token
    * returned from the previous call to
@@ -38,8 +62,8 @@ public interface ListUsersRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponse.java similarity index 72% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponse.java index 1710ccbc13..475a01cec0 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/identity.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The response message for the google.showcase.v1beta1.Identity\ListUsers
  * method.
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.ListUsersResponse}
  */
-public final class ListUsersResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListUsersResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ListUsersResponse)
     ListUsersResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListUsersResponse.newBuilder() to construct.
   private ListUsersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListUsersResponse() {
     users_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -28,28 +46,32 @@ private ListUsersResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListUsersResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.IdentityOuterClass
+        .internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersResponse_fieldAccessorTable
+    return com.google.showcase.v1beta1.IdentityOuterClass
+        .internal_static_google_showcase_v1beta1_ListUsersResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.ListUsersResponse.class, com.google.showcase.v1beta1.ListUsersResponse.Builder.class);
+            com.google.showcase.v1beta1.ListUsersResponse.class,
+            com.google.showcase.v1beta1.ListUsersResponse.Builder.class);
   }
 
   public static final int USERS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List users_;
   /**
+   *
+   *
    * 
    * The list of users.
    * 
@@ -61,6 +83,8 @@ public java.util.List getUsersList() { return users_; } /** + * + * *
    * The list of users.
    * 
@@ -68,11 +92,13 @@ public java.util.List getUsersList() { * repeated .google.showcase.v1beta1.User users = 1; */ @java.lang.Override - public java.util.List + public java.util.List getUsersOrBuilderList() { return users_; } /** + * + * *
    * The list of users.
    * 
@@ -84,6 +110,8 @@ public int getUsersCount() { return users_.size(); } /** + * + * *
    * The list of users.
    * 
@@ -95,6 +123,8 @@ public com.google.showcase.v1beta1.User getUsers(int index) { return users_.get(index); } /** + * + * *
    * The list of users.
    * 
@@ -102,15 +132,17 @@ public com.google.showcase.v1beta1.User getUsers(int index) { * repeated .google.showcase.v1beta1.User users = 1; */ @java.lang.Override - public com.google.showcase.v1beta1.UserOrBuilder getUsersOrBuilder( - int index) { + public com.google.showcase.v1beta1.UserOrBuilder getUsersOrBuilder(int index) { return users_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token to retrieve next page of results.
    * Pass this value in ListUsersRequest.page_token field in the subsequent
@@ -119,6 +151,7 @@ public com.google.showcase.v1beta1.UserOrBuilder getUsersOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,14 +160,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve next page of results.
    * Pass this value in ListUsersRequest.page_token field in the subsequent
@@ -143,16 +177,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -161,6 +194,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +206,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < users_.size(); i++) { output.writeMessage(1, users_.get(i)); } @@ -190,8 +223,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < users_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, users_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, users_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -204,17 +236,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.ListUsersResponse)) { return super.equals(obj); } - com.google.showcase.v1beta1.ListUsersResponse other = (com.google.showcase.v1beta1.ListUsersResponse) obj; + com.google.showcase.v1beta1.ListUsersResponse other = + (com.google.showcase.v1beta1.ListUsersResponse) obj; - if (!getUsersList() - .equals(other.getUsersList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getUsersList().equals(other.getUsersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,99 +268,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.ListUsersResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.ListUsersResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListUsersResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListUsersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListUsersResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListUsersResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ListUsersResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ListUsersResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListUsersResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.ListUsersResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.ListUsersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.ListUsersResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ListUsersResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ListUsersResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.ListUsersResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response message for the google.showcase.v1beta1.Identity\ListUsers
    * method.
@@ -337,33 +373,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.ListUsersResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ListUsersResponse)
       com.google.showcase.v1beta1.ListUsersResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.IdentityOuterClass
+          .internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersResponse_fieldAccessorTable
+      return com.google.showcase.v1beta1.IdentityOuterClass
+          .internal_static_google_showcase_v1beta1_ListUsersResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.ListUsersResponse.class, com.google.showcase.v1beta1.ListUsersResponse.Builder.class);
+              com.google.showcase.v1beta1.ListUsersResponse.class,
+              com.google.showcase.v1beta1.ListUsersResponse.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.ListUsersResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -380,9 +415,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.IdentityOuterClass
+          .internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor;
     }
 
     @java.lang.Override
@@ -401,9 +436,12 @@ public com.google.showcase.v1beta1.ListUsersResponse build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.ListUsersResponse buildPartial() {
-      com.google.showcase.v1beta1.ListUsersResponse result = new com.google.showcase.v1beta1.ListUsersResponse(this);
+      com.google.showcase.v1beta1.ListUsersResponse result =
+          new com.google.showcase.v1beta1.ListUsersResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -431,38 +469,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ListUsersResponse result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.ListUsersResponse) {
-        return mergeFrom((com.google.showcase.v1beta1.ListUsersResponse)other);
+        return mergeFrom((com.google.showcase.v1beta1.ListUsersResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -489,9 +528,10 @@ public Builder mergeFrom(com.google.showcase.v1beta1.ListUsersResponse other) {
             usersBuilder_ = null;
             users_ = other.users_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            usersBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getUsersFieldBuilder() : null;
+            usersBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getUsersFieldBuilder()
+                    : null;
           } else {
             usersBuilder_.addAllMessages(other.users_);
           }
@@ -528,30 +568,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.showcase.v1beta1.User m =
-                  input.readMessage(
-                      com.google.showcase.v1beta1.User.parser(),
-                      extensionRegistry);
-              if (usersBuilder_ == null) {
-                ensureUsersIsMutable();
-                users_.add(m);
-              } else {
-                usersBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.showcase.v1beta1.User m =
+                    input.readMessage(com.google.showcase.v1beta1.User.parser(), extensionRegistry);
+                if (usersBuilder_ == null) {
+                  ensureUsersIsMutable();
+                  users_.add(m);
+                } else {
+                  usersBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -561,21 +602,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List users_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureUsersIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         users_ = new java.util.ArrayList(users_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.showcase.v1beta1.User, com.google.showcase.v1beta1.User.Builder, com.google.showcase.v1beta1.UserOrBuilder> usersBuilder_;
+            com.google.showcase.v1beta1.User,
+            com.google.showcase.v1beta1.User.Builder,
+            com.google.showcase.v1beta1.UserOrBuilder>
+        usersBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of users.
      * 
@@ -590,6 +638,8 @@ public java.util.List getUsersList() { } } /** + * + * *
      * The list of users.
      * 
@@ -604,6 +654,8 @@ public int getUsersCount() { } } /** + * + * *
      * The list of users.
      * 
@@ -618,14 +670,15 @@ public com.google.showcase.v1beta1.User getUsers(int index) { } } /** + * + * *
      * The list of users.
      * 
* * repeated .google.showcase.v1beta1.User users = 1; */ - public Builder setUsers( - int index, com.google.showcase.v1beta1.User value) { + public Builder setUsers(int index, com.google.showcase.v1beta1.User value) { if (usersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -639,14 +692,15 @@ public Builder setUsers( return this; } /** + * + * *
      * The list of users.
      * 
* * repeated .google.showcase.v1beta1.User users = 1; */ - public Builder setUsers( - int index, com.google.showcase.v1beta1.User.Builder builderForValue) { + public Builder setUsers(int index, com.google.showcase.v1beta1.User.Builder builderForValue) { if (usersBuilder_ == null) { ensureUsersIsMutable(); users_.set(index, builderForValue.build()); @@ -657,6 +711,8 @@ public Builder setUsers( return this; } /** + * + * *
      * The list of users.
      * 
@@ -677,14 +733,15 @@ public Builder addUsers(com.google.showcase.v1beta1.User value) { return this; } /** + * + * *
      * The list of users.
      * 
* * repeated .google.showcase.v1beta1.User users = 1; */ - public Builder addUsers( - int index, com.google.showcase.v1beta1.User value) { + public Builder addUsers(int index, com.google.showcase.v1beta1.User value) { if (usersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -698,14 +755,15 @@ public Builder addUsers( return this; } /** + * + * *
      * The list of users.
      * 
* * repeated .google.showcase.v1beta1.User users = 1; */ - public Builder addUsers( - com.google.showcase.v1beta1.User.Builder builderForValue) { + public Builder addUsers(com.google.showcase.v1beta1.User.Builder builderForValue) { if (usersBuilder_ == null) { ensureUsersIsMutable(); users_.add(builderForValue.build()); @@ -716,14 +774,15 @@ public Builder addUsers( return this; } /** + * + * *
      * The list of users.
      * 
* * repeated .google.showcase.v1beta1.User users = 1; */ - public Builder addUsers( - int index, com.google.showcase.v1beta1.User.Builder builderForValue) { + public Builder addUsers(int index, com.google.showcase.v1beta1.User.Builder builderForValue) { if (usersBuilder_ == null) { ensureUsersIsMutable(); users_.add(index, builderForValue.build()); @@ -734,6 +793,8 @@ public Builder addUsers( return this; } /** + * + * *
      * The list of users.
      * 
@@ -744,8 +805,7 @@ public Builder addAllUsers( java.lang.Iterable values) { if (usersBuilder_ == null) { ensureUsersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, users_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, users_); onChanged(); } else { usersBuilder_.addAllMessages(values); @@ -753,6 +813,8 @@ public Builder addAllUsers( return this; } /** + * + * *
      * The list of users.
      * 
@@ -770,6 +832,8 @@ public Builder clearUsers() { return this; } /** + * + * *
      * The list of users.
      * 
@@ -787,39 +851,44 @@ public Builder removeUsers(int index) { return this; } /** + * + * *
      * The list of users.
      * 
* * repeated .google.showcase.v1beta1.User users = 1; */ - public com.google.showcase.v1beta1.User.Builder getUsersBuilder( - int index) { + public com.google.showcase.v1beta1.User.Builder getUsersBuilder(int index) { return getUsersFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of users.
      * 
* * repeated .google.showcase.v1beta1.User users = 1; */ - public com.google.showcase.v1beta1.UserOrBuilder getUsersOrBuilder( - int index) { + public com.google.showcase.v1beta1.UserOrBuilder getUsersOrBuilder(int index) { if (usersBuilder_ == null) { - return users_.get(index); } else { + return users_.get(index); + } else { return usersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of users.
      * 
* * repeated .google.showcase.v1beta1.User users = 1; */ - public java.util.List - getUsersOrBuilderList() { + public java.util.List + getUsersOrBuilderList() { if (usersBuilder_ != null) { return usersBuilder_.getMessageOrBuilderList(); } else { @@ -827,6 +896,8 @@ public com.google.showcase.v1beta1.UserOrBuilder getUsersOrBuilder( } } /** + * + * *
      * The list of users.
      * 
@@ -834,42 +905,47 @@ public com.google.showcase.v1beta1.UserOrBuilder getUsersOrBuilder( * repeated .google.showcase.v1beta1.User users = 1; */ public com.google.showcase.v1beta1.User.Builder addUsersBuilder() { - return getUsersFieldBuilder().addBuilder( - com.google.showcase.v1beta1.User.getDefaultInstance()); + return getUsersFieldBuilder() + .addBuilder(com.google.showcase.v1beta1.User.getDefaultInstance()); } /** + * + * *
      * The list of users.
      * 
* * repeated .google.showcase.v1beta1.User users = 1; */ - public com.google.showcase.v1beta1.User.Builder addUsersBuilder( - int index) { - return getUsersFieldBuilder().addBuilder( - index, com.google.showcase.v1beta1.User.getDefaultInstance()); + public com.google.showcase.v1beta1.User.Builder addUsersBuilder(int index) { + return getUsersFieldBuilder() + .addBuilder(index, com.google.showcase.v1beta1.User.getDefaultInstance()); } /** + * + * *
      * The list of users.
      * 
* * repeated .google.showcase.v1beta1.User users = 1; */ - public java.util.List - getUsersBuilderList() { + public java.util.List getUsersBuilderList() { return getUsersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.User, com.google.showcase.v1beta1.User.Builder, com.google.showcase.v1beta1.UserOrBuilder> + com.google.showcase.v1beta1.User, + com.google.showcase.v1beta1.User.Builder, + com.google.showcase.v1beta1.UserOrBuilder> getUsersFieldBuilder() { if (usersBuilder_ == null) { - usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.User, com.google.showcase.v1beta1.User.Builder, com.google.showcase.v1beta1.UserOrBuilder>( - users_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + usersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.User, + com.google.showcase.v1beta1.User.Builder, + com.google.showcase.v1beta1.UserOrBuilder>( + users_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); users_ = null; } return usersBuilder_; @@ -877,6 +953,8 @@ public com.google.showcase.v1beta1.User.Builder addUsersBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in ListUsersRequest.page_token field in the subsequent
@@ -885,13 +963,13 @@ public com.google.showcase.v1beta1.User.Builder addUsersBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -900,6 +978,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in ListUsersRequest.page_token field in the subsequent
@@ -908,15 +988,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -924,6 +1003,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in ListUsersRequest.page_token field in the subsequent
@@ -932,18 +1013,22 @@ public java.lang.String getNextPageToken() {
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in ListUsersRequest.page_token field in the subsequent
@@ -952,6 +1037,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -961,6 +1047,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in ListUsersRequest.page_token field in the subsequent
@@ -969,21 +1057,23 @@ public Builder clearNextPageToken() {
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -993,12 +1083,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ListUsersResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ListUsersResponse) private static final com.google.showcase.v1beta1.ListUsersResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ListUsersResponse(); } @@ -1007,27 +1097,27 @@ public static com.google.showcase.v1beta1.ListUsersResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1042,6 +1132,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.ListUsersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponseOrBuilder.java similarity index 66% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponseOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponseOrBuilder.java index 113082aee3..a4b83e13b7 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponseOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ListUsersResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/identity.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface ListUsersResponseOrBuilder extends +public interface ListUsersResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ListUsersResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of users.
    * 
* * repeated .google.showcase.v1beta1.User users = 1; */ - java.util.List - getUsersList(); + java.util.List getUsersList(); /** + * + * *
    * The list of users.
    * 
@@ -26,6 +45,8 @@ public interface ListUsersResponseOrBuilder extends */ com.google.showcase.v1beta1.User getUsers(int index); /** + * + * *
    * The list of users.
    * 
@@ -34,25 +55,29 @@ public interface ListUsersResponseOrBuilder extends */ int getUsersCount(); /** + * + * *
    * The list of users.
    * 
* * repeated .google.showcase.v1beta1.User users = 1; */ - java.util.List - getUsersOrBuilderList(); + java.util.List getUsersOrBuilderList(); /** + * + * *
    * The list of users.
    * 
* * repeated .google.showcase.v1beta1.User users = 1; */ - com.google.showcase.v1beta1.UserOrBuilder getUsersOrBuilder( - int index); + com.google.showcase.v1beta1.UserOrBuilder getUsersOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results.
    * Pass this value in ListUsersRequest.page_token field in the subsequent
@@ -61,10 +86,13 @@ com.google.showcase.v1beta1.UserOrBuilder getUsersOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results.
    * Pass this value in ListUsersRequest.page_token field in the subsequent
@@ -73,8 +101,8 @@ com.google.showcase.v1beta1.UserOrBuilder getUsersOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingOuterClass.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingOuterClass.java new file mode 100644 index 0000000000..8f2ad6cf6a --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingOuterClass.java @@ -0,0 +1,493 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/messaging.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public final class MessagingOuterClass { + private MessagingOuterClass() {} + + 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_showcase_v1beta1_Room_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_Room_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_CreateRoomRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_GetRoomRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_UpdateRoomRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_DeleteRoomRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListRoomsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListRoomsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_Blurb_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_Blurb_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_CreateBlurbRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_GetBlurbRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_UpdateBlurbRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_DeleteBlurbRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListBlurbsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListBlurbsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_SearchBlurbsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_SearchBlurbsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_StreamBlurbsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_StreamBlurbsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_SendBlurbsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ConnectRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ConnectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_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.schema/google/showcase/v1beta1/messagi" + + "ng.proto\022\027google.showcase.v1beta1\032\034googl" + + "e/api/annotations.proto\032\027google/api/clie" + + "nt.proto\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\032#google/lon" + + "grunning/operations.proto\032\033google/protob" + + "uf/empty.proto\032 google/protobuf/field_ma" + + "sk.proto\032\037google/protobuf/timestamp.prot" + + "o\032\036google/rpc/error_details.proto\"\341\001\n\004Ro" + + "om\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003" + + "\340A\002\022\023\n\013description\030\003 \001(\t\0224\n\013create_time\030" + + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + + "\n\013update_time\030\005 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003:/\352A,\n\034showcase.googleapis.c" + + "om/Room\022\014rooms/{room}\"@\n\021CreateRoomReque" + + "st\022+\n\004room\030\001 \001(\0132\035.google.showcase.v1bet" + + "a1.Room\"D\n\016GetRoomRequest\0222\n\004name\030\001 \001(\tB" + + "$\340A\002\372A\036\n\034showcase.googleapis.com/Room\"q\n" + + "\021UpdateRoomRequest\022+\n\004room\030\001 \001(\0132\035.googl" + + "e.showcase.v1beta1.Room\022/\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMask\"G\n\021Dele" + + "teRoomRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034sho" + + "wcase.googleapis.com/Room\"9\n\020ListRoomsRe" + + "quest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_token\030\002" + + " \001(\t\"Z\n\021ListRoomsResponse\022,\n\005rooms\030\001 \003(\013" + + "2\035.google.showcase.v1beta1.Room\022\027\n\017next_" + + "page_token\030\002 \001(\t\"\366\003\n\005Blurb\022\014\n\004name\030\001 \001(\t" + + "\0222\n\004user\030\002 \001(\tB$\340A\002\372A\036\n\034showcase.googlea" + + "pis.com/User\022\016\n\004text\030\003 \001(\tH\000\022\017\n\005image\030\004 " + + "\001(\014H\000\0224\n\013create_time\030\005 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\006 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022\030\n\016leg" + + "acy_room_id\030\007 \001(\tH\001\022\030\n\016legacy_user_id\030\010 " + + "\001(\tH\001:\321\001\352A\315\001\n\035showcase.googleapis.com/Bl" + + "urb\0228users/{user}/profile/blurbs/legacy/" + + "{legacy_user}~{blurb}\022#users/{user}/prof" + + "ile/blurbs/{blurb}\022\033rooms/{room}/blurbs/" + + "{blurb}\0220rooms/{room}/blurbs/legacy/{leg" + + "acy_room}.{blurb}B\t\n\007contentB\013\n\tlegacy_i" + + "d\"z\n\022CreateBlurbRequest\0225\n\006parent\030\001 \001(\tB" + + "%\340A\002\372A\037\022\035showcase.googleapis.com/Blurb\022-" + + "\n\005blurb\030\002 \001(\0132\036.google.showcase.v1beta1." + + "Blurb\"F\n\017GetBlurbRequest\0223\n\004name\030\001 \001(\tB%" + + "\340A\002\372A\037\n\035showcase.googleapis.com/Blurb\"t\n" + + "\022UpdateBlurbRequest\022-\n\005blurb\030\001 \001(\0132\036.goo" + + "gle.showcase.v1beta1.Blurb\022/\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"I\n\022D" + + "eleteBlurbRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n" + + "\035showcase.googleapis.com/Blurb\"q\n\021ListBl" + + "urbsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035sho" + + "wcase.googleapis.com/Blurb\022\021\n\tpage_size\030" + + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"]\n\022ListBlurbsR" + + "esponse\022.\n\006blurbs\030\001 \003(\0132\036.google.showcas" + + "e.v1beta1.Blurb\022\027\n\017next_page_token\030\002 \001(\t" + + "\"\204\001\n\023SearchBlurbsRequest\022\022\n\005query\030\001 \001(\tB" + + "\003\340A\002\0222\n\006parent\030\002 \001(\tB\"\372A\037\022\035showcase.goog" + + "leapis.com/Blurb\022\021\n\tpage_size\030\003 \001(\005\022\022\n\np" + + "age_token\030\004 \001(\t\"A\n\024SearchBlurbsMetadata\022" + + ")\n\nretry_info\030\001 \001(\0132\025.google.rpc.RetryIn" + + "fo\"_\n\024SearchBlurbsResponse\022.\n\006blurbs\030\001 \003" + + "(\0132\036.google.showcase.v1beta1.Blurb\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"\200\001\n\023StreamBlurbsRequ" + + "est\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\022\035showcase.goog" + + "leapis.com/Blurb\0224\n\013expire_time\030\002 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\002\"\321\001\n\024Strea" + + "mBlurbsResponse\022-\n\005blurb\030\001 \001(\0132\036.google." + + "showcase.v1beta1.Blurb\022D\n\006action\030\002 \001(\01624" + + ".google.showcase.v1beta1.StreamBlurbsRes" + + "ponse.Action\"D\n\006Action\022\026\n\022ACTION_UNSPECI" + + "FIED\020\000\022\n\n\006CREATE\020\001\022\n\n\006UPDATE\020\002\022\n\n\006DELETE" + + "\020\003\"#\n\022SendBlurbsResponse\022\r\n\005names\030\001 \003(\t\"" + + "\332\001\n\016ConnectRequest\022G\n\006config\030\001 \001(\01325.goo" + + "gle.showcase.v1beta1.ConnectRequest.Conn" + + "ectConfigH\000\022/\n\005blurb\030\002 \001(\0132\036.google.show" + + "case.v1beta1.BlurbH\000\032C\n\rConnectConfig\0222\n" + + "\006parent\030\001 \001(\tB\"\372A\037\022\035showcase.googleapis." + + "com/BlurbB\t\n\007request2\264\023\n\tMessaging\022\227\001\n\nC" + + "reateRoom\022*.google.showcase.v1beta1.Crea" + + "teRoomRequest\032\035.google.showcase.v1beta1." + + "Room\">\332A\"room.display_name,room.descript" + + "ion\202\323\344\223\002\023\"\016/v1beta1/rooms:\001*\022y\n\007GetRoom\022" + + "\'.google.showcase.v1beta1.GetRoomRequest" + + "\032\035.google.showcase.v1beta1.Room\"&\332A\004name" + + "\202\323\344\223\002\031\022\027/v1beta1/{name=rooms/*}\022\203\001\n\nUpda" + + "teRoom\022*.google.showcase.v1beta1.UpdateR" + + "oomRequest\032\035.google.showcase.v1beta1.Roo" + + "m\"*\202\323\344\223\002$2\034/v1beta1/{room.name=rooms/*}:" + + "\004room\022x\n\nDeleteRoom\022*.google.showcase.v1" + + "beta1.DeleteRoomRequest\032\026.google.protobu" + + "f.Empty\"&\332A\004name\202\323\344\223\002\031*\027/v1beta1/{name=r" + + "ooms/*}\022z\n\tListRooms\022).google.showcase.v" + + "1beta1.ListRoomsRequest\032*.google.showcas" + + "e.v1beta1.ListRoomsResponse\"\026\202\323\344\223\002\020\022\016/v1" + + "beta1/rooms\022\366\001\n\013CreateBlurb\022+.google.sho" + + "wcase.v1beta1.CreateBlurbRequest\032\036.googl" + + "e.showcase.v1beta1.Blurb\"\231\001\332A\034parent,blu" + + "rb.user,blurb.text\332A\035parent,blurb.user,b" + + "lurb.image\202\323\344\223\002T\" /v1beta1/{parent=rooms" + + "/*}/blurbs:\001*Z-\"(/v1beta1/{parent=users/" + + "*/profile}/blurbs:\001*\022\261\001\n\010GetBlurb\022(.goog" + + "le.showcase.v1beta1.GetBlurbRequest\032\036.go" + + "ogle.showcase.v1beta1.Blurb\"[\332A\004name\202\323\344\223" + + "\002N\022 /v1beta1/{name=rooms/*/blurbs/*}Z*\022(" + + "/v1beta1/{name=users/*/profile/blurbs/*}" + + "\022\312\001\n\013UpdateBlurb\022+.google.showcase.v1bet" + + "a1.UpdateBlurbRequest\032\036.google.showcase." + + "v1beta1.Blurb\"n\202\323\344\223\002h2&/v1beta1/{blurb.n" + + "ame=rooms/*/blurbs/*}:\005blurbZ72./v1beta1" + + "/{blurb.name=users/*/profile/blurbs/*}:\005" + + "blurb\022\257\001\n\013DeleteBlurb\022+.google.showcase." + + "v1beta1.DeleteBlurbRequest\032\026.google.prot" + + "obuf.Empty\"[\332A\004name\202\323\344\223\002N* /v1beta1/{nam" + + "e=rooms/*/blurbs/*}Z**(/v1beta1/{name=us" + + "ers/*/profile/blurbs/*}\022\304\001\n\nListBlurbs\022*" + + ".google.showcase.v1beta1.ListBlurbsReque" + + "st\032+.google.showcase.v1beta1.ListBlurbsR" + + "esponse\"]\332A\006parent\202\323\344\223\002N\022 /v1beta1/{pare" + + "nt=rooms/*}/blurbsZ*\022(/v1beta1/{parent=u" + + "sers/*/profile}/blurbs\022\201\002\n\014SearchBlurbs\022" + + ",.google.showcase.v1beta1.SearchBlurbsRe" + + "quest\032\035.google.longrunning.Operation\"\243\001\312" + + "A,\n\024SearchBlurbsResponse\022\024SearchBlurbsMe" + + "tadata\332A\014parent,query\202\323\344\223\002_\"\'/v1beta1/{p" + + "arent=rooms/*}/blurbs:search:\001*Z1\"//v1be" + + "ta1/{parent=users/*/profile}/blurbs:sear" + + "ch\022\323\001\n\014StreamBlurbs\022,.google.showcase.v1" + + "beta1.StreamBlurbsRequest\032-.google.showc" + + "ase.v1beta1.StreamBlurbsResponse\"d\202\323\344\223\002^" + + "\"%/v1beta1/{name=rooms/*}/blurbs:stream:" + + "\001*Z2\"-/v1beta1/{name=users/*/profile}/bl" + + "urbs:stream:\001*0\001\022\316\001\n\nSendBlurbs\022+.google" + + ".showcase.v1beta1.CreateBlurbRequest\032+.g" + + "oogle.showcase.v1beta1.SendBlurbsRespons" + + "e\"d\202\323\344\223\002^\"%/v1beta1/{parent=rooms/*}/blu" + + "rbs:send:\001*Z2\"-/v1beta1/{parent=users/*/" + + "profile}/blurbs:send:\001*(\001\022e\n\007Connect\022\'.g" + + "oogle.showcase.v1beta1.ConnectRequest\032-." + + "google.showcase.v1beta1.StreamBlurbsResp" + + "onse(\0010\001\032\021\312A\016localhost:7469Bq\n\033com.googl" + + "e.showcase.v1beta1P\001Z4github.com/googlea" + + "pis/gapic-showcase/server/genproto\352\002\031Goo" + + "gle::Showcase::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.ErrorDetailsProto.getDescriptor(), + }); + internal_static_google_showcase_v1beta1_Room_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_showcase_v1beta1_Room_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_Room_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Description", "CreateTime", "UpdateTime", + }); + internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_showcase_v1beta1_CreateRoomRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor, + new java.lang.String[] { + "Room", + }); + internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_showcase_v1beta1_GetRoomRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_showcase_v1beta1_UpdateRoomRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor, + new java.lang.String[] { + "Room", "UpdateMask", + }); + internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_showcase_v1beta1_DeleteRoomRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_showcase_v1beta1_ListRoomsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor, + new java.lang.String[] { + "PageSize", "PageToken", + }); + internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_showcase_v1beta1_ListRoomsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor, + new java.lang.String[] { + "Rooms", "NextPageToken", + }); + internal_static_google_showcase_v1beta1_Blurb_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_showcase_v1beta1_Blurb_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_Blurb_descriptor, + new java.lang.String[] { + "Name", + "User", + "Text", + "Image", + "CreateTime", + "UpdateTime", + "LegacyRoomId", + "LegacyUserId", + "Content", + "LegacyId", + }); + internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_showcase_v1beta1_CreateBlurbRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor, + new java.lang.String[] { + "Parent", "Blurb", + }); + internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_showcase_v1beta1_GetBlurbRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_showcase_v1beta1_UpdateBlurbRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor, + new java.lang.String[] { + "Blurb", "UpdateMask", + }); + internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_showcase_v1beta1_DeleteBlurbRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_showcase_v1beta1_ListBlurbsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_showcase_v1beta1_ListBlurbsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor, + new java.lang.String[] { + "Blurbs", "NextPageToken", + }); + internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_showcase_v1beta1_SearchBlurbsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor, + new java.lang.String[] { + "Query", "Parent", "PageSize", "PageToken", + }); + internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor, + new java.lang.String[] { + "RetryInfo", + }); + internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_showcase_v1beta1_SearchBlurbsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor, + new java.lang.String[] { + "Blurbs", "NextPageToken", + }); + internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_showcase_v1beta1_StreamBlurbsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor, + new java.lang.String[] { + "Name", "ExpireTime", + }); + internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_showcase_v1beta1_StreamBlurbsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor, + new java.lang.String[] { + "Blurb", "Action", + }); + internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_showcase_v1beta1_SendBlurbsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor, + new java.lang.String[] { + "Names", + }); + internal_static_google_showcase_v1beta1_ConnectRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_showcase_v1beta1_ConnectRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ConnectRequest_descriptor, + new java.lang.String[] { + "Config", "Blurb", "Request", + }); + internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor = + internal_static_google_showcase_v1beta1_ConnectRequest_descriptor.getNestedTypes().get(0); + internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor, + new java.lang.String[] { + "Parent", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.ErrorDetailsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponse.java similarity index 61% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponse.java index 2c16d19fd6..16184a07c4 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponse.java @@ -1,35 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -/** - * Protobuf type {@code google.showcase.v1beta1.PagedExpandLegacyMappedResponse} - */ -public final class PagedExpandLegacyMappedResponse extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.showcase.v1beta1.PagedExpandLegacyMappedResponse} */ +public final class PagedExpandLegacyMappedResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.PagedExpandLegacyMappedResponse) PagedExpandLegacyMappedResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PagedExpandLegacyMappedResponse.newBuilder() to construct. - private PagedExpandLegacyMappedResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private PagedExpandLegacyMappedResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PagedExpandLegacyMappedResponse() { nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PagedExpandLegacyMappedResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -40,113 +54,141 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 1: return internalGetAlphabetized(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.class, com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.Builder.class); + com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.class, + com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.Builder.class); } public static final int ALPHABETIZED_FIELD_NUMBER = 1; + private static final class AlphabetizedDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.showcase.v1beta1.PagedExpandResponseList> defaultEntry = + java.lang.String, com.google.showcase.v1beta1.PagedExpandResponseList> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.showcase.v1beta1.PagedExpandResponseList.getDefaultInstance()); + . + newDefaultInstance( + com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.showcase.v1beta1.PagedExpandResponseList.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.showcase.v1beta1.PagedExpandResponseList> alphabetized_; - private com.google.protobuf.MapField - internalGetAlphabetized() { + java.lang.String, com.google.showcase.v1beta1.PagedExpandResponseList> + alphabetized_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.showcase.v1beta1.PagedExpandResponseList> + internalGetAlphabetized() { if (alphabetized_ == null) { return com.google.protobuf.MapField.emptyMapField( AlphabetizedDefaultEntryHolder.defaultEntry); } return alphabetized_; } + public int getAlphabetizedCount() { return internalGetAlphabetized().getMap().size(); } /** + * + * *
    * The words that were expanded, indexed by their initial character.
    * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
    *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
    * 
* - * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * */ @java.lang.Override - public boolean containsAlphabetized( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAlphabetized(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAlphabetized().getMap().containsKey(key); } - /** - * Use {@link #getAlphabetizedMap()} instead. - */ + /** Use {@link #getAlphabetizedMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getAlphabetized() { + public java.util.Map + getAlphabetized() { return getAlphabetizedMap(); } /** + * + * *
    * The words that were expanded, indexed by their initial character.
    * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
    *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
    * 
* - * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * */ @java.lang.Override - public java.util.Map getAlphabetizedMap() { + public java.util.Map + getAlphabetizedMap() { return internalGetAlphabetized().getMap(); } /** + * + * *
    * The words that were expanded, indexed by their initial character.
    * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
    *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
    * 
* - * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * */ @java.lang.Override - public /* nullable */ -com.google.showcase.v1beta1.PagedExpandResponseList getAlphabetizedOrDefault( - java.lang.String key, - /* nullable */ -com.google.showcase.v1beta1.PagedExpandResponseList defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + public /* nullable */ com.google.showcase.v1beta1.PagedExpandResponseList + getAlphabetizedOrDefault( + java.lang.String key, + /* nullable */ + com.google.showcase.v1beta1.PagedExpandResponseList defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetAlphabetized().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * The words that were expanded, indexed by their initial character.
    * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
    *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
    * 
* - * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * */ @java.lang.Override public com.google.showcase.v1beta1.PagedExpandResponseList getAlphabetizedOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetAlphabetized().getMap(); if (!map.containsKey(key)) { @@ -156,14 +198,18 @@ public com.google.showcase.v1beta1.PagedExpandResponseList getAlphabetizedOrThro } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * The next page token.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -172,29 +218,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next page token.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -203,6 +249,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,14 +261,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAlphabetized(), - AlphabetizedDefaultEntryHolder.defaultEntry, - 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAlphabetized(), AlphabetizedDefaultEntryHolder.defaultEntry, 1); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } @@ -234,15 +276,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetAlphabetized().getMap().entrySet()) { - com.google.protobuf.MapEntry - alphabetized__ = AlphabetizedDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, alphabetized__); + for (java.util.Map.Entry + entry : internalGetAlphabetized().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.showcase.v1beta1.PagedExpandResponseList> + alphabetized__ = + AlphabetizedDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, alphabetized__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -255,17 +299,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse)) { return super.equals(obj); } - com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse other = (com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse) obj; + com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse other = + (com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse) obj; - if (!internalGetAlphabetized().equals( - other.internalGetAlphabetized())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!internalGetAlphabetized().equals(other.internalGetAlphabetized())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -289,107 +332,109 @@ public int hashCode() { } public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse prototype) { + + public static Builder newBuilder( + com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.PagedExpandLegacyMappedResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.PagedExpandLegacyMappedResponse} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.PagedExpandLegacyMappedResponse) com.google.showcase.v1beta1.PagedExpandLegacyMappedResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -399,10 +444,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 1: return internalGetAlphabetized(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -410,28 +455,27 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi case 1: return internalGetMutableAlphabetized(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.class, com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.Builder.class); + com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.class, + com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.Builder.class); } // Construct using com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -442,9 +486,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor; } @java.lang.Override @@ -463,8 +507,11 @@ public com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse build() { @java.lang.Override public com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse buildPartial() { - com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse result = new com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse result = + new com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -472,7 +519,8 @@ public com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse buildPartial( private void buildPartial0(com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.alphabetized_ = internalGetAlphabetized().build(AlphabetizedDefaultEntryHolder.defaultEntry); + result.alphabetized_ = + internalGetAlphabetized().build(AlphabetizedDefaultEntryHolder.defaultEntry); } if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -483,38 +531,39 @@ private void buildPartial0(com.google.showcase.v1beta1.PagedExpandLegacyMappedRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse) { - return mergeFrom((com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse)other); + return mergeFrom((com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse) other); } else { super.mergeFrom(other); return this; @@ -522,9 +571,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse other) { - if (other == com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.getDefaultInstance()) return this; - internalGetMutableAlphabetized().mergeFrom( - other.internalGetAlphabetized()); + if (other == com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.getDefaultInstance()) + return this; + internalGetMutableAlphabetized().mergeFrom(other.internalGetAlphabetized()); bitField0_ |= 0x00000001; if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; @@ -557,26 +606,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.MapEntry - alphabetized__ = input.readMessage( - AlphabetizedDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableAlphabetized().ensureBuilderMap().put( - alphabetized__.getKey(), alphabetized__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.showcase.v1beta1.PagedExpandResponseList> + alphabetized__ = + input.readMessage( + AlphabetizedDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAlphabetized() + .ensureBuilderMap() + .put(alphabetized__.getKey(), alphabetized__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -586,32 +642,57 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private static final class AlphabetizedConverter implements com.google.protobuf.MapFieldBuilder.Converter { + private static final class AlphabetizedConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.showcase.v1beta1.PagedExpandResponseListOrBuilder, + com.google.showcase.v1beta1.PagedExpandResponseList> { @java.lang.Override - public com.google.showcase.v1beta1.PagedExpandResponseList build(com.google.showcase.v1beta1.PagedExpandResponseListOrBuilder val) { - if (val instanceof com.google.showcase.v1beta1.PagedExpandResponseList) { return (com.google.showcase.v1beta1.PagedExpandResponseList) val; } + public com.google.showcase.v1beta1.PagedExpandResponseList build( + com.google.showcase.v1beta1.PagedExpandResponseListOrBuilder val) { + if (val instanceof com.google.showcase.v1beta1.PagedExpandResponseList) { + return (com.google.showcase.v1beta1.PagedExpandResponseList) val; + } return ((com.google.showcase.v1beta1.PagedExpandResponseList.Builder) val).build(); } @java.lang.Override - public com.google.protobuf.MapEntry defaultEntry() { + public com.google.protobuf.MapEntry< + java.lang.String, com.google.showcase.v1beta1.PagedExpandResponseList> + defaultEntry() { return AlphabetizedDefaultEntryHolder.defaultEntry; } }; + private static final AlphabetizedConverter alphabetizedConverter = new AlphabetizedConverter(); private com.google.protobuf.MapFieldBuilder< - java.lang.String, com.google.showcase.v1beta1.PagedExpandResponseListOrBuilder, com.google.showcase.v1beta1.PagedExpandResponseList, com.google.showcase.v1beta1.PagedExpandResponseList.Builder> alphabetized_; - private com.google.protobuf.MapFieldBuilder + java.lang.String, + com.google.showcase.v1beta1.PagedExpandResponseListOrBuilder, + com.google.showcase.v1beta1.PagedExpandResponseList, + com.google.showcase.v1beta1.PagedExpandResponseList.Builder> + alphabetized_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.showcase.v1beta1.PagedExpandResponseListOrBuilder, + com.google.showcase.v1beta1.PagedExpandResponseList, + com.google.showcase.v1beta1.PagedExpandResponseList.Builder> internalGetAlphabetized() { if (alphabetized_ == null) { return new com.google.protobuf.MapFieldBuilder<>(alphabetizedConverter); } return alphabetized_; } - private com.google.protobuf.MapFieldBuilder + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.showcase.v1beta1.PagedExpandResponseListOrBuilder, + com.google.showcase.v1beta1.PagedExpandResponseList, + com.google.showcase.v1beta1.PagedExpandResponseList.Builder> internalGetMutableAlphabetized() { if (alphabetized_ == null) { alphabetized_ = new com.google.protobuf.MapFieldBuilder<>(alphabetizedConverter); @@ -620,107 +701,129 @@ public com.google.protobuf.MapEntry * The words that were expanded, indexed by their initial character. * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates * aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --) *
* - * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * */ @java.lang.Override - public boolean containsAlphabetized( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAlphabetized(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAlphabetized().ensureBuilderMap().containsKey(key); } - /** - * Use {@link #getAlphabetizedMap()} instead. - */ + /** Use {@link #getAlphabetizedMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getAlphabetized() { + public java.util.Map + getAlphabetized() { return getAlphabetizedMap(); } /** + * + * *
      * The words that were expanded, indexed by their initial character.
      * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
      *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
      * 
* - * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * */ @java.lang.Override - public java.util.Map getAlphabetizedMap() { + public java.util.Map + getAlphabetizedMap() { return internalGetAlphabetized().getImmutableMap(); } /** + * + * *
      * The words that were expanded, indexed by their initial character.
      * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
      *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
      * 
* - * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * */ @java.lang.Override - public /* nullable */ -com.google.showcase.v1beta1.PagedExpandResponseList getAlphabetizedOrDefault( - java.lang.String key, - /* nullable */ -com.google.showcase.v1beta1.PagedExpandResponseList defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = internalGetMutableAlphabetized().ensureBuilderMap(); + public /* nullable */ com.google.showcase.v1beta1.PagedExpandResponseList + getAlphabetizedOrDefault( + java.lang.String key, + /* nullable */ + com.google.showcase.v1beta1.PagedExpandResponseList defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableAlphabetized().ensureBuilderMap(); return map.containsKey(key) ? alphabetizedConverter.build(map.get(key)) : defaultValue; } /** + * + * *
      * The words that were expanded, indexed by their initial character.
      * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
      *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
      * 
* - * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * */ @java.lang.Override public com.google.showcase.v1beta1.PagedExpandResponseList getAlphabetizedOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = internalGetMutableAlphabetized().ensureBuilderMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableAlphabetized().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return alphabetizedConverter.build(map.get(key)); } + public Builder clearAlphabetized() { bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableAlphabetized().clear(); return this; } /** + * + * *
      * The words that were expanded, indexed by their initial character.
      * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
      *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
      * 
* - * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * */ - public Builder removeAlphabetized( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAlphabetized().ensureBuilderMap() - .remove(key); + public Builder removeAlphabetized(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAlphabetized().ensureBuilderMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAlphabetized() { @@ -728,57 +831,71 @@ public Builder removeAlphabetized( return internalGetMutableAlphabetized().ensureMessageMap(); } /** + * + * *
      * The words that were expanded, indexed by their initial character.
      * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
      *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
      * 
* - * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * */ public Builder putAlphabetized( - java.lang.String key, - com.google.showcase.v1beta1.PagedExpandResponseList value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAlphabetized().ensureBuilderMap() - .put(key, value); + java.lang.String key, com.google.showcase.v1beta1.PagedExpandResponseList value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAlphabetized().ensureBuilderMap().put(key, value); bitField0_ |= 0x00000001; return this; } /** + * + * *
      * The words that were expanded, indexed by their initial character.
      * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
      *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
      * 
* - * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * */ public Builder putAllAlphabetized( - java.util.Map values) { - for (java.util.Map.Entry e : values.entrySet()) { + java.util.Map + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.showcase.v1beta1.PagedExpandResponseList> + e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } - internalGetMutableAlphabetized().ensureBuilderMap() - .putAll(values); + internalGetMutableAlphabetized().ensureBuilderMap().putAll(values); bitField0_ |= 0x00000001; return this; } /** + * + * *
      * The words that were expanded, indexed by their initial character.
      * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
      *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
      * 
* - * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * */ - public com.google.showcase.v1beta1.PagedExpandResponseList.Builder putAlphabetizedBuilderIfAbsent( - java.lang.String key) { - java.util.Map builderMap = internalGetMutableAlphabetized().ensureBuilderMap(); + public com.google.showcase.v1beta1.PagedExpandResponseList.Builder + putAlphabetizedBuilderIfAbsent(java.lang.String key) { + java.util.Map + builderMap = internalGetMutableAlphabetized().ensureBuilderMap(); com.google.showcase.v1beta1.PagedExpandResponseListOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.google.showcase.v1beta1.PagedExpandResponseList.newBuilder(); @@ -793,18 +910,20 @@ public com.google.showcase.v1beta1.PagedExpandResponseList.Builder putAlphabetiz private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -813,20 +932,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -834,28 +954,35 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The next page token.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -865,26 +992,30 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * The 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -894,12 +1025,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.PagedExpandLegacyMappedResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.PagedExpandLegacyMappedResponse) private static final com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse(); } @@ -908,27 +1039,27 @@ public static com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PagedExpandLegacyMappedResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PagedExpandLegacyMappedResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -943,6 +1074,4 @@ public com.google.protobuf.Parser getParserForT public com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponseOrBuilder.java similarity index 67% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponseOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponseOrBuilder.java index 2472ab8199..fae099136e 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponseOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyMappedResponseOrBuilder.java @@ -1,94 +1,126 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface PagedExpandLegacyMappedResponseOrBuilder extends +public interface PagedExpandLegacyMappedResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.PagedExpandLegacyMappedResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The words that were expanded, indexed by their initial character.
    * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
    *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
    * 
* - * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * */ int getAlphabetizedCount(); /** + * + * *
    * The words that were expanded, indexed by their initial character.
    * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
    *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
    * 
* - * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; - */ - boolean containsAlphabetized( - java.lang.String key); - /** - * Use {@link #getAlphabetizedMap()} instead. + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * */ + boolean containsAlphabetized(java.lang.String key); + /** Use {@link #getAlphabetizedMap()} instead. */ @java.lang.Deprecated java.util.Map - getAlphabetized(); + getAlphabetized(); /** + * + * *
    * The words that were expanded, indexed by their initial character.
    * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
    *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
    * 
* - * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * */ java.util.Map - getAlphabetizedMap(); + getAlphabetizedMap(); /** + * + * *
    * The words that were expanded, indexed by their initial character.
    * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
    *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
    * 
* - * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * */ /* nullable */ -com.google.showcase.v1beta1.PagedExpandResponseList getAlphabetizedOrDefault( + com.google.showcase.v1beta1.PagedExpandResponseList getAlphabetizedOrDefault( java.lang.String key, /* nullable */ -com.google.showcase.v1beta1.PagedExpandResponseList defaultValue); + com.google.showcase.v1beta1.PagedExpandResponseList defaultValue); /** + * + * *
    * The words that were expanded, indexed by their initial character.
    * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates
    *     aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)
    * 
* - * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * map<string, .google.showcase.v1beta1.PagedExpandResponseList> alphabetized = 1; + * */ - com.google.showcase.v1beta1.PagedExpandResponseList getAlphabetizedOrThrow( - java.lang.String key); + com.google.showcase.v1beta1.PagedExpandResponseList getAlphabetizedOrThrow(java.lang.String key); /** + * + * *
    * The next page token.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next page token.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequest.java similarity index 69% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequest.java index 89342e9dca..3c0262853a 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request for the PagedExpandLegacy method.  This is a pattern used by some legacy APIs. New
  * APIs should NOT use this pattern, but rather something like PagedExpandRequest which conforms to
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.PagedExpandLegacyRequest}
  */
-public final class PagedExpandLegacyRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PagedExpandLegacyRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.PagedExpandLegacyRequest)
     PagedExpandLegacyRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PagedExpandLegacyRequest.newBuilder() to construct.
   private PagedExpandLegacyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PagedExpandLegacyRequest() {
     content_ = "";
     pageToken_ = "";
@@ -29,33 +47,38 @@ private PagedExpandLegacyRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PagedExpandLegacyRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.EchoOuterClass
+        .internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.EchoOuterClass
+        .internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.PagedExpandLegacyRequest.class, com.google.showcase.v1beta1.PagedExpandLegacyRequest.Builder.class);
+            com.google.showcase.v1beta1.PagedExpandLegacyRequest.class,
+            com.google.showcase.v1beta1.PagedExpandLegacyRequest.Builder.class);
   }
 
   public static final int CONTENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object content_ = "";
   /**
+   *
+   *
    * 
    * The string to expand.
    * 
* * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The content. */ @java.lang.Override @@ -64,29 +87,29 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** + * + * *
    * The string to expand.
    * 
* * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -97,6 +120,8 @@ public java.lang.String getContent() { public static final int MAX_RESULTS_FIELD_NUMBER = 2; private int maxResults_ = 0; /** + * + * *
    * The number of words to returned in each page.
    * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that
@@ -104,6 +129,7 @@ public java.lang.String getContent() {
    * 
* * int32 max_results = 2; + * * @return The maxResults. */ @java.lang.Override @@ -112,14 +138,18 @@ public int getMaxResults() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The position of the page to be returned.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -128,29 +158,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The position of the page to be returned.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -159,6 +189,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } @@ -194,8 +224,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); } if (maxResults_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, maxResults_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxResults_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -208,19 +237,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.PagedExpandLegacyRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.PagedExpandLegacyRequest other = (com.google.showcase.v1beta1.PagedExpandLegacyRequest) obj; + com.google.showcase.v1beta1.PagedExpandLegacyRequest other = + (com.google.showcase.v1beta1.PagedExpandLegacyRequest) obj; - if (!getContent() - .equals(other.getContent())) return false; - if (getMaxResults() - != other.getMaxResults()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getContent().equals(other.getContent())) return false; + if (getMaxResults() != other.getMaxResults()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,98 +271,103 @@ public int hashCode() { } public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.PagedExpandLegacyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.PagedExpandLegacyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for the PagedExpandLegacy method.  This is a pattern used by some legacy APIs. New
    * APIs should NOT use this pattern, but rather something like PagedExpandRequest which conforms to
@@ -344,33 +376,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.PagedExpandLegacyRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.PagedExpandLegacyRequest)
       com.google.showcase.v1beta1.PagedExpandLegacyRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.EchoOuterClass
+          .internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.EchoOuterClass
+          .internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.PagedExpandLegacyRequest.class, com.google.showcase.v1beta1.PagedExpandLegacyRequest.Builder.class);
+              com.google.showcase.v1beta1.PagedExpandLegacyRequest.class,
+              com.google.showcase.v1beta1.PagedExpandLegacyRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.PagedExpandLegacyRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -382,9 +413,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.EchoOuterClass
+          .internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor;
     }
 
     @java.lang.Override
@@ -403,8 +434,11 @@ public com.google.showcase.v1beta1.PagedExpandLegacyRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.PagedExpandLegacyRequest buildPartial() {
-      com.google.showcase.v1beta1.PagedExpandLegacyRequest result = new com.google.showcase.v1beta1.PagedExpandLegacyRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.PagedExpandLegacyRequest result =
+          new com.google.showcase.v1beta1.PagedExpandLegacyRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -426,38 +460,39 @@ private void buildPartial0(com.google.showcase.v1beta1.PagedExpandLegacyRequest
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.PagedExpandLegacyRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.PagedExpandLegacyRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.PagedExpandLegacyRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -465,7 +500,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.showcase.v1beta1.PagedExpandLegacyRequest other) {
-      if (other == com.google.showcase.v1beta1.PagedExpandLegacyRequest.getDefaultInstance()) return this;
+      if (other == com.google.showcase.v1beta1.PagedExpandLegacyRequest.getDefaultInstance())
+        return this;
       if (!other.getContent().isEmpty()) {
         content_ = other.content_;
         bitField0_ |= 0x00000001;
@@ -505,27 +541,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              content_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              maxResults_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                content_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                maxResults_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -535,22 +575,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object content_ = "";
     /**
+     *
+     *
      * 
      * The string to expand.
      * 
* * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The content. */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -559,20 +602,21 @@ public java.lang.String getContent() { } } /** + * + * *
      * The string to expand.
      * 
* * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -580,28 +624,35 @@ public java.lang.String getContent() { } } /** + * + * *
      * The string to expand.
      * 
* * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } content_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The string to expand.
      * 
* * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -611,17 +662,21 @@ public Builder clearContent() { return this; } /** + * + * *
      * The string to expand.
      * 
* * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); content_ = value; bitField0_ |= 0x00000001; @@ -629,8 +684,10 @@ public Builder setContentBytes( return this; } - private int maxResults_ ; + private int maxResults_; /** + * + * *
      * The number of words to returned in each page.
      * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that
@@ -638,6 +695,7 @@ public Builder setContentBytes(
      * 
* * int32 max_results = 2; + * * @return The maxResults. */ @java.lang.Override @@ -645,6 +703,8 @@ public int getMaxResults() { return maxResults_; } /** + * + * *
      * The number of words to returned in each page.
      * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that
@@ -652,6 +712,7 @@ public int getMaxResults() {
      * 
* * int32 max_results = 2; + * * @param value The maxResults to set. * @return This builder for chaining. */ @@ -663,6 +724,8 @@ public Builder setMaxResults(int value) { return this; } /** + * + * *
      * The number of words to returned in each page.
      * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that
@@ -670,6 +733,7 @@ public Builder setMaxResults(int value) {
      * 
* * int32 max_results = 2; + * * @return This builder for chaining. */ public Builder clearMaxResults() { @@ -681,18 +745,20 @@ public Builder clearMaxResults() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The position of the page to be returned.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -701,20 +767,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The position of the page to be returned.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -722,28 +789,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The position of the page to be returned.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The position of the page to be returned.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -753,26 +827,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The position of the page to be returned.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -782,12 +860,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.PagedExpandLegacyRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.PagedExpandLegacyRequest) private static final com.google.showcase.v1beta1.PagedExpandLegacyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.PagedExpandLegacyRequest(); } @@ -796,27 +874,27 @@ public static com.google.showcase.v1beta1.PagedExpandLegacyRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PagedExpandLegacyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PagedExpandLegacyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -831,6 +909,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.PagedExpandLegacyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequestOrBuilder.java similarity index 62% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequestOrBuilder.java index 8d5b5e9f94..396abbd2e1 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandLegacyRequestOrBuilder.java @@ -1,34 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface PagedExpandLegacyRequestOrBuilder extends +public interface PagedExpandLegacyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.PagedExpandLegacyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The string to expand.
    * 
* * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The content. */ java.lang.String getContent(); /** + * + * *
    * The string to expand.
    * 
* * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + com.google.protobuf.ByteString getContentBytes(); /** + * + * *
    * The number of words to returned in each page.
    * (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that
@@ -36,27 +59,33 @@ public interface PagedExpandLegacyRequestOrBuilder extends
    * 
* * int32 max_results = 2; + * * @return The maxResults. */ int getMaxResults(); /** + * + * *
    * The position of the page to be returned.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The position of the page to be returned.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequest.java similarity index 68% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequest.java index 7343369e0d..f9a5b8f2b9 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto @@ -5,21 +20,24 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request for the PagedExpand method.
  * 
* * Protobuf type {@code google.showcase.v1beta1.PagedExpandRequest} */ -public final class PagedExpandRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PagedExpandRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.PagedExpandRequest) PagedExpandRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PagedExpandRequest.newBuilder() to construct. private PagedExpandRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PagedExpandRequest() { content_ = ""; pageToken_ = ""; @@ -27,33 +45,38 @@ private PagedExpandRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PagedExpandRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandRequest_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.PagedExpandRequest.class, com.google.showcase.v1beta1.PagedExpandRequest.Builder.class); + com.google.showcase.v1beta1.PagedExpandRequest.class, + com.google.showcase.v1beta1.PagedExpandRequest.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object content_ = ""; /** + * + * *
    * The string to expand.
    * 
* * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The content. */ @java.lang.Override @@ -62,29 +85,29 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** + * + * *
    * The string to expand.
    * 
* * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -95,11 +118,14 @@ public java.lang.String getContent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The number of words to returned in each page.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -108,14 +134,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The position of the page to be returned.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -124,29 +154,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The position of the page to be returned.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -155,6 +185,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +197,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } @@ -190,8 +220,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -204,19 +233,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.PagedExpandRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.PagedExpandRequest other = (com.google.showcase.v1beta1.PagedExpandRequest) obj; + com.google.showcase.v1beta1.PagedExpandRequest other = + (com.google.showcase.v1beta1.PagedExpandRequest) obj; - if (!getContent() - .equals(other.getContent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getContent().equals(other.getContent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -239,132 +266,136 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.PagedExpandRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.PagedExpandRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.PagedExpandRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.PagedExpandRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.PagedExpandRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for the PagedExpand method.
    * 
* * Protobuf type {@code google.showcase.v1beta1.PagedExpandRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.PagedExpandRequest) com.google.showcase.v1beta1.PagedExpandRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandRequest_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.PagedExpandRequest.class, com.google.showcase.v1beta1.PagedExpandRequest.Builder.class); + com.google.showcase.v1beta1.PagedExpandRequest.class, + com.google.showcase.v1beta1.PagedExpandRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.PagedExpandRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor; } @java.lang.Override @@ -397,8 +428,11 @@ public com.google.showcase.v1beta1.PagedExpandRequest build() { @java.lang.Override public com.google.showcase.v1beta1.PagedExpandRequest buildPartial() { - com.google.showcase.v1beta1.PagedExpandRequest result = new com.google.showcase.v1beta1.PagedExpandRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.PagedExpandRequest result = + new com.google.showcase.v1beta1.PagedExpandRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -420,38 +454,39 @@ private void buildPartial0(com.google.showcase.v1beta1.PagedExpandRequest result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.PagedExpandRequest) { - return mergeFrom((com.google.showcase.v1beta1.PagedExpandRequest)other); + return mergeFrom((com.google.showcase.v1beta1.PagedExpandRequest) other); } else { super.mergeFrom(other); return this; @@ -499,27 +534,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - content_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -529,22 +568,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object content_ = ""; /** + * + * *
      * The string to expand.
      * 
* * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The content. */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -553,20 +595,21 @@ public java.lang.String getContent() { } } /** + * + * *
      * The string to expand.
      * 
* * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -574,28 +617,35 @@ public java.lang.String getContent() { } } /** + * + * *
      * The string to expand.
      * 
* * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } content_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The string to expand.
      * 
* * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -605,17 +655,21 @@ public Builder clearContent() { return this; } /** + * + * *
      * The string to expand.
      * 
* * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); content_ = value; bitField0_ |= 0x00000001; @@ -623,13 +677,16 @@ public Builder setContentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The number of words to returned in each page.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -637,11 +694,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The number of words to returned in each page.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -653,11 +713,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The number of words to returned in each page.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -669,18 +732,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The position of the page to be returned.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -689,20 +754,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The position of the page to be returned.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -710,28 +776,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The position of the page to be returned.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The position of the page to be returned.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -741,26 +814,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The position of the page to be returned.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -770,12 +847,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.PagedExpandRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.PagedExpandRequest) private static final com.google.showcase.v1beta1.PagedExpandRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.PagedExpandRequest(); } @@ -784,27 +861,27 @@ public static com.google.showcase.v1beta1.PagedExpandRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PagedExpandRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PagedExpandRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -819,6 +896,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.PagedExpandRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequestOrBuilder.java similarity index 59% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequestOrBuilder.java index c03d886929..41158db92e 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandRequestOrBuilder.java @@ -1,60 +1,89 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface PagedExpandRequestOrBuilder extends +public interface PagedExpandRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.PagedExpandRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The string to expand.
    * 
* * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The content. */ java.lang.String getContent(); /** + * + * *
    * The string to expand.
    * 
* * string content = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + com.google.protobuf.ByteString getContentBytes(); /** + * + * *
    * The number of words to returned in each page.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The position of the page to be returned.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The position of the page to be returned.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponse.java similarity index 71% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponse.java index 36ec267a57..b6c1591e03 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto @@ -5,21 +20,24 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The response for the PagedExpand method.
  * 
* * Protobuf type {@code google.showcase.v1beta1.PagedExpandResponse} */ -public final class PagedExpandResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PagedExpandResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.PagedExpandResponse) PagedExpandResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PagedExpandResponse.newBuilder() to construct. private PagedExpandResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PagedExpandResponse() { responses_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +45,32 @@ private PagedExpandResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PagedExpandResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponse_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.PagedExpandResponse.class, com.google.showcase.v1beta1.PagedExpandResponse.Builder.class); + com.google.showcase.v1beta1.PagedExpandResponse.class, + com.google.showcase.v1beta1.PagedExpandResponse.Builder.class); } public static final int RESPONSES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List responses_; /** + * + * *
    * The words that were expanded.
    * 
@@ -60,6 +82,8 @@ public java.util.List getResponsesList return responses_; } /** + * + * *
    * The words that were expanded.
    * 
@@ -67,11 +91,13 @@ public java.util.List getResponsesList * repeated .google.showcase.v1beta1.EchoResponse responses = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResponsesOrBuilderList() { return responses_; } /** + * + * *
    * The words that were expanded.
    * 
@@ -83,6 +109,8 @@ public int getResponsesCount() { return responses_.size(); } /** + * + * *
    * The words that were expanded.
    * 
@@ -94,6 +122,8 @@ public com.google.showcase.v1beta1.EchoResponse getResponses(int index) { return responses_.get(index); } /** + * + * *
    * The words that were expanded.
    * 
@@ -101,20 +131,23 @@ public com.google.showcase.v1beta1.EchoResponse getResponses(int index) { * repeated .google.showcase.v1beta1.EchoResponse responses = 1; */ @java.lang.Override - public com.google.showcase.v1beta1.EchoResponseOrBuilder getResponsesOrBuilder( - int index) { + public com.google.showcase.v1beta1.EchoResponseOrBuilder getResponsesOrBuilder(int index) { return responses_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * The next page token.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -123,29 +156,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next page token.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -154,6 +187,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,8 +199,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < responses_.size(); i++) { output.writeMessage(1, responses_.get(i)); } @@ -183,8 +216,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < responses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, responses_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -197,17 +229,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.PagedExpandResponse)) { return super.equals(obj); } - com.google.showcase.v1beta1.PagedExpandResponse other = (com.google.showcase.v1beta1.PagedExpandResponse) obj; + com.google.showcase.v1beta1.PagedExpandResponse other = + (com.google.showcase.v1beta1.PagedExpandResponse) obj; - if (!getResponsesList() - .equals(other.getResponsesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getResponsesList().equals(other.getResponsesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -230,132 +261,136 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.PagedExpandResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.PagedExpandResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.PagedExpandResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.PagedExpandResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.PagedExpandResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response for the PagedExpand method.
    * 
* * Protobuf type {@code google.showcase.v1beta1.PagedExpandResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.PagedExpandResponse) com.google.showcase.v1beta1.PagedExpandResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponse_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.PagedExpandResponse.class, com.google.showcase.v1beta1.PagedExpandResponse.Builder.class); + com.google.showcase.v1beta1.PagedExpandResponse.class, + com.google.showcase.v1beta1.PagedExpandResponse.Builder.class); } // Construct using com.google.showcase.v1beta1.PagedExpandResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -372,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor; } @java.lang.Override @@ -393,14 +428,18 @@ public com.google.showcase.v1beta1.PagedExpandResponse build() { @java.lang.Override public com.google.showcase.v1beta1.PagedExpandResponse buildPartial() { - com.google.showcase.v1beta1.PagedExpandResponse result = new com.google.showcase.v1beta1.PagedExpandResponse(this); + com.google.showcase.v1beta1.PagedExpandResponse result = + new com.google.showcase.v1beta1.PagedExpandResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.showcase.v1beta1.PagedExpandResponse result) { + private void buildPartialRepeatedFields( + com.google.showcase.v1beta1.PagedExpandResponse result) { if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); @@ -423,38 +462,39 @@ private void buildPartial0(com.google.showcase.v1beta1.PagedExpandResponse resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.PagedExpandResponse) { - return mergeFrom((com.google.showcase.v1beta1.PagedExpandResponse)other); + return mergeFrom((com.google.showcase.v1beta1.PagedExpandResponse) other); } else { super.mergeFrom(other); return this; @@ -462,7 +502,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.PagedExpandResponse other) { - if (other == com.google.showcase.v1beta1.PagedExpandResponse.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.PagedExpandResponse.getDefaultInstance()) + return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { @@ -481,9 +522,10 @@ public Builder mergeFrom(com.google.showcase.v1beta1.PagedExpandResponse other) responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); - responsesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResponsesFieldBuilder() : null; + responsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResponsesFieldBuilder() + : null; } else { responsesBuilder_.addAllMessages(other.responses_); } @@ -520,30 +562,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.showcase.v1beta1.EchoResponse m = - input.readMessage( - com.google.showcase.v1beta1.EchoResponse.parser(), - extensionRegistry); - if (responsesBuilder_ == null) { - ensureResponsesIsMutable(); - responses_.add(m); - } else { - responsesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.showcase.v1beta1.EchoResponse m = + input.readMessage( + com.google.showcase.v1beta1.EchoResponse.parser(), extensionRegistry); + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.add(m); + } else { + responsesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -553,21 +597,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List responses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.EchoResponse, com.google.showcase.v1beta1.EchoResponse.Builder, com.google.showcase.v1beta1.EchoResponseOrBuilder> responsesBuilder_; + com.google.showcase.v1beta1.EchoResponse, + com.google.showcase.v1beta1.EchoResponse.Builder, + com.google.showcase.v1beta1.EchoResponseOrBuilder> + responsesBuilder_; /** + * + * *
      * The words that were expanded.
      * 
@@ -582,6 +633,8 @@ public java.util.List getResponsesList } } /** + * + * *
      * The words that were expanded.
      * 
@@ -596,6 +649,8 @@ public int getResponsesCount() { } } /** + * + * *
      * The words that were expanded.
      * 
@@ -610,14 +665,15 @@ public com.google.showcase.v1beta1.EchoResponse getResponses(int index) { } } /** + * + * *
      * The words that were expanded.
      * 
* * repeated .google.showcase.v1beta1.EchoResponse responses = 1; */ - public Builder setResponses( - int index, com.google.showcase.v1beta1.EchoResponse value) { + public Builder setResponses(int index, com.google.showcase.v1beta1.EchoResponse value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -631,6 +687,8 @@ public Builder setResponses( return this; } /** + * + * *
      * The words that were expanded.
      * 
@@ -649,6 +707,8 @@ public Builder setResponses( return this; } /** + * + * *
      * The words that were expanded.
      * 
@@ -669,14 +729,15 @@ public Builder addResponses(com.google.showcase.v1beta1.EchoResponse value) { return this; } /** + * + * *
      * The words that were expanded.
      * 
* * repeated .google.showcase.v1beta1.EchoResponse responses = 1; */ - public Builder addResponses( - int index, com.google.showcase.v1beta1.EchoResponse value) { + public Builder addResponses(int index, com.google.showcase.v1beta1.EchoResponse value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -690,14 +751,15 @@ public Builder addResponses( return this; } /** + * + * *
      * The words that were expanded.
      * 
* * repeated .google.showcase.v1beta1.EchoResponse responses = 1; */ - public Builder addResponses( - com.google.showcase.v1beta1.EchoResponse.Builder builderForValue) { + public Builder addResponses(com.google.showcase.v1beta1.EchoResponse.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(builderForValue.build()); @@ -708,6 +770,8 @@ public Builder addResponses( return this; } /** + * + * *
      * The words that were expanded.
      * 
@@ -726,6 +790,8 @@ public Builder addResponses( return this; } /** + * + * *
      * The words that were expanded.
      * 
@@ -736,8 +802,7 @@ public Builder addAllResponses( java.lang.Iterable values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, responses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); @@ -745,6 +810,8 @@ public Builder addAllResponses( return this; } /** + * + * *
      * The words that were expanded.
      * 
@@ -762,6 +829,8 @@ public Builder clearResponses() { return this; } /** + * + * *
      * The words that were expanded.
      * 
@@ -779,39 +848,44 @@ public Builder removeResponses(int index) { return this; } /** + * + * *
      * The words that were expanded.
      * 
* * repeated .google.showcase.v1beta1.EchoResponse responses = 1; */ - public com.google.showcase.v1beta1.EchoResponse.Builder getResponsesBuilder( - int index) { + public com.google.showcase.v1beta1.EchoResponse.Builder getResponsesBuilder(int index) { return getResponsesFieldBuilder().getBuilder(index); } /** + * + * *
      * The words that were expanded.
      * 
* * repeated .google.showcase.v1beta1.EchoResponse responses = 1; */ - public com.google.showcase.v1beta1.EchoResponseOrBuilder getResponsesOrBuilder( - int index) { + public com.google.showcase.v1beta1.EchoResponseOrBuilder getResponsesOrBuilder(int index) { if (responsesBuilder_ == null) { - return responses_.get(index); } else { + return responses_.get(index); + } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The words that were expanded.
      * 
* * repeated .google.showcase.v1beta1.EchoResponse responses = 1; */ - public java.util.List - getResponsesOrBuilderList() { + public java.util.List + getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { @@ -819,6 +893,8 @@ public com.google.showcase.v1beta1.EchoResponseOrBuilder getResponsesOrBuilder( } } /** + * + * *
      * The words that were expanded.
      * 
@@ -826,42 +902,48 @@ public com.google.showcase.v1beta1.EchoResponseOrBuilder getResponsesOrBuilder( * repeated .google.showcase.v1beta1.EchoResponse responses = 1; */ public com.google.showcase.v1beta1.EchoResponse.Builder addResponsesBuilder() { - return getResponsesFieldBuilder().addBuilder( - com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()); + return getResponsesFieldBuilder() + .addBuilder(com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()); } /** + * + * *
      * The words that were expanded.
      * 
* * repeated .google.showcase.v1beta1.EchoResponse responses = 1; */ - public com.google.showcase.v1beta1.EchoResponse.Builder addResponsesBuilder( - int index) { - return getResponsesFieldBuilder().addBuilder( - index, com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()); + public com.google.showcase.v1beta1.EchoResponse.Builder addResponsesBuilder(int index) { + return getResponsesFieldBuilder() + .addBuilder(index, com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()); } /** + * + * *
      * The words that were expanded.
      * 
* * repeated .google.showcase.v1beta1.EchoResponse responses = 1; */ - public java.util.List - getResponsesBuilderList() { + public java.util.List + getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.EchoResponse, com.google.showcase.v1beta1.EchoResponse.Builder, com.google.showcase.v1beta1.EchoResponseOrBuilder> + com.google.showcase.v1beta1.EchoResponse, + com.google.showcase.v1beta1.EchoResponse.Builder, + com.google.showcase.v1beta1.EchoResponseOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { - responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.EchoResponse, com.google.showcase.v1beta1.EchoResponse.Builder, com.google.showcase.v1beta1.EchoResponseOrBuilder>( - responses_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + responsesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.EchoResponse, + com.google.showcase.v1beta1.EchoResponse.Builder, + com.google.showcase.v1beta1.EchoResponseOrBuilder>( + responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); responses_ = null; } return responsesBuilder_; @@ -869,18 +951,20 @@ public com.google.showcase.v1beta1.EchoResponse.Builder addResponsesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -889,20 +973,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next page token.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -910,28 +995,35 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The next page token.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -941,26 +1033,30 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * The 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -970,12 +1066,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.PagedExpandResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.PagedExpandResponse) private static final com.google.showcase.v1beta1.PagedExpandResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.PagedExpandResponse(); } @@ -984,27 +1080,27 @@ public static com.google.showcase.v1beta1.PagedExpandResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PagedExpandResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PagedExpandResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,6 +1115,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.PagedExpandResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseList.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseList.java similarity index 65% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseList.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseList.java index bc439b6e9c..53e58aeb4e 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseList.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseList.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto @@ -5,60 +20,65 @@ package com.google.showcase.v1beta1; /** + * + * *
  * A list of words.
  * 
* * Protobuf type {@code google.showcase.v1beta1.PagedExpandResponseList} */ -public final class PagedExpandResponseList extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PagedExpandResponseList extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.PagedExpandResponseList) PagedExpandResponseListOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PagedExpandResponseList.newBuilder() to construct. private PagedExpandResponseList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PagedExpandResponseList() { - words_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + words_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PagedExpandResponseList(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponseList_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandResponseList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.PagedExpandResponseList.class, com.google.showcase.v1beta1.PagedExpandResponseList.Builder.class); + com.google.showcase.v1beta1.PagedExpandResponseList.class, + com.google.showcase.v1beta1.PagedExpandResponseList.Builder.class); } public static final int WORDS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList words_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string words = 1; + * * @return A list containing the words. */ - public com.google.protobuf.ProtocolStringList - getWordsList() { + public com.google.protobuf.ProtocolStringList getWordsList() { return words_; } /** * repeated string words = 1; + * * @return The count of words. */ public int getWordsCount() { @@ -66,6 +86,7 @@ public int getWordsCount() { } /** * repeated string words = 1; + * * @param index The index of the element to return. * @return The words at the given index. */ @@ -74,15 +95,16 @@ public java.lang.String getWords(int index) { } /** * repeated string words = 1; + * * @param index The index of the value to return. * @return The bytes of the words at the given index. */ - public com.google.protobuf.ByteString - getWordsBytes(int index) { + public com.google.protobuf.ByteString getWordsBytes(int index) { return words_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -94,8 +116,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < words_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, words_.getRaw(i)); } @@ -124,15 +145,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.PagedExpandResponseList)) { return super.equals(obj); } - com.google.showcase.v1beta1.PagedExpandResponseList other = (com.google.showcase.v1beta1.PagedExpandResponseList) obj; + com.google.showcase.v1beta1.PagedExpandResponseList other = + (com.google.showcase.v1beta1.PagedExpandResponseList) obj; - if (!getWordsList() - .equals(other.getWordsList())) return false; + if (!getWordsList().equals(other.getWordsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -154,144 +175,147 @@ public int hashCode() { } public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.PagedExpandResponseList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.PagedExpandResponseList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.PagedExpandResponseList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.PagedExpandResponseList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.PagedExpandResponseList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A list of words.
    * 
* * Protobuf type {@code google.showcase.v1beta1.PagedExpandResponseList} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.PagedExpandResponseList) com.google.showcase.v1beta1.PagedExpandResponseListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponseList_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandResponseList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.PagedExpandResponseList.class, com.google.showcase.v1beta1.PagedExpandResponseList.Builder.class); + com.google.showcase.v1beta1.PagedExpandResponseList.class, + com.google.showcase.v1beta1.PagedExpandResponseList.Builder.class); } // Construct using com.google.showcase.v1beta1.PagedExpandResponseList.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - words_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + words_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor; } @java.lang.Override @@ -310,8 +334,11 @@ public com.google.showcase.v1beta1.PagedExpandResponseList build() { @java.lang.Override public com.google.showcase.v1beta1.PagedExpandResponseList buildPartial() { - com.google.showcase.v1beta1.PagedExpandResponseList result = new com.google.showcase.v1beta1.PagedExpandResponseList(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.PagedExpandResponseList result = + new com.google.showcase.v1beta1.PagedExpandResponseList(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -328,38 +355,39 @@ private void buildPartial0(com.google.showcase.v1beta1.PagedExpandResponseList r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.PagedExpandResponseList) { - return mergeFrom((com.google.showcase.v1beta1.PagedExpandResponseList)other); + return mergeFrom((com.google.showcase.v1beta1.PagedExpandResponseList) other); } else { super.mergeFrom(other); return this; @@ -367,7 +395,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.PagedExpandResponseList other) { - if (other == com.google.showcase.v1beta1.PagedExpandResponseList.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.PagedExpandResponseList.getDefaultInstance()) + return this; if (!other.words_.isEmpty()) { if (words_.isEmpty()) { words_ = other.words_; @@ -404,18 +433,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureWordsIsMutable(); - words_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureWordsIsMutable(); + words_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -425,10 +456,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList words_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureWordsIsMutable() { if (!words_.isModifiable()) { words_ = new com.google.protobuf.LazyStringArrayList(words_); @@ -437,15 +470,16 @@ private void ensureWordsIsMutable() { } /** * repeated string words = 1; + * * @return A list containing the words. */ - public com.google.protobuf.ProtocolStringList - getWordsList() { + public com.google.protobuf.ProtocolStringList getWordsList() { words_.makeImmutable(); return words_; } /** * repeated string words = 1; + * * @return The count of words. */ public int getWordsCount() { @@ -453,6 +487,7 @@ public int getWordsCount() { } /** * repeated string words = 1; + * * @param index The index of the element to return. * @return The words at the given index. */ @@ -461,22 +496,24 @@ public java.lang.String getWords(int index) { } /** * repeated string words = 1; + * * @param index The index of the value to return. * @return The bytes of the words at the given index. */ - public com.google.protobuf.ByteString - getWordsBytes(int index) { + public com.google.protobuf.ByteString getWordsBytes(int index) { return words_.getByteString(index); } /** * repeated string words = 1; + * * @param index The index to set the value at. * @param value The words to set. * @return This builder for chaining. */ - public Builder setWords( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWords(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureWordsIsMutable(); words_.set(index, value); bitField0_ |= 0x00000001; @@ -485,12 +522,14 @@ public Builder setWords( } /** * repeated string words = 1; + * * @param value The words to add. * @return This builder for chaining. */ - public Builder addWords( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addWords(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureWordsIsMutable(); words_.add(value); bitField0_ |= 0x00000001; @@ -499,37 +538,39 @@ public Builder addWords( } /** * repeated string words = 1; + * * @param values The words to add. * @return This builder for chaining. */ - public Builder addAllWords( - java.lang.Iterable values) { + public Builder addAllWords(java.lang.Iterable values) { ensureWordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, words_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string words = 1; + * * @return This builder for chaining. */ public Builder clearWords() { - words_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + words_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** * repeated string words = 1; + * * @param value The bytes of the words to add. * @return This builder for chaining. */ - public Builder addWordsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addWordsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureWordsIsMutable(); words_.add(value); @@ -537,9 +578,9 @@ public Builder addWordsBytes( onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -549,12 +590,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.PagedExpandResponseList) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.PagedExpandResponseList) private static final com.google.showcase.v1beta1.PagedExpandResponseList DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.PagedExpandResponseList(); } @@ -563,27 +604,27 @@ public static com.google.showcase.v1beta1.PagedExpandResponseList getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PagedExpandResponseList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PagedExpandResponseList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -598,6 +639,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.PagedExpandResponseList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseListOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseListOrBuilder.java similarity index 53% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseListOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseListOrBuilder.java index b64ccb973f..31b19bf88c 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseListOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseListOrBuilder.java @@ -1,35 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface PagedExpandResponseListOrBuilder extends +public interface PagedExpandResponseListOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.PagedExpandResponseList) com.google.protobuf.MessageOrBuilder { /** * repeated string words = 1; + * * @return A list containing the words. */ - java.util.List - getWordsList(); + java.util.List getWordsList(); /** * repeated string words = 1; + * * @return The count of words. */ int getWordsCount(); /** * repeated string words = 1; + * * @param index The index of the element to return. * @return The words at the given index. */ java.lang.String getWords(int index); /** * repeated string words = 1; + * * @param index The index of the value to return. * @return The bytes of the words at the given index. */ - com.google.protobuf.ByteString - getWordsBytes(int index); + com.google.protobuf.ByteString getWordsBytes(int index); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseOrBuilder.java similarity index 65% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseOrBuilder.java index 6f71b2270f..2ab3c860b0 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/PagedExpandResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface PagedExpandResponseOrBuilder extends +public interface PagedExpandResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.PagedExpandResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The words that were expanded.
    * 
* * repeated .google.showcase.v1beta1.EchoResponse responses = 1; */ - java.util.List - getResponsesList(); + java.util.List getResponsesList(); /** + * + * *
    * The words that were expanded.
    * 
@@ -26,6 +45,8 @@ public interface PagedExpandResponseOrBuilder extends */ com.google.showcase.v1beta1.EchoResponse getResponses(int index); /** + * + * *
    * The words that were expanded.
    * 
@@ -34,41 +55,49 @@ public interface PagedExpandResponseOrBuilder extends */ int getResponsesCount(); /** + * + * *
    * The words that were expanded.
    * 
* * repeated .google.showcase.v1beta1.EchoResponse responses = 1; */ - java.util.List + java.util.List getResponsesOrBuilderList(); /** + * + * *
    * The words that were expanded.
    * 
* * repeated .google.showcase.v1beta1.EchoResponse responses = 1; */ - com.google.showcase.v1beta1.EchoResponseOrBuilder getResponsesOrBuilder( - int index); + com.google.showcase.v1beta1.EchoResponseOrBuilder getResponsesOrBuilder(int index); /** + * + * *
    * The next page token.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next page token.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java similarity index 100% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequest.java similarity index 71% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequest.java index b600f88eb4..97fd7bdcb9 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequest.java @@ -1,21 +1,35 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/compliance.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -/** - * Protobuf type {@code google.showcase.v1beta1.RepeatRequest} - */ -public final class RepeatRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.showcase.v1beta1.RepeatRequest} */ +public final class RepeatRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.RepeatRequest) RepeatRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RepeatRequest.newBuilder() to construct. private RepeatRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RepeatRequest() { name_ = ""; intendedBindingUri_ = ""; @@ -23,30 +37,33 @@ private RepeatRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RepeatRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_RepeatRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatRequest_fieldAccessorTable + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_RepeatRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.RepeatRequest.class, com.google.showcase.v1beta1.RepeatRequest.Builder.class); + com.google.showcase.v1beta1.RepeatRequest.class, + com.google.showcase.v1beta1.RepeatRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 1; + * * @return The name. */ @java.lang.Override @@ -55,8 +72,7 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -64,16 +80,15 @@ public java.lang.String getName() { } /** * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -85,6 +100,7 @@ public java.lang.String getName() { private com.google.showcase.v1beta1.ComplianceData info_; /** * .google.showcase.v1beta1.ComplianceData info = 2; + * * @return Whether the info field is set. */ @java.lang.Override @@ -93,15 +109,14 @@ public boolean hasInfo() { } /** * .google.showcase.v1beta1.ComplianceData info = 2; + * * @return The info. */ @java.lang.Override public com.google.showcase.v1beta1.ComplianceData getInfo() { return info_ == null ? com.google.showcase.v1beta1.ComplianceData.getDefaultInstance() : info_; } - /** - * .google.showcase.v1beta1.ComplianceData info = 2; - */ + /** .google.showcase.v1beta1.ComplianceData info = 2; */ @java.lang.Override public com.google.showcase.v1beta1.ComplianceDataOrBuilder getInfoOrBuilder() { return info_ == null ? com.google.showcase.v1beta1.ComplianceData.getDefaultInstance() : info_; @@ -110,12 +125,15 @@ public com.google.showcase.v1beta1.ComplianceDataOrBuilder getInfoOrBuilder() { public static final int SERVER_VERIFY_FIELD_NUMBER = 3; private boolean serverVerify_ = false; /** + * + * *
    * If true, the server will verify that the received request matches
    * the request with the same name in the compliance test suite.
    * 
* * bool server_verify = 3; + * * @return The serverVerify. */ @java.lang.Override @@ -124,14 +142,18 @@ public boolean getServerVerify() { } public static final int INTENDED_BINDING_URI_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private volatile java.lang.Object intendedBindingUri_ = ""; /** + * + * *
    * The URI template this request is expected to be bound to server-side.
    * 
* * optional string intended_binding_uri = 10; + * * @return Whether the intendedBindingUri field is set. */ @java.lang.Override @@ -139,11 +161,14 @@ public boolean hasIntendedBindingUri() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * The URI template this request is expected to be bound to server-side.
    * 
* * optional string intended_binding_uri = 10; + * * @return The intendedBindingUri. */ @java.lang.Override @@ -152,29 +177,29 @@ public java.lang.String getIntendedBindingUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); intendedBindingUri_ = s; return s; } } /** + * + * *
    * The URI template this request is expected to be bound to server-side.
    * 
* * optional string intended_binding_uri = 10; + * * @return The bytes for intendedBindingUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getIntendedBindingUriBytes() { + public com.google.protobuf.ByteString getIntendedBindingUriBytes() { java.lang.Object ref = intendedBindingUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); intendedBindingUri_ = b; return b; } else { @@ -185,12 +210,15 @@ public java.lang.String getIntendedBindingUri() { public static final int F_INT32_FIELD_NUMBER = 4; private int fInt32_ = 0; /** + * + * *
    * Some top level fields, to test that these are encoded correctly
    * in query params.
    * 
* * int32 f_int32 = 4; + * * @return The fInt32. */ @java.lang.Override @@ -202,6 +230,7 @@ public int getFInt32() { private long fInt64_ = 0L; /** * int64 f_int64 = 5; + * * @return The fInt64. */ @java.lang.Override @@ -213,6 +242,7 @@ public long getFInt64() { private double fDouble_ = 0D; /** * double f_double = 6; + * * @return The fDouble. */ @java.lang.Override @@ -224,6 +254,7 @@ public double getFDouble() { private int pInt32_ = 0; /** * optional int32 p_int32 = 7; + * * @return Whether the pInt32 field is set. */ @java.lang.Override @@ -232,6 +263,7 @@ public boolean hasPInt32() { } /** * optional int32 p_int32 = 7; + * * @return The pInt32. */ @java.lang.Override @@ -243,6 +275,7 @@ public int getPInt32() { private long pInt64_ = 0L; /** * optional int64 p_int64 = 8; + * * @return Whether the pInt64 field is set. */ @java.lang.Override @@ -251,6 +284,7 @@ public boolean hasPInt64() { } /** * optional int64 p_int64 = 8; + * * @return The pInt64. */ @java.lang.Override @@ -262,6 +296,7 @@ public long getPInt64() { private double pDouble_ = 0D; /** * optional double p_double = 9; + * * @return Whether the pDouble field is set. */ @java.lang.Override @@ -270,6 +305,7 @@ public boolean hasPDouble() { } /** * optional double p_double = 9; + * * @return The pDouble. */ @java.lang.Override @@ -278,6 +314,7 @@ public double getPDouble() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +326,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -334,36 +370,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInfo()); } if (serverVerify_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, serverVerify_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, serverVerify_); } if (fInt32_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, fInt32_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, fInt32_); } if (fInt64_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, fInt64_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, fInt64_); } if (java.lang.Double.doubleToRawLongBits(fDouble_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(6, fDouble_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, fDouble_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, pInt32_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, pInt32_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, pInt64_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, pInt64_); } if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(9, pDouble_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(9, pDouble_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, intendedBindingUri_); @@ -376,49 +404,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.RepeatRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.RepeatRequest other = (com.google.showcase.v1beta1.RepeatRequest) obj; + com.google.showcase.v1beta1.RepeatRequest other = + (com.google.showcase.v1beta1.RepeatRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasInfo() != other.hasInfo()) return false; if (hasInfo()) { - if (!getInfo() - .equals(other.getInfo())) return false; + if (!getInfo().equals(other.getInfo())) return false; } - if (getServerVerify() - != other.getServerVerify()) return false; + if (getServerVerify() != other.getServerVerify()) return false; if (hasIntendedBindingUri() != other.hasIntendedBindingUri()) return false; if (hasIntendedBindingUri()) { - if (!getIntendedBindingUri() - .equals(other.getIntendedBindingUri())) return false; + if (!getIntendedBindingUri().equals(other.getIntendedBindingUri())) return false; } - if (getFInt32() - != other.getFInt32()) return false; - if (getFInt64() - != other.getFInt64()) return false; + if (getFInt32() != other.getFInt32()) return false; + if (getFInt64() != other.getFInt64()) return false; if (java.lang.Double.doubleToLongBits(getFDouble()) - != java.lang.Double.doubleToLongBits( - other.getFDouble())) return false; + != java.lang.Double.doubleToLongBits(other.getFDouble())) return false; if (hasPInt32() != other.hasPInt32()) return false; if (hasPInt32()) { - if (getPInt32() - != other.getPInt32()) return false; + if (getPInt32() != other.getPInt32()) return false; } if (hasPInt64() != other.hasPInt64()) return false; if (hasPInt64()) { - if (getPInt64() - != other.getPInt64()) return false; + if (getPInt64() != other.getPInt64()) return false; } if (hasPDouble() != other.hasPDouble()) return false; if (hasPDouble()) { if (java.lang.Double.doubleToLongBits(getPDouble()) - != java.lang.Double.doubleToLongBits( - other.getPDouble())) return false; + != java.lang.Double.doubleToLongBits(other.getPDouble())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -438,8 +457,7 @@ public int hashCode() { hash = (53 * hash) + getInfo().hashCode(); } hash = (37 * hash) + SERVER_VERIFY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getServerVerify()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServerVerify()); if (hasIntendedBindingUri()) { hash = (37 * hash) + INTENDED_BINDING_URI_FIELD_NUMBER; hash = (53 * hash) + getIntendedBindingUri().hashCode(); @@ -447,140 +465,145 @@ public int hashCode() { hash = (37 * hash) + F_INT32_FIELD_NUMBER; hash = (53 * hash) + getFInt32(); hash = (37 * hash) + F_INT64_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFInt64()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFInt64()); hash = (37 * hash) + F_DOUBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getFDouble())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFDouble())); if (hasPInt32()) { hash = (37 * hash) + P_INT32_FIELD_NUMBER; hash = (53 * hash) + getPInt32(); } if (hasPInt64()) { hash = (37 * hash) + P_INT64_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPInt64()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPInt64()); } if (hasPDouble()) { hash = (37 * hash) + P_DOUBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getPDouble())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPDouble())); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.showcase.v1beta1.RepeatRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.RepeatRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.RepeatRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.RepeatRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.RepeatRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.RepeatRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.RepeatRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.RepeatRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.RepeatRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.RepeatRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.RepeatRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.RepeatRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.RepeatRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.RepeatRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.RepeatRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.RepeatRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.RepeatRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.RepeatRequest) com.google.showcase.v1beta1.RepeatRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_RepeatRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatRequest_fieldAccessorTable + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_RepeatRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.RepeatRequest.class, com.google.showcase.v1beta1.RepeatRequest.Builder.class); + com.google.showcase.v1beta1.RepeatRequest.class, + com.google.showcase.v1beta1.RepeatRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.RepeatRequest.newBuilder() @@ -588,17 +611,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getInfoFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -621,9 +644,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_RepeatRequest_descriptor; } @java.lang.Override @@ -642,8 +665,11 @@ public com.google.showcase.v1beta1.RepeatRequest build() { @java.lang.Override public com.google.showcase.v1beta1.RepeatRequest buildPartial() { - com.google.showcase.v1beta1.RepeatRequest result = new com.google.showcase.v1beta1.RepeatRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.RepeatRequest result = + new com.google.showcase.v1beta1.RepeatRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -655,9 +681,7 @@ private void buildPartial0(com.google.showcase.v1beta1.RepeatRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.info_ = infoBuilder_ == null - ? info_ - : infoBuilder_.build(); + result.info_ = infoBuilder_ == null ? info_ : infoBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -695,38 +719,39 @@ private void buildPartial0(com.google.showcase.v1beta1.RepeatRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.RepeatRequest) { - return mergeFrom((com.google.showcase.v1beta1.RepeatRequest)other); + return mergeFrom((com.google.showcase.v1beta1.RepeatRequest) other); } else { super.mergeFrom(other); return this; @@ -795,64 +820,73 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - serverVerify_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - fInt32_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 40: { - fInt64_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 40 - case 49: { - fDouble_ = input.readDouble(); - bitField0_ |= 0x00000040; - break; - } // case 49 - case 56: { - pInt32_ = input.readInt32(); - bitField0_ |= 0x00000080; - break; - } // case 56 - case 64: { - pInt64_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 64 - case 73: { - pDouble_ = input.readDouble(); - bitField0_ |= 0x00000200; - break; - } // case 73 - case 82: { - intendedBindingUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + serverVerify_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + fInt32_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 40: + { + fInt64_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 49: + { + fDouble_ = input.readDouble(); + bitField0_ |= 0x00000040; + break; + } // case 49 + case 56: + { + pInt32_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 56 + case 64: + { + pInt64_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 64 + case 73: + { + pDouble_ = input.readDouble(); + bitField0_ |= 0x00000200; + break; + } // case 73 + case 82: + { + intendedBindingUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -862,18 +896,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -883,15 +918,14 @@ public java.lang.String getName() { } /** * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -900,12 +934,14 @@ public java.lang.String getName() { } /** * 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(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); @@ -913,6 +949,7 @@ public Builder setName( } /** * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -923,12 +960,14 @@ public Builder clearName() { } /** * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -938,9 +977,13 @@ public Builder setNameBytes( private com.google.showcase.v1beta1.ComplianceData info_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.ComplianceData, com.google.showcase.v1beta1.ComplianceData.Builder, com.google.showcase.v1beta1.ComplianceDataOrBuilder> infoBuilder_; + com.google.showcase.v1beta1.ComplianceData, + com.google.showcase.v1beta1.ComplianceData.Builder, + com.google.showcase.v1beta1.ComplianceDataOrBuilder> + infoBuilder_; /** * .google.showcase.v1beta1.ComplianceData info = 2; + * * @return Whether the info field is set. */ public boolean hasInfo() { @@ -948,18 +991,19 @@ public boolean hasInfo() { } /** * .google.showcase.v1beta1.ComplianceData info = 2; + * * @return The info. */ public com.google.showcase.v1beta1.ComplianceData getInfo() { if (infoBuilder_ == null) { - return info_ == null ? com.google.showcase.v1beta1.ComplianceData.getDefaultInstance() : info_; + return info_ == null + ? com.google.showcase.v1beta1.ComplianceData.getDefaultInstance() + : info_; } else { return infoBuilder_.getMessage(); } } - /** - * .google.showcase.v1beta1.ComplianceData info = 2; - */ + /** .google.showcase.v1beta1.ComplianceData info = 2; */ public Builder setInfo(com.google.showcase.v1beta1.ComplianceData value) { if (infoBuilder_ == null) { if (value == null) { @@ -973,11 +1017,8 @@ public Builder setInfo(com.google.showcase.v1beta1.ComplianceData value) { onChanged(); return this; } - /** - * .google.showcase.v1beta1.ComplianceData info = 2; - */ - public Builder setInfo( - com.google.showcase.v1beta1.ComplianceData.Builder builderForValue) { + /** .google.showcase.v1beta1.ComplianceData info = 2; */ + public Builder setInfo(com.google.showcase.v1beta1.ComplianceData.Builder builderForValue) { if (infoBuilder_ == null) { info_ = builderForValue.build(); } else { @@ -987,14 +1028,12 @@ public Builder setInfo( onChanged(); return this; } - /** - * .google.showcase.v1beta1.ComplianceData info = 2; - */ + /** .google.showcase.v1beta1.ComplianceData info = 2; */ public Builder mergeInfo(com.google.showcase.v1beta1.ComplianceData value) { if (infoBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - info_ != null && - info_ != com.google.showcase.v1beta1.ComplianceData.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && info_ != null + && info_ != com.google.showcase.v1beta1.ComplianceData.getDefaultInstance()) { getInfoBuilder().mergeFrom(value); } else { info_ = value; @@ -1008,9 +1047,7 @@ public Builder mergeInfo(com.google.showcase.v1beta1.ComplianceData value) { } return this; } - /** - * .google.showcase.v1beta1.ComplianceData info = 2; - */ + /** .google.showcase.v1beta1.ComplianceData info = 2; */ public Builder clearInfo() { bitField0_ = (bitField0_ & ~0x00000002); info_ = null; @@ -1021,50 +1058,51 @@ public Builder clearInfo() { onChanged(); return this; } - /** - * .google.showcase.v1beta1.ComplianceData info = 2; - */ + /** .google.showcase.v1beta1.ComplianceData info = 2; */ public com.google.showcase.v1beta1.ComplianceData.Builder getInfoBuilder() { bitField0_ |= 0x00000002; onChanged(); return getInfoFieldBuilder().getBuilder(); } - /** - * .google.showcase.v1beta1.ComplianceData info = 2; - */ + /** .google.showcase.v1beta1.ComplianceData info = 2; */ public com.google.showcase.v1beta1.ComplianceDataOrBuilder getInfoOrBuilder() { if (infoBuilder_ != null) { return infoBuilder_.getMessageOrBuilder(); } else { - return info_ == null ? - com.google.showcase.v1beta1.ComplianceData.getDefaultInstance() : info_; + return info_ == null + ? com.google.showcase.v1beta1.ComplianceData.getDefaultInstance() + : info_; } } - /** - * .google.showcase.v1beta1.ComplianceData info = 2; - */ + /** .google.showcase.v1beta1.ComplianceData info = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.ComplianceData, com.google.showcase.v1beta1.ComplianceData.Builder, com.google.showcase.v1beta1.ComplianceDataOrBuilder> + com.google.showcase.v1beta1.ComplianceData, + com.google.showcase.v1beta1.ComplianceData.Builder, + com.google.showcase.v1beta1.ComplianceDataOrBuilder> getInfoFieldBuilder() { if (infoBuilder_ == null) { - infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.ComplianceData, com.google.showcase.v1beta1.ComplianceData.Builder, com.google.showcase.v1beta1.ComplianceDataOrBuilder>( - getInfo(), - getParentForChildren(), - isClean()); + infoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ComplianceData, + com.google.showcase.v1beta1.ComplianceData.Builder, + com.google.showcase.v1beta1.ComplianceDataOrBuilder>( + getInfo(), getParentForChildren(), isClean()); info_ = null; } return infoBuilder_; } - private boolean serverVerify_ ; + private boolean serverVerify_; /** + * + * *
      * If true, the server will verify that the received request matches
      * the request with the same name in the compliance test suite.
      * 
* * bool server_verify = 3; + * * @return The serverVerify. */ @java.lang.Override @@ -1072,12 +1110,15 @@ public boolean getServerVerify() { return serverVerify_; } /** + * + * *
      * If true, the server will verify that the received request matches
      * the request with the same name in the compliance test suite.
      * 
* * bool server_verify = 3; + * * @param value The serverVerify to set. * @return This builder for chaining. */ @@ -1089,12 +1130,15 @@ public Builder setServerVerify(boolean value) { return this; } /** + * + * *
      * If true, the server will verify that the received request matches
      * the request with the same name in the compliance test suite.
      * 
* * bool server_verify = 3; + * * @return This builder for chaining. */ public Builder clearServerVerify() { @@ -1106,29 +1150,34 @@ public Builder clearServerVerify() { private java.lang.Object intendedBindingUri_ = ""; /** + * + * *
      * The URI template this request is expected to be bound to server-side.
      * 
* * optional string intended_binding_uri = 10; + * * @return Whether the intendedBindingUri field is set. */ public boolean hasIntendedBindingUri() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The URI template this request is expected to be bound to server-side.
      * 
* * optional string intended_binding_uri = 10; + * * @return The intendedBindingUri. */ public java.lang.String getIntendedBindingUri() { java.lang.Object ref = intendedBindingUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); intendedBindingUri_ = s; return s; @@ -1137,20 +1186,21 @@ public java.lang.String getIntendedBindingUri() { } } /** + * + * *
      * The URI template this request is expected to be bound to server-side.
      * 
* * optional string intended_binding_uri = 10; + * * @return The bytes for intendedBindingUri. */ - public com.google.protobuf.ByteString - getIntendedBindingUriBytes() { + public com.google.protobuf.ByteString getIntendedBindingUriBytes() { java.lang.Object ref = intendedBindingUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); intendedBindingUri_ = b; return b; } else { @@ -1158,28 +1208,35 @@ public java.lang.String getIntendedBindingUri() { } } /** + * + * *
      * The URI template this request is expected to be bound to server-side.
      * 
* * optional string intended_binding_uri = 10; + * * @param value The intendedBindingUri to set. * @return This builder for chaining. */ - public Builder setIntendedBindingUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIntendedBindingUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } intendedBindingUri_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The URI template this request is expected to be bound to server-side.
      * 
* * optional string intended_binding_uri = 10; + * * @return This builder for chaining. */ public Builder clearIntendedBindingUri() { @@ -1189,17 +1246,21 @@ public Builder clearIntendedBindingUri() { return this; } /** + * + * *
      * The URI template this request is expected to be bound to server-side.
      * 
* * optional string intended_binding_uri = 10; + * * @param value The bytes for intendedBindingUri to set. * @return This builder for chaining. */ - public Builder setIntendedBindingUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIntendedBindingUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); intendedBindingUri_ = value; bitField0_ |= 0x00000008; @@ -1207,14 +1268,17 @@ public Builder setIntendedBindingUriBytes( return this; } - private int fInt32_ ; + private int fInt32_; /** + * + * *
      * Some top level fields, to test that these are encoded correctly
      * in query params.
      * 
* * int32 f_int32 = 4; + * * @return The fInt32. */ @java.lang.Override @@ -1222,12 +1286,15 @@ public int getFInt32() { return fInt32_; } /** + * + * *
      * Some top level fields, to test that these are encoded correctly
      * in query params.
      * 
* * int32 f_int32 = 4; + * * @param value The fInt32 to set. * @return This builder for chaining. */ @@ -1239,12 +1306,15 @@ public Builder setFInt32(int value) { return this; } /** + * + * *
      * Some top level fields, to test that these are encoded correctly
      * in query params.
      * 
* * int32 f_int32 = 4; + * * @return This builder for chaining. */ public Builder clearFInt32() { @@ -1254,9 +1324,10 @@ public Builder clearFInt32() { return this; } - private long fInt64_ ; + private long fInt64_; /** * int64 f_int64 = 5; + * * @return The fInt64. */ @java.lang.Override @@ -1265,6 +1336,7 @@ public long getFInt64() { } /** * int64 f_int64 = 5; + * * @param value The fInt64 to set. * @return This builder for chaining. */ @@ -1277,6 +1349,7 @@ public Builder setFInt64(long value) { } /** * int64 f_int64 = 5; + * * @return This builder for chaining. */ public Builder clearFInt64() { @@ -1286,9 +1359,10 @@ public Builder clearFInt64() { return this; } - private double fDouble_ ; + private double fDouble_; /** * double f_double = 6; + * * @return The fDouble. */ @java.lang.Override @@ -1297,6 +1371,7 @@ public double getFDouble() { } /** * double f_double = 6; + * * @param value The fDouble to set. * @return This builder for chaining. */ @@ -1309,6 +1384,7 @@ public Builder setFDouble(double value) { } /** * double f_double = 6; + * * @return This builder for chaining. */ public Builder clearFDouble() { @@ -1318,9 +1394,10 @@ public Builder clearFDouble() { return this; } - private int pInt32_ ; + private int pInt32_; /** * optional int32 p_int32 = 7; + * * @return Whether the pInt32 field is set. */ @java.lang.Override @@ -1329,6 +1406,7 @@ public boolean hasPInt32() { } /** * optional int32 p_int32 = 7; + * * @return The pInt32. */ @java.lang.Override @@ -1337,6 +1415,7 @@ public int getPInt32() { } /** * optional int32 p_int32 = 7; + * * @param value The pInt32 to set. * @return This builder for chaining. */ @@ -1349,6 +1428,7 @@ public Builder setPInt32(int value) { } /** * optional int32 p_int32 = 7; + * * @return This builder for chaining. */ public Builder clearPInt32() { @@ -1358,9 +1438,10 @@ public Builder clearPInt32() { return this; } - private long pInt64_ ; + private long pInt64_; /** * optional int64 p_int64 = 8; + * * @return Whether the pInt64 field is set. */ @java.lang.Override @@ -1369,6 +1450,7 @@ public boolean hasPInt64() { } /** * optional int64 p_int64 = 8; + * * @return The pInt64. */ @java.lang.Override @@ -1377,6 +1459,7 @@ public long getPInt64() { } /** * optional int64 p_int64 = 8; + * * @param value The pInt64 to set. * @return This builder for chaining. */ @@ -1389,6 +1472,7 @@ public Builder setPInt64(long value) { } /** * optional int64 p_int64 = 8; + * * @return This builder for chaining. */ public Builder clearPInt64() { @@ -1398,9 +1482,10 @@ public Builder clearPInt64() { return this; } - private double pDouble_ ; + private double pDouble_; /** * optional double p_double = 9; + * * @return Whether the pDouble field is set. */ @java.lang.Override @@ -1409,6 +1494,7 @@ public boolean hasPDouble() { } /** * optional double p_double = 9; + * * @return The pDouble. */ @java.lang.Override @@ -1417,6 +1503,7 @@ public double getPDouble() { } /** * optional double p_double = 9; + * * @param value The pDouble to set. * @return This builder for chaining. */ @@ -1429,6 +1516,7 @@ public Builder setPDouble(double value) { } /** * optional double p_double = 9; + * * @return This builder for chaining. */ public Builder clearPDouble() { @@ -1437,9 +1525,9 @@ public Builder clearPDouble() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1449,12 +1537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.RepeatRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.RepeatRequest) private static final com.google.showcase.v1beta1.RepeatRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.RepeatRequest(); } @@ -1463,27 +1551,27 @@ public static com.google.showcase.v1beta1.RepeatRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RepeatRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1498,6 +1586,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.RepeatRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequestOrBuilder.java similarity index 75% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequestOrBuilder.java index 56765c0c22..0d8882330e 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatRequestOrBuilder.java @@ -1,132 +1,171 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/compliance.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface RepeatRequestOrBuilder extends +public interface RepeatRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.RepeatRequest) com.google.protobuf.MessageOrBuilder { /** * string name = 1; + * * @return The name. */ java.lang.String getName(); /** * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** * .google.showcase.v1beta1.ComplianceData info = 2; + * * @return Whether the info field is set. */ boolean hasInfo(); /** * .google.showcase.v1beta1.ComplianceData info = 2; + * * @return The info. */ com.google.showcase.v1beta1.ComplianceData getInfo(); - /** - * .google.showcase.v1beta1.ComplianceData info = 2; - */ + /** .google.showcase.v1beta1.ComplianceData info = 2; */ com.google.showcase.v1beta1.ComplianceDataOrBuilder getInfoOrBuilder(); /** + * + * *
    * If true, the server will verify that the received request matches
    * the request with the same name in the compliance test suite.
    * 
* * bool server_verify = 3; + * * @return The serverVerify. */ boolean getServerVerify(); /** + * + * *
    * The URI template this request is expected to be bound to server-side.
    * 
* * optional string intended_binding_uri = 10; + * * @return Whether the intendedBindingUri field is set. */ boolean hasIntendedBindingUri(); /** + * + * *
    * The URI template this request is expected to be bound to server-side.
    * 
* * optional string intended_binding_uri = 10; + * * @return The intendedBindingUri. */ java.lang.String getIntendedBindingUri(); /** + * + * *
    * The URI template this request is expected to be bound to server-side.
    * 
* * optional string intended_binding_uri = 10; + * * @return The bytes for intendedBindingUri. */ - com.google.protobuf.ByteString - getIntendedBindingUriBytes(); + com.google.protobuf.ByteString getIntendedBindingUriBytes(); /** + * + * *
    * Some top level fields, to test that these are encoded correctly
    * in query params.
    * 
* * int32 f_int32 = 4; + * * @return The fInt32. */ int getFInt32(); /** * int64 f_int64 = 5; + * * @return The fInt64. */ long getFInt64(); /** * double f_double = 6; + * * @return The fDouble. */ double getFDouble(); /** * optional int32 p_int32 = 7; + * * @return Whether the pInt32 field is set. */ boolean hasPInt32(); /** * optional int32 p_int32 = 7; + * * @return The pInt32. */ int getPInt32(); /** * optional int64 p_int64 = 8; + * * @return Whether the pInt64 field is set. */ boolean hasPInt64(); /** * optional int64 p_int64 = 8; + * * @return The pInt64. */ long getPInt64(); /** * optional double p_double = 9; + * * @return Whether the pDouble field is set. */ boolean hasPDouble(); /** * optional double p_double = 9; + * * @return The pDouble. */ double getPDouble(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponse.java similarity index 63% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponse.java index 466bf7a7d8..40c625dbfa 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponse.java @@ -1,43 +1,58 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/compliance.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -/** - * Protobuf type {@code google.showcase.v1beta1.RepeatResponse} - */ -public final class RepeatResponse extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.showcase.v1beta1.RepeatResponse} */ +public final class RepeatResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.RepeatResponse) RepeatResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RepeatResponse.newBuilder() to construct. private RepeatResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RepeatResponse() { bindingUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RepeatResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_RepeatResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatResponse_fieldAccessorTable + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_RepeatResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.RepeatResponse.class, com.google.showcase.v1beta1.RepeatResponse.Builder.class); + com.google.showcase.v1beta1.RepeatResponse.class, + com.google.showcase.v1beta1.RepeatResponse.Builder.class); } private int bitField0_; @@ -45,6 +60,7 @@ protected java.lang.Object newInstance( private com.google.showcase.v1beta1.RepeatRequest request_; /** * .google.showcase.v1beta1.RepeatRequest request = 1; + * * @return Whether the request field is set. */ @java.lang.Override @@ -53,29 +69,36 @@ public boolean hasRequest() { } /** * .google.showcase.v1beta1.RepeatRequest request = 1; + * * @return The request. */ @java.lang.Override public com.google.showcase.v1beta1.RepeatRequest getRequest() { - return request_ == null ? com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance() : request_; + return request_ == null + ? com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance() + : request_; } - /** - * .google.showcase.v1beta1.RepeatRequest request = 1; - */ + /** .google.showcase.v1beta1.RepeatRequest request = 1; */ @java.lang.Override public com.google.showcase.v1beta1.RepeatRequestOrBuilder getRequestOrBuilder() { - return request_ == null ? com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance() : request_; + return request_ == null + ? com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance() + : request_; } public static final int BINDING_URI_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object bindingUri_ = ""; /** + * + * *
    * The URI template the request was bound to server-side.
    * 
* * string binding_uri = 2; + * * @return The bindingUri. */ @java.lang.Override @@ -84,29 +107,29 @@ public java.lang.String getBindingUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bindingUri_ = s; return s; } } /** + * + * *
    * The URI template the request was bound to server-side.
    * 
* * string binding_uri = 2; + * * @return The bytes for bindingUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getBindingUriBytes() { + public com.google.protobuf.ByteString getBindingUriBytes() { java.lang.Object ref = bindingUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bindingUri_ = b; return b; } else { @@ -115,6 +138,7 @@ public java.lang.String getBindingUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,8 +150,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRequest()); } @@ -144,8 +167,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRequest()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRequest()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bindingUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bindingUri_); @@ -158,20 +180,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.RepeatResponse)) { return super.equals(obj); } - com.google.showcase.v1beta1.RepeatResponse other = (com.google.showcase.v1beta1.RepeatResponse) obj; + com.google.showcase.v1beta1.RepeatResponse other = + (com.google.showcase.v1beta1.RepeatResponse) obj; if (hasRequest() != other.hasRequest()) return false; if (hasRequest()) { - if (!getRequest() - .equals(other.getRequest())) return false; + if (!getRequest().equals(other.getRequest())) return false; } - if (!getBindingUri() - .equals(other.getBindingUri())) return false; + if (!getBindingUri().equals(other.getBindingUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -194,116 +215,119 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.RepeatResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.RepeatResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.RepeatResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.RepeatResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.RepeatResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.RepeatResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.RepeatResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.RepeatResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.RepeatResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.RepeatResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.RepeatResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.RepeatResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.RepeatResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.RepeatResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.RepeatResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.RepeatResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.RepeatResponse} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.RepeatResponse) com.google.showcase.v1beta1.RepeatResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_RepeatResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatResponse_fieldAccessorTable + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_RepeatResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.RepeatResponse.class, com.google.showcase.v1beta1.RepeatResponse.Builder.class); + com.google.showcase.v1beta1.RepeatResponse.class, + com.google.showcase.v1beta1.RepeatResponse.Builder.class); } // Construct using com.google.showcase.v1beta1.RepeatResponse.newBuilder() @@ -311,17 +335,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRequestFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -336,9 +360,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.ComplianceOuterClass.internal_static_google_showcase_v1beta1_RepeatResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.ComplianceOuterClass + .internal_static_google_showcase_v1beta1_RepeatResponse_descriptor; } @java.lang.Override @@ -357,8 +381,11 @@ public com.google.showcase.v1beta1.RepeatResponse build() { @java.lang.Override public com.google.showcase.v1beta1.RepeatResponse buildPartial() { - com.google.showcase.v1beta1.RepeatResponse result = new com.google.showcase.v1beta1.RepeatResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.RepeatResponse result = + new com.google.showcase.v1beta1.RepeatResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -367,9 +394,7 @@ private void buildPartial0(com.google.showcase.v1beta1.RepeatResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.request_ = requestBuilder_ == null - ? request_ - : requestBuilder_.build(); + result.request_ = requestBuilder_ == null ? request_ : requestBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -382,38 +407,39 @@ private void buildPartial0(com.google.showcase.v1beta1.RepeatResponse result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.RepeatResponse) { - return mergeFrom((com.google.showcase.v1beta1.RepeatResponse)other); + return mergeFrom((com.google.showcase.v1beta1.RepeatResponse) other); } else { super.mergeFrom(other); return this; @@ -456,24 +482,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getRequestFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - bindingUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getRequestFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + bindingUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -483,13 +510,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.showcase.v1beta1.RepeatRequest request_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatRequest.Builder, com.google.showcase.v1beta1.RepeatRequestOrBuilder> requestBuilder_; + com.google.showcase.v1beta1.RepeatRequest, + com.google.showcase.v1beta1.RepeatRequest.Builder, + com.google.showcase.v1beta1.RepeatRequestOrBuilder> + requestBuilder_; /** * .google.showcase.v1beta1.RepeatRequest request = 1; + * * @return Whether the request field is set. */ public boolean hasRequest() { @@ -497,18 +529,19 @@ public boolean hasRequest() { } /** * .google.showcase.v1beta1.RepeatRequest request = 1; + * * @return The request. */ public com.google.showcase.v1beta1.RepeatRequest getRequest() { if (requestBuilder_ == null) { - return request_ == null ? com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance() : request_; + return request_ == null + ? com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance() + : request_; } else { return requestBuilder_.getMessage(); } } - /** - * .google.showcase.v1beta1.RepeatRequest request = 1; - */ + /** .google.showcase.v1beta1.RepeatRequest request = 1; */ public Builder setRequest(com.google.showcase.v1beta1.RepeatRequest value) { if (requestBuilder_ == null) { if (value == null) { @@ -522,11 +555,8 @@ public Builder setRequest(com.google.showcase.v1beta1.RepeatRequest value) { onChanged(); return this; } - /** - * .google.showcase.v1beta1.RepeatRequest request = 1; - */ - public Builder setRequest( - com.google.showcase.v1beta1.RepeatRequest.Builder builderForValue) { + /** .google.showcase.v1beta1.RepeatRequest request = 1; */ + public Builder setRequest(com.google.showcase.v1beta1.RepeatRequest.Builder builderForValue) { if (requestBuilder_ == null) { request_ = builderForValue.build(); } else { @@ -536,14 +566,12 @@ public Builder setRequest( onChanged(); return this; } - /** - * .google.showcase.v1beta1.RepeatRequest request = 1; - */ + /** .google.showcase.v1beta1.RepeatRequest request = 1; */ public Builder mergeRequest(com.google.showcase.v1beta1.RepeatRequest value) { if (requestBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - request_ != null && - request_ != com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && request_ != null + && request_ != com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()) { getRequestBuilder().mergeFrom(value); } else { request_ = value; @@ -557,9 +585,7 @@ public Builder mergeRequest(com.google.showcase.v1beta1.RepeatRequest value) { } return this; } - /** - * .google.showcase.v1beta1.RepeatRequest request = 1; - */ + /** .google.showcase.v1beta1.RepeatRequest request = 1; */ public Builder clearRequest() { bitField0_ = (bitField0_ & ~0x00000001); request_ = null; @@ -570,37 +596,35 @@ public Builder clearRequest() { onChanged(); return this; } - /** - * .google.showcase.v1beta1.RepeatRequest request = 1; - */ + /** .google.showcase.v1beta1.RepeatRequest request = 1; */ public com.google.showcase.v1beta1.RepeatRequest.Builder getRequestBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRequestFieldBuilder().getBuilder(); } - /** - * .google.showcase.v1beta1.RepeatRequest request = 1; - */ + /** .google.showcase.v1beta1.RepeatRequest request = 1; */ public com.google.showcase.v1beta1.RepeatRequestOrBuilder getRequestOrBuilder() { if (requestBuilder_ != null) { return requestBuilder_.getMessageOrBuilder(); } else { - return request_ == null ? - com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance() : request_; + return request_ == null + ? com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance() + : request_; } } - /** - * .google.showcase.v1beta1.RepeatRequest request = 1; - */ + /** .google.showcase.v1beta1.RepeatRequest request = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatRequest.Builder, com.google.showcase.v1beta1.RepeatRequestOrBuilder> + com.google.showcase.v1beta1.RepeatRequest, + com.google.showcase.v1beta1.RepeatRequest.Builder, + com.google.showcase.v1beta1.RepeatRequestOrBuilder> getRequestFieldBuilder() { if (requestBuilder_ == null) { - requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatRequest.Builder, com.google.showcase.v1beta1.RepeatRequestOrBuilder>( - getRequest(), - getParentForChildren(), - isClean()); + requestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.RepeatRequest, + com.google.showcase.v1beta1.RepeatRequest.Builder, + com.google.showcase.v1beta1.RepeatRequestOrBuilder>( + getRequest(), getParentForChildren(), isClean()); request_ = null; } return requestBuilder_; @@ -608,18 +632,20 @@ public com.google.showcase.v1beta1.RepeatRequestOrBuilder getRequestOrBuilder() private java.lang.Object bindingUri_ = ""; /** + * + * *
      * The URI template the request was bound to server-side.
      * 
* * string binding_uri = 2; + * * @return The bindingUri. */ public java.lang.String getBindingUri() { java.lang.Object ref = bindingUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bindingUri_ = s; return s; @@ -628,20 +654,21 @@ public java.lang.String getBindingUri() { } } /** + * + * *
      * The URI template the request was bound to server-side.
      * 
* * string binding_uri = 2; + * * @return The bytes for bindingUri. */ - public com.google.protobuf.ByteString - getBindingUriBytes() { + public com.google.protobuf.ByteString getBindingUriBytes() { java.lang.Object ref = bindingUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bindingUri_ = b; return b; } else { @@ -649,28 +676,35 @@ public java.lang.String getBindingUri() { } } /** + * + * *
      * The URI template the request was bound to server-side.
      * 
* * string binding_uri = 2; + * * @param value The bindingUri to set. * @return This builder for chaining. */ - public Builder setBindingUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBindingUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } bindingUri_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The URI template the request was bound to server-side.
      * 
* * string binding_uri = 2; + * * @return This builder for chaining. */ public Builder clearBindingUri() { @@ -680,26 +714,30 @@ public Builder clearBindingUri() { return this; } /** + * + * *
      * The URI template the request was bound to server-side.
      * 
* * string binding_uri = 2; + * * @param value The bytes for bindingUri to set. * @return This builder for chaining. */ - public Builder setBindingUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBindingUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); bindingUri_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -709,12 +747,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.RepeatResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.RepeatResponse) private static final com.google.showcase.v1beta1.RepeatResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.RepeatResponse(); } @@ -723,27 +761,27 @@ public static com.google.showcase.v1beta1.RepeatResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RepeatResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -758,6 +796,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.RepeatResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponseOrBuilder.java similarity index 57% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponseOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponseOrBuilder.java index 10a5c2246c..f29cbabe35 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponseOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RepeatResponseOrBuilder.java @@ -1,45 +1,66 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/compliance.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface RepeatResponseOrBuilder extends +public interface RepeatResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.RepeatResponse) com.google.protobuf.MessageOrBuilder { /** * .google.showcase.v1beta1.RepeatRequest request = 1; + * * @return Whether the request field is set. */ boolean hasRequest(); /** * .google.showcase.v1beta1.RepeatRequest request = 1; + * * @return The request. */ com.google.showcase.v1beta1.RepeatRequest getRequest(); - /** - * .google.showcase.v1beta1.RepeatRequest request = 1; - */ + /** .google.showcase.v1beta1.RepeatRequest request = 1; */ com.google.showcase.v1beta1.RepeatRequestOrBuilder getRequestOrBuilder(); /** + * + * *
    * The URI template the request was bound to server-side.
    * 
* * string binding_uri = 2; + * * @return The bindingUri. */ java.lang.String getBindingUri(); /** + * + * *
    * The URI template the request was bound to server-side.
    * 
* * string binding_uri = 2; + * * @return The bytes for bindingUri. */ - com.google.protobuf.ByteString - getBindingUriBytes(); + com.google.protobuf.ByteString getBindingUriBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequest.java similarity index 65% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequest.java index fe3fac20b6..cafb9b0b3a 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto @@ -5,54 +20,62 @@ package com.google.showcase.v1beta1; /** + * + * *
  * Request message for reporting on a session.
  * 
* * Protobuf type {@code google.showcase.v1beta1.ReportSessionRequest} */ -public final class ReportSessionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReportSessionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ReportSessionRequest) ReportSessionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReportSessionRequest.newBuilder() to construct. private ReportSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReportSessionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReportSessionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ReportSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionRequest_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ReportSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ReportSessionRequest.class, com.google.showcase.v1beta1.ReportSessionRequest.Builder.class); + com.google.showcase.v1beta1.ReportSessionRequest.class, + com.google.showcase.v1beta1.ReportSessionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The session to be reported on.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -61,29 +84,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The session to be reported on.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -92,6 +115,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +127,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -128,15 +151,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.ReportSessionRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.ReportSessionRequest other = (com.google.showcase.v1beta1.ReportSessionRequest) obj; + com.google.showcase.v1beta1.ReportSessionRequest other = + (com.google.showcase.v1beta1.ReportSessionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,132 +178,136 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.ReportSessionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.ReportSessionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.ReportSessionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ReportSessionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.ReportSessionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for reporting on a session.
    * 
* * Protobuf type {@code google.showcase.v1beta1.ReportSessionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ReportSessionRequest) com.google.showcase.v1beta1.ReportSessionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ReportSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionRequest_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ReportSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ReportSessionRequest.class, com.google.showcase.v1beta1.ReportSessionRequest.Builder.class); + com.google.showcase.v1beta1.ReportSessionRequest.class, + com.google.showcase.v1beta1.ReportSessionRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.ReportSessionRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -290,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ReportSessionRequest_descriptor; } @java.lang.Override @@ -311,8 +338,11 @@ public com.google.showcase.v1beta1.ReportSessionRequest build() { @java.lang.Override public com.google.showcase.v1beta1.ReportSessionRequest buildPartial() { - com.google.showcase.v1beta1.ReportSessionRequest result = new com.google.showcase.v1beta1.ReportSessionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.ReportSessionRequest result = + new com.google.showcase.v1beta1.ReportSessionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -328,38 +358,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ReportSessionRequest resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ReportSessionRequest) { - return mergeFrom((com.google.showcase.v1beta1.ReportSessionRequest)other); + return mergeFrom((com.google.showcase.v1beta1.ReportSessionRequest) other); } else { super.mergeFrom(other); return this; @@ -367,7 +398,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.ReportSessionRequest other) { - if (other == com.google.showcase.v1beta1.ReportSessionRequest.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.ReportSessionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -399,17 +431,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -419,22 +453,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The session to be reported on.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -443,20 +480,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The session to be reported on.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -464,28 +502,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The session to be reported on.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The session to be reported on.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { @@ -495,26 +540,30 @@ public Builder clearName() { return this; } /** + * + * *
      * The session to be reported on.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -524,12 +573,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ReportSessionRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ReportSessionRequest) private static final com.google.showcase.v1beta1.ReportSessionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ReportSessionRequest(); } @@ -538,27 +587,27 @@ public static com.google.showcase.v1beta1.ReportSessionRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReportSessionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReportSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -573,6 +622,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.ReportSessionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequestOrBuilder.java new file mode 100644 index 0000000000..cdce2d7a68 --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequestOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface ReportSessionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ReportSessionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The session to be reported on.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The session to be reported on.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponse.java similarity index 70% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponse.java index eaf5e9ee27..739cda22e2 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto @@ -5,21 +20,24 @@ package com.google.showcase.v1beta1; /** + * + * *
  * Response message for reporting on a session.
  * 
* * Protobuf type {@code google.showcase.v1beta1.ReportSessionResponse} */ -public final class ReportSessionResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReportSessionResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ReportSessionResponse) ReportSessionResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReportSessionResponse.newBuilder() to construct. private ReportSessionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReportSessionResponse() { result_ = 0; testRuns_ = java.util.Collections.emptyList(); @@ -27,38 +45,40 @@ private ReportSessionResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReportSessionResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ReportSessionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionResponse_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ReportSessionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ReportSessionResponse.class, com.google.showcase.v1beta1.ReportSessionResponse.Builder.class); + com.google.showcase.v1beta1.ReportSessionResponse.class, + com.google.showcase.v1beta1.ReportSessionResponse.Builder.class); } /** + * + * *
    * The topline state of the report.
    * 
* * Protobuf enum {@code google.showcase.v1beta1.ReportSessionResponse.Result} */ - public enum Result - implements com.google.protobuf.ProtocolMessageEnum { - /** - * RESULT_UNSPECIFIED = 0; - */ + public enum Result implements com.google.protobuf.ProtocolMessageEnum { + /** RESULT_UNSPECIFIED = 0; */ RESULT_UNSPECIFIED(0), /** + * + * *
      * The session is complete, and everything passed.
      * 
@@ -67,6 +87,8 @@ public enum Result */ PASSED(1), /** + * + * *
      * The session had an explicit failure.
      * 
@@ -75,6 +97,8 @@ public enum Result */ FAILED(2), /** + * + * *
      * The session is incomplete. This is a failure response.
      * 
@@ -85,11 +109,11 @@ public enum Result UNRECOGNIZED(-1), ; - /** - * RESULT_UNSPECIFIED = 0; - */ + /** RESULT_UNSPECIFIED = 0; */ public static final int RESULT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The session is complete, and everything passed.
      * 
@@ -98,6 +122,8 @@ public enum Result */ public static final int PASSED_VALUE = 1; /** + * + * *
      * The session had an explicit failure.
      * 
@@ -106,6 +132,8 @@ public enum Result */ public static final int FAILED_VALUE = 2; /** + * + * *
      * The session is incomplete. This is a failure response.
      * 
@@ -114,7 +142,6 @@ public enum Result */ public static final int INCOMPLETE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -139,50 +166,53 @@ public static Result valueOf(int value) { */ public static Result forNumber(int value) { switch (value) { - case 0: return RESULT_UNSPECIFIED; - case 1: return PASSED; - case 2: return FAILED; - case 3: return INCOMPLETE; - default: return null; + case 0: + return RESULT_UNSPECIFIED; + case 1: + return PASSED; + case 2: + return FAILED; + case 3: + return INCOMPLETE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Result> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Result findValueByNumber(int number) { - return Result.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Result findValueByNumber(int number) { + return Result.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.showcase.v1beta1.ReportSessionResponse.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.showcase.v1beta1.ReportSessionResponse.getDescriptor() + .getEnumTypes() + .get(0); } private static final Result[] VALUES = values(); - public static Result valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Result valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -202,33 +232,47 @@ private Result(int value) { public static final int RESULT_FIELD_NUMBER = 1; private int result_ = 0; /** + * + * *
    * The state of the report.
    * 
* * .google.showcase.v1beta1.ReportSessionResponse.Result result = 1; + * * @return The enum numeric value on the wire for result. */ - @java.lang.Override public int getResultValue() { + @java.lang.Override + public int getResultValue() { return result_; } /** + * + * *
    * The state of the report.
    * 
* * .google.showcase.v1beta1.ReportSessionResponse.Result result = 1; + * * @return The result. */ - @java.lang.Override public com.google.showcase.v1beta1.ReportSessionResponse.Result getResult() { - com.google.showcase.v1beta1.ReportSessionResponse.Result result = com.google.showcase.v1beta1.ReportSessionResponse.Result.forNumber(result_); - return result == null ? com.google.showcase.v1beta1.ReportSessionResponse.Result.UNRECOGNIZED : result; + @java.lang.Override + public com.google.showcase.v1beta1.ReportSessionResponse.Result getResult() { + com.google.showcase.v1beta1.ReportSessionResponse.Result result = + com.google.showcase.v1beta1.ReportSessionResponse.Result.forNumber(result_); + return result == null + ? com.google.showcase.v1beta1.ReportSessionResponse.Result.UNRECOGNIZED + : result; } public static final int TEST_RUNS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List testRuns_; /** + * + * *
    * The test runs of this session.
    * 
@@ -240,6 +284,8 @@ public java.util.List getTestRunsList() { return testRuns_; } /** + * + * *
    * The test runs of this session.
    * 
@@ -247,11 +293,13 @@ public java.util.List getTestRunsList() { * repeated .google.showcase.v1beta1.TestRun test_runs = 2; */ @java.lang.Override - public java.util.List + public java.util.List getTestRunsOrBuilderList() { return testRuns_; } /** + * + * *
    * The test runs of this session.
    * 
@@ -263,6 +311,8 @@ public int getTestRunsCount() { return testRuns_.size(); } /** + * + * *
    * The test runs of this session.
    * 
@@ -274,6 +324,8 @@ public com.google.showcase.v1beta1.TestRun getTestRuns(int index) { return testRuns_.get(index); } /** + * + * *
    * The test runs of this session.
    * 
@@ -281,12 +333,12 @@ public com.google.showcase.v1beta1.TestRun getTestRuns(int index) { * repeated .google.showcase.v1beta1.TestRun test_runs = 2; */ @java.lang.Override - public com.google.showcase.v1beta1.TestRunOrBuilder getTestRunsOrBuilder( - int index) { + public com.google.showcase.v1beta1.TestRunOrBuilder getTestRunsOrBuilder(int index) { return testRuns_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -298,9 +350,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (result_ != com.google.showcase.v1beta1.ReportSessionResponse.Result.RESULT_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (result_ + != com.google.showcase.v1beta1.ReportSessionResponse.Result.RESULT_UNSPECIFIED + .getNumber()) { output.writeEnum(1, result_); } for (int i = 0; i < testRuns_.size(); i++) { @@ -315,13 +368,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (result_ != com.google.showcase.v1beta1.ReportSessionResponse.Result.RESULT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, result_); + if (result_ + != com.google.showcase.v1beta1.ReportSessionResponse.Result.RESULT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, result_); } for (int i = 0; i < testRuns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, testRuns_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, testRuns_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -331,16 +384,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.ReportSessionResponse)) { return super.equals(obj); } - com.google.showcase.v1beta1.ReportSessionResponse other = (com.google.showcase.v1beta1.ReportSessionResponse) obj; + com.google.showcase.v1beta1.ReportSessionResponse other = + (com.google.showcase.v1beta1.ReportSessionResponse) obj; if (result_ != other.result_) return false; - if (!getTestRunsList() - .equals(other.getTestRunsList())) return false; + if (!getTestRunsList().equals(other.getTestRunsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -364,131 +417,135 @@ public int hashCode() { } public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.ReportSessionResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.ReportSessionResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.ReportSessionResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.ReportSessionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.ReportSessionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for reporting on a session.
    * 
* * Protobuf type {@code google.showcase.v1beta1.ReportSessionResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ReportSessionResponse) com.google.showcase.v1beta1.ReportSessionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ReportSessionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionResponse_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ReportSessionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.ReportSessionResponse.class, com.google.showcase.v1beta1.ReportSessionResponse.Builder.class); + com.google.showcase.v1beta1.ReportSessionResponse.class, + com.google.showcase.v1beta1.ReportSessionResponse.Builder.class); } // Construct using com.google.showcase.v1beta1.ReportSessionResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -505,9 +562,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_ReportSessionResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_ReportSessionResponse_descriptor; } @java.lang.Override @@ -526,14 +583,18 @@ public com.google.showcase.v1beta1.ReportSessionResponse build() { @java.lang.Override public com.google.showcase.v1beta1.ReportSessionResponse buildPartial() { - com.google.showcase.v1beta1.ReportSessionResponse result = new com.google.showcase.v1beta1.ReportSessionResponse(this); + com.google.showcase.v1beta1.ReportSessionResponse result = + new com.google.showcase.v1beta1.ReportSessionResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.showcase.v1beta1.ReportSessionResponse result) { + private void buildPartialRepeatedFields( + com.google.showcase.v1beta1.ReportSessionResponse result) { if (testRunsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { testRuns_ = java.util.Collections.unmodifiableList(testRuns_); @@ -556,38 +617,39 @@ private void buildPartial0(com.google.showcase.v1beta1.ReportSessionResponse res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.ReportSessionResponse) { - return mergeFrom((com.google.showcase.v1beta1.ReportSessionResponse)other); + return mergeFrom((com.google.showcase.v1beta1.ReportSessionResponse) other); } else { super.mergeFrom(other); return this; @@ -595,7 +657,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.ReportSessionResponse other) { - if (other == com.google.showcase.v1beta1.ReportSessionResponse.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.ReportSessionResponse.getDefaultInstance()) + return this; if (other.result_ != 0) { setResultValue(other.getResultValue()); } @@ -617,9 +680,10 @@ public Builder mergeFrom(com.google.showcase.v1beta1.ReportSessionResponse other testRunsBuilder_ = null; testRuns_ = other.testRuns_; bitField0_ = (bitField0_ & ~0x00000002); - testRunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTestRunsFieldBuilder() : null; + testRunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTestRunsFieldBuilder() + : null; } else { testRunsBuilder_.addAllMessages(other.testRuns_); } @@ -651,30 +715,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - result_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - com.google.showcase.v1beta1.TestRun m = - input.readMessage( - com.google.showcase.v1beta1.TestRun.parser(), - extensionRegistry); - if (testRunsBuilder_ == null) { - ensureTestRunsIsMutable(); - testRuns_.add(m); - } else { - testRunsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + result_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.showcase.v1beta1.TestRun m = + input.readMessage( + com.google.showcase.v1beta1.TestRun.parser(), extensionRegistry); + if (testRunsBuilder_ == null) { + ensureTestRunsIsMutable(); + testRuns_.add(m); + } else { + testRunsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -684,26 +750,34 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int result_ = 0; /** + * + * *
      * The state of the report.
      * 
* * .google.showcase.v1beta1.ReportSessionResponse.Result result = 1; + * * @return The enum numeric value on the wire for result. */ - @java.lang.Override public int getResultValue() { + @java.lang.Override + public int getResultValue() { return result_; } /** + * + * *
      * The state of the report.
      * 
* * .google.showcase.v1beta1.ReportSessionResponse.Result result = 1; + * * @param value The enum numeric value on the wire for result to set. * @return This builder for chaining. */ @@ -714,24 +788,33 @@ public Builder setResultValue(int value) { return this; } /** + * + * *
      * The state of the report.
      * 
* * .google.showcase.v1beta1.ReportSessionResponse.Result result = 1; + * * @return The result. */ @java.lang.Override public com.google.showcase.v1beta1.ReportSessionResponse.Result getResult() { - com.google.showcase.v1beta1.ReportSessionResponse.Result result = com.google.showcase.v1beta1.ReportSessionResponse.Result.forNumber(result_); - return result == null ? com.google.showcase.v1beta1.ReportSessionResponse.Result.UNRECOGNIZED : result; + com.google.showcase.v1beta1.ReportSessionResponse.Result result = + com.google.showcase.v1beta1.ReportSessionResponse.Result.forNumber(result_); + return result == null + ? com.google.showcase.v1beta1.ReportSessionResponse.Result.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the report.
      * 
* * .google.showcase.v1beta1.ReportSessionResponse.Result result = 1; + * * @param value The result to set. * @return This builder for chaining. */ @@ -745,11 +828,14 @@ public Builder setResult(com.google.showcase.v1beta1.ReportSessionResponse.Resul return this; } /** + * + * *
      * The state of the report.
      * 
* * .google.showcase.v1beta1.ReportSessionResponse.Result result = 1; + * * @return This builder for chaining. */ public Builder clearResult() { @@ -760,18 +846,24 @@ public Builder clearResult() { } private java.util.List testRuns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTestRunsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { testRuns_ = new java.util.ArrayList(testRuns_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.TestRun, com.google.showcase.v1beta1.TestRun.Builder, com.google.showcase.v1beta1.TestRunOrBuilder> testRunsBuilder_; + com.google.showcase.v1beta1.TestRun, + com.google.showcase.v1beta1.TestRun.Builder, + com.google.showcase.v1beta1.TestRunOrBuilder> + testRunsBuilder_; /** + * + * *
      * The test runs of this session.
      * 
@@ -786,6 +878,8 @@ public java.util.List getTestRunsList() { } } /** + * + * *
      * The test runs of this session.
      * 
@@ -800,6 +894,8 @@ public int getTestRunsCount() { } } /** + * + * *
      * The test runs of this session.
      * 
@@ -814,14 +910,15 @@ public com.google.showcase.v1beta1.TestRun getTestRuns(int index) { } } /** + * + * *
      * The test runs of this session.
      * 
* * repeated .google.showcase.v1beta1.TestRun test_runs = 2; */ - public Builder setTestRuns( - int index, com.google.showcase.v1beta1.TestRun value) { + public Builder setTestRuns(int index, com.google.showcase.v1beta1.TestRun value) { if (testRunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -835,6 +932,8 @@ public Builder setTestRuns( return this; } /** + * + * *
      * The test runs of this session.
      * 
@@ -853,6 +952,8 @@ public Builder setTestRuns( return this; } /** + * + * *
      * The test runs of this session.
      * 
@@ -873,14 +974,15 @@ public Builder addTestRuns(com.google.showcase.v1beta1.TestRun value) { return this; } /** + * + * *
      * The test runs of this session.
      * 
* * repeated .google.showcase.v1beta1.TestRun test_runs = 2; */ - public Builder addTestRuns( - int index, com.google.showcase.v1beta1.TestRun value) { + public Builder addTestRuns(int index, com.google.showcase.v1beta1.TestRun value) { if (testRunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -894,14 +996,15 @@ public Builder addTestRuns( return this; } /** + * + * *
      * The test runs of this session.
      * 
* * repeated .google.showcase.v1beta1.TestRun test_runs = 2; */ - public Builder addTestRuns( - com.google.showcase.v1beta1.TestRun.Builder builderForValue) { + public Builder addTestRuns(com.google.showcase.v1beta1.TestRun.Builder builderForValue) { if (testRunsBuilder_ == null) { ensureTestRunsIsMutable(); testRuns_.add(builderForValue.build()); @@ -912,6 +1015,8 @@ public Builder addTestRuns( return this; } /** + * + * *
      * The test runs of this session.
      * 
@@ -930,6 +1035,8 @@ public Builder addTestRuns( return this; } /** + * + * *
      * The test runs of this session.
      * 
@@ -940,8 +1047,7 @@ public Builder addAllTestRuns( java.lang.Iterable values) { if (testRunsBuilder_ == null) { ensureTestRunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, testRuns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, testRuns_); onChanged(); } else { testRunsBuilder_.addAllMessages(values); @@ -949,6 +1055,8 @@ public Builder addAllTestRuns( return this; } /** + * + * *
      * The test runs of this session.
      * 
@@ -966,6 +1074,8 @@ public Builder clearTestRuns() { return this; } /** + * + * *
      * The test runs of this session.
      * 
@@ -983,39 +1093,44 @@ public Builder removeTestRuns(int index) { return this; } /** + * + * *
      * The test runs of this session.
      * 
* * repeated .google.showcase.v1beta1.TestRun test_runs = 2; */ - public com.google.showcase.v1beta1.TestRun.Builder getTestRunsBuilder( - int index) { + public com.google.showcase.v1beta1.TestRun.Builder getTestRunsBuilder(int index) { return getTestRunsFieldBuilder().getBuilder(index); } /** + * + * *
      * The test runs of this session.
      * 
* * repeated .google.showcase.v1beta1.TestRun test_runs = 2; */ - public com.google.showcase.v1beta1.TestRunOrBuilder getTestRunsOrBuilder( - int index) { + public com.google.showcase.v1beta1.TestRunOrBuilder getTestRunsOrBuilder(int index) { if (testRunsBuilder_ == null) { - return testRuns_.get(index); } else { + return testRuns_.get(index); + } else { return testRunsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The test runs of this session.
      * 
* * repeated .google.showcase.v1beta1.TestRun test_runs = 2; */ - public java.util.List - getTestRunsOrBuilderList() { + public java.util.List + getTestRunsOrBuilderList() { if (testRunsBuilder_ != null) { return testRunsBuilder_.getMessageOrBuilderList(); } else { @@ -1023,6 +1138,8 @@ public com.google.showcase.v1beta1.TestRunOrBuilder getTestRunsOrBuilder( } } /** + * + * *
      * The test runs of this session.
      * 
@@ -1030,49 +1147,54 @@ public com.google.showcase.v1beta1.TestRunOrBuilder getTestRunsOrBuilder( * repeated .google.showcase.v1beta1.TestRun test_runs = 2; */ public com.google.showcase.v1beta1.TestRun.Builder addTestRunsBuilder() { - return getTestRunsFieldBuilder().addBuilder( - com.google.showcase.v1beta1.TestRun.getDefaultInstance()); + return getTestRunsFieldBuilder() + .addBuilder(com.google.showcase.v1beta1.TestRun.getDefaultInstance()); } /** + * + * *
      * The test runs of this session.
      * 
* * repeated .google.showcase.v1beta1.TestRun test_runs = 2; */ - public com.google.showcase.v1beta1.TestRun.Builder addTestRunsBuilder( - int index) { - return getTestRunsFieldBuilder().addBuilder( - index, com.google.showcase.v1beta1.TestRun.getDefaultInstance()); + public com.google.showcase.v1beta1.TestRun.Builder addTestRunsBuilder(int index) { + return getTestRunsFieldBuilder() + .addBuilder(index, com.google.showcase.v1beta1.TestRun.getDefaultInstance()); } /** + * + * *
      * The test runs of this session.
      * 
* * repeated .google.showcase.v1beta1.TestRun test_runs = 2; */ - public java.util.List - getTestRunsBuilderList() { + public java.util.List getTestRunsBuilderList() { return getTestRunsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.TestRun, com.google.showcase.v1beta1.TestRun.Builder, com.google.showcase.v1beta1.TestRunOrBuilder> + com.google.showcase.v1beta1.TestRun, + com.google.showcase.v1beta1.TestRun.Builder, + com.google.showcase.v1beta1.TestRunOrBuilder> getTestRunsFieldBuilder() { if (testRunsBuilder_ == null) { - testRunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.TestRun, com.google.showcase.v1beta1.TestRun.Builder, com.google.showcase.v1beta1.TestRunOrBuilder>( - testRuns_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + testRunsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.TestRun, + com.google.showcase.v1beta1.TestRun.Builder, + com.google.showcase.v1beta1.TestRunOrBuilder>( + testRuns_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); testRuns_ = null; } return testRunsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1082,12 +1204,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ReportSessionResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ReportSessionResponse) private static final com.google.showcase.v1beta1.ReportSessionResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ReportSessionResponse(); } @@ -1096,27 +1218,27 @@ public static com.google.showcase.v1beta1.ReportSessionResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReportSessionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReportSessionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1131,6 +1253,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.ReportSessionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponseOrBuilder.java similarity index 67% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponseOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponseOrBuilder.java index 128337227f..ed98555e81 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponseOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionResponseOrBuilder.java @@ -1,42 +1,67 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface ReportSessionResponseOrBuilder extends +public interface ReportSessionResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ReportSessionResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The state of the report.
    * 
* * .google.showcase.v1beta1.ReportSessionResponse.Result result = 1; + * * @return The enum numeric value on the wire for result. */ int getResultValue(); /** + * + * *
    * The state of the report.
    * 
* * .google.showcase.v1beta1.ReportSessionResponse.Result result = 1; + * * @return The result. */ com.google.showcase.v1beta1.ReportSessionResponse.Result getResult(); /** + * + * *
    * The test runs of this session.
    * 
* * repeated .google.showcase.v1beta1.TestRun test_runs = 2; */ - java.util.List - getTestRunsList(); + java.util.List getTestRunsList(); /** + * + * *
    * The test runs of this session.
    * 
@@ -45,6 +70,8 @@ public interface ReportSessionResponseOrBuilder extends */ com.google.showcase.v1beta1.TestRun getTestRuns(int index); /** + * + * *
    * The test runs of this session.
    * 
@@ -53,21 +80,23 @@ public interface ReportSessionResponseOrBuilder extends */ int getTestRunsCount(); /** + * + * *
    * The test runs of this session.
    * 
* * repeated .google.showcase.v1beta1.TestRun test_runs = 2; */ - java.util.List - getTestRunsOrBuilderList(); + java.util.List getTestRunsOrBuilderList(); /** + * + * *
    * The test runs of this session.
    * 
* * repeated .google.showcase.v1beta1.TestRun test_runs = 2; */ - com.google.showcase.v1beta1.TestRunOrBuilder getTestRunsOrBuilder( - int index); + com.google.showcase.v1beta1.TestRunOrBuilder getTestRunsOrBuilder(int index); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Room.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Room.java similarity index 66% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Room.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Room.java index 97314c3671..a756ee6966 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Room.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Room.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,21 +20,24 @@ package com.google.showcase.v1beta1; /** + * + * *
  * A chat room.
  * 
* * Protobuf type {@code google.showcase.v1beta1.Room} */ -public final class Room extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Room extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.Room) RoomOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Room.newBuilder() to construct. private Room(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Room() { name_ = ""; displayName_ = ""; @@ -28,34 +46,38 @@ private Room() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Room(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Room_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass + .internal_static_google_showcase_v1beta1_Room_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Room_fieldAccessorTable + return com.google.showcase.v1beta1.MessagingOuterClass + .internal_static_google_showcase_v1beta1_Room_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.showcase.v1beta1.Room.class, com.google.showcase.v1beta1.Room.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the chat room.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -64,29 +86,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the chat room.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,14 +117,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * The human readable name of the chat room.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -111,29 +137,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * The human readable name of the chat room.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -142,14 +168,18 @@ public java.lang.String getDisplayName() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * The description of the chat room.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -158,29 +188,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * The description of the chat room.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -191,11 +221,15 @@ public java.lang.String getDescription() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The timestamp at which the room was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -203,11 +237,15 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The timestamp at which the room was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -215,11 +253,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The timestamp at which the room was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -229,11 +270,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The latest timestamp at which the room was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -241,11 +286,15 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * The latest timestamp at which the room was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -253,11 +302,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The latest timestamp at which the room was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -265,6 +317,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,8 +329,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -312,12 +364,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -327,28 +377,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.Room)) { return super.equals(obj); } com.google.showcase.v1beta1.Room other = (com.google.showcase.v1beta1.Room) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -380,120 +425,126 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.Room parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.Room parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Room parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.Room parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.showcase.v1beta1.Room parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Room parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.Room parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Room parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.Room parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.Room parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.showcase.v1beta1.Room parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.Room parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.Room parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.Room parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.Room prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A chat room.
    * 
* * Protobuf type {@code google.showcase.v1beta1.Room} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.Room) com.google.showcase.v1beta1.RoomOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Room_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.MessagingOuterClass + .internal_static_google_showcase_v1beta1_Room_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Room_fieldAccessorTable + return com.google.showcase.v1beta1.MessagingOuterClass + .internal_static_google_showcase_v1beta1_Room_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.Room.class, com.google.showcase.v1beta1.Room.Builder.class); + com.google.showcase.v1beta1.Room.class, + com.google.showcase.v1beta1.Room.Builder.class); } // Construct using com.google.showcase.v1beta1.Room.newBuilder() @@ -501,18 +552,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -534,9 +585,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_Room_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.MessagingOuterClass + .internal_static_google_showcase_v1beta1_Room_descriptor; } @java.lang.Override @@ -556,7 +607,9 @@ public com.google.showcase.v1beta1.Room build() { @java.lang.Override public com.google.showcase.v1beta1.Room buildPartial() { com.google.showcase.v1beta1.Room result = new com.google.showcase.v1beta1.Room(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -574,15 +627,11 @@ private void buildPartial0(com.google.showcase.v1beta1.Room result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -592,38 +641,39 @@ private void buildPartial0(com.google.showcase.v1beta1.Room result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.Room) { - return mergeFrom((com.google.showcase.v1beta1.Room)other); + return mergeFrom((com.google.showcase.v1beta1.Room) other); } else { super.mergeFrom(other); return this; @@ -679,41 +729,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -723,22 +775,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the chat room.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -747,20 +802,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the chat room.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -768,28 +824,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the chat room.
      * 
* * 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(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the chat room.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -799,17 +862,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the chat room.
      * 
* * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -819,18 +886,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The human readable name of the chat room.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -839,20 +908,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The human readable name of the chat room.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -860,28 +930,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The human readable name of the chat room.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The human readable name of the chat room.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -891,17 +968,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * The human readable name of the chat room.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -911,18 +992,20 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * The description of the chat room.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -931,20 +1014,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the chat room.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -952,28 +1036,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the chat room.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The description of the chat room.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -983,17 +1074,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * The description of the chat room.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000004; @@ -1003,39 +1098,58 @@ public Builder setDescriptionBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The timestamp at which the room was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The timestamp at which the room was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The timestamp at which the room was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1051,14 +1165,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The timestamp at which the room was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1069,17 +1186,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The timestamp at which the room was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1094,11 +1215,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The timestamp at which the room was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1111,11 +1236,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The timestamp at which the room was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000008; @@ -1123,36 +1252,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The timestamp at which the room was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The timestamp at which the room was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1160,39 +1301,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * The latest timestamp at which the room was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * The latest timestamp at which the room was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * The latest timestamp at which the room was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1208,14 +1368,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The latest timestamp at which the room was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1226,17 +1389,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The latest timestamp at which the room was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1251,11 +1418,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The latest timestamp at which the room was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1268,11 +1439,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The latest timestamp at which the room was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000010; @@ -1280,43 +1455,55 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The latest timestamp at which the room was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The latest timestamp at which the room was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1326,12 +1513,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.Room) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.Room) private static final com.google.showcase.v1beta1.Room DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.Room(); } @@ -1340,27 +1527,27 @@ public static com.google.showcase.v1beta1.Room getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Room parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Room parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1375,6 +1562,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.Room getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java similarity index 100% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomOrBuilder.java similarity index 69% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomOrBuilder.java index 6c919700ff..6ad1dc0bcb 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomOrBuilder.java @@ -1,124 +1,177 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface RoomOrBuilder extends +public interface RoomOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.Room) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the chat room.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the chat room.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The human readable name of the chat room.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The human readable name of the chat room.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The description of the chat room.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * The description of the chat room.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * The timestamp at which the room was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The timestamp at which the room was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The timestamp at which the room was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The latest timestamp at which the room was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The latest timestamp at which the room was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The latest timestamp at which the room was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadata.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadata.java similarity index 67% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadata.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadata.java index 9da025d8ab..7917e15acb 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadata.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadata.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The operation metadata message for the
  * google.showcase.v1beta1.Messaging\SearchBlurbs method.
@@ -12,47 +29,51 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.SearchBlurbsMetadata}
  */
-public final class SearchBlurbsMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SearchBlurbsMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.SearchBlurbsMetadata)
     SearchBlurbsMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SearchBlurbsMetadata.newBuilder() to construct.
   private SearchBlurbsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private SearchBlurbsMetadata() {
-  }
+
+  private SearchBlurbsMetadata() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SearchBlurbsMetadata();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.SearchBlurbsMetadata.class, com.google.showcase.v1beta1.SearchBlurbsMetadata.Builder.class);
+            com.google.showcase.v1beta1.SearchBlurbsMetadata.class,
+            com.google.showcase.v1beta1.SearchBlurbsMetadata.Builder.class);
   }
 
   private int bitField0_;
   public static final int RETRY_INFO_FIELD_NUMBER = 1;
   private com.google.rpc.RetryInfo retryInfo_;
   /**
+   *
+   *
    * 
    * This signals to the client when to next poll for response.
    * 
* * .google.rpc.RetryInfo retry_info = 1; + * * @return Whether the retryInfo field is set. */ @java.lang.Override @@ -60,11 +81,14 @@ public boolean hasRetryInfo() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * This signals to the client when to next poll for response.
    * 
* * .google.rpc.RetryInfo retry_info = 1; + * * @return The retryInfo. */ @java.lang.Override @@ -72,6 +96,8 @@ public com.google.rpc.RetryInfo getRetryInfo() { return retryInfo_ == null ? com.google.rpc.RetryInfo.getDefaultInstance() : retryInfo_; } /** + * + * *
    * This signals to the client when to next poll for response.
    * 
@@ -84,6 +110,7 @@ public com.google.rpc.RetryInfoOrBuilder getRetryInfoOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -95,8 +122,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRetryInfo()); } @@ -110,8 +136,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRetryInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRetryInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -121,17 +146,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.SearchBlurbsMetadata)) { return super.equals(obj); } - com.google.showcase.v1beta1.SearchBlurbsMetadata other = (com.google.showcase.v1beta1.SearchBlurbsMetadata) obj; + com.google.showcase.v1beta1.SearchBlurbsMetadata other = + (com.google.showcase.v1beta1.SearchBlurbsMetadata) obj; if (hasRetryInfo() != other.hasRetryInfo()) return false; if (hasRetryInfo()) { - if (!getRetryInfo() - .equals(other.getRetryInfo())) return false; + if (!getRetryInfo().equals(other.getRetryInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -153,99 +178,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.SearchBlurbsMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.SearchBlurbsMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The operation metadata message for the
    * google.showcase.v1beta1.Messaging\SearchBlurbs method.
@@ -253,21 +283,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.SearchBlurbsMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.SearchBlurbsMetadata)
       com.google.showcase.v1beta1.SearchBlurbsMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.SearchBlurbsMetadata.class, com.google.showcase.v1beta1.SearchBlurbsMetadata.Builder.class);
+              com.google.showcase.v1beta1.SearchBlurbsMetadata.class,
+              com.google.showcase.v1beta1.SearchBlurbsMetadata.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.SearchBlurbsMetadata.newBuilder()
@@ -275,17 +307,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getRetryInfoFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -299,9 +331,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -320,8 +352,11 @@ public com.google.showcase.v1beta1.SearchBlurbsMetadata build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.SearchBlurbsMetadata buildPartial() {
-      com.google.showcase.v1beta1.SearchBlurbsMetadata result = new com.google.showcase.v1beta1.SearchBlurbsMetadata(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.SearchBlurbsMetadata result =
+          new com.google.showcase.v1beta1.SearchBlurbsMetadata(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -330,9 +365,7 @@ private void buildPartial0(com.google.showcase.v1beta1.SearchBlurbsMetadata resu
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.retryInfo_ = retryInfoBuilder_ == null
-            ? retryInfo_
-            : retryInfoBuilder_.build();
+        result.retryInfo_ = retryInfoBuilder_ == null ? retryInfo_ : retryInfoBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
@@ -342,38 +375,39 @@ private void buildPartial0(com.google.showcase.v1beta1.SearchBlurbsMetadata resu
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.SearchBlurbsMetadata) {
-        return mergeFrom((com.google.showcase.v1beta1.SearchBlurbsMetadata)other);
+        return mergeFrom((com.google.showcase.v1beta1.SearchBlurbsMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -381,7 +415,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.showcase.v1beta1.SearchBlurbsMetadata other) {
-      if (other == com.google.showcase.v1beta1.SearchBlurbsMetadata.getDefaultInstance()) return this;
+      if (other == com.google.showcase.v1beta1.SearchBlurbsMetadata.getDefaultInstance())
+        return this;
       if (other.hasRetryInfo()) {
         mergeRetryInfo(other.getRetryInfo());
       }
@@ -411,19 +446,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getRetryInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getRetryInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -433,28 +468,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.rpc.RetryInfo retryInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.RetryInfo, com.google.rpc.RetryInfo.Builder, com.google.rpc.RetryInfoOrBuilder> retryInfoBuilder_;
+            com.google.rpc.RetryInfo,
+            com.google.rpc.RetryInfo.Builder,
+            com.google.rpc.RetryInfoOrBuilder>
+        retryInfoBuilder_;
     /**
+     *
+     *
      * 
      * This signals to the client when to next poll for response.
      * 
* * .google.rpc.RetryInfo retry_info = 1; + * * @return Whether the retryInfo field is set. */ public boolean hasRetryInfo() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * This signals to the client when to next poll for response.
      * 
* * .google.rpc.RetryInfo retry_info = 1; + * * @return The retryInfo. */ public com.google.rpc.RetryInfo getRetryInfo() { @@ -465,6 +510,8 @@ public com.google.rpc.RetryInfo getRetryInfo() { } } /** + * + * *
      * This signals to the client when to next poll for response.
      * 
@@ -485,14 +532,15 @@ public Builder setRetryInfo(com.google.rpc.RetryInfo value) { return this; } /** + * + * *
      * This signals to the client when to next poll for response.
      * 
* * .google.rpc.RetryInfo retry_info = 1; */ - public Builder setRetryInfo( - com.google.rpc.RetryInfo.Builder builderForValue) { + public Builder setRetryInfo(com.google.rpc.RetryInfo.Builder builderForValue) { if (retryInfoBuilder_ == null) { retryInfo_ = builderForValue.build(); } else { @@ -503,6 +551,8 @@ public Builder setRetryInfo( return this; } /** + * + * *
      * This signals to the client when to next poll for response.
      * 
@@ -511,9 +561,9 @@ public Builder setRetryInfo( */ public Builder mergeRetryInfo(com.google.rpc.RetryInfo value) { if (retryInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - retryInfo_ != null && - retryInfo_ != com.google.rpc.RetryInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && retryInfo_ != null + && retryInfo_ != com.google.rpc.RetryInfo.getDefaultInstance()) { getRetryInfoBuilder().mergeFrom(value); } else { retryInfo_ = value; @@ -528,6 +578,8 @@ public Builder mergeRetryInfo(com.google.rpc.RetryInfo value) { return this; } /** + * + * *
      * This signals to the client when to next poll for response.
      * 
@@ -545,6 +597,8 @@ public Builder clearRetryInfo() { return this; } /** + * + * *
      * This signals to the client when to next poll for response.
      * 
@@ -557,6 +611,8 @@ public com.google.rpc.RetryInfo.Builder getRetryInfoBuilder() { return getRetryInfoFieldBuilder().getBuilder(); } /** + * + * *
      * This signals to the client when to next poll for response.
      * 
@@ -567,11 +623,12 @@ public com.google.rpc.RetryInfoOrBuilder getRetryInfoOrBuilder() { if (retryInfoBuilder_ != null) { return retryInfoBuilder_.getMessageOrBuilder(); } else { - return retryInfo_ == null ? - com.google.rpc.RetryInfo.getDefaultInstance() : retryInfo_; + return retryInfo_ == null ? com.google.rpc.RetryInfo.getDefaultInstance() : retryInfo_; } } /** + * + * *
      * This signals to the client when to next poll for response.
      * 
@@ -579,21 +636,24 @@ public com.google.rpc.RetryInfoOrBuilder getRetryInfoOrBuilder() { * .google.rpc.RetryInfo retry_info = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.RetryInfo, com.google.rpc.RetryInfo.Builder, com.google.rpc.RetryInfoOrBuilder> + com.google.rpc.RetryInfo, + com.google.rpc.RetryInfo.Builder, + com.google.rpc.RetryInfoOrBuilder> getRetryInfoFieldBuilder() { if (retryInfoBuilder_ == null) { - retryInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.RetryInfo, com.google.rpc.RetryInfo.Builder, com.google.rpc.RetryInfoOrBuilder>( - getRetryInfo(), - getParentForChildren(), - isClean()); + retryInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.RetryInfo, + com.google.rpc.RetryInfo.Builder, + com.google.rpc.RetryInfoOrBuilder>( + getRetryInfo(), getParentForChildren(), isClean()); retryInfo_ = null; } return retryInfoBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -603,12 +663,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.SearchBlurbsMetadata) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.SearchBlurbsMetadata) private static final com.google.showcase.v1beta1.SearchBlurbsMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.SearchBlurbsMetadata(); } @@ -617,27 +677,27 @@ public static com.google.showcase.v1beta1.SearchBlurbsMetadata getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchBlurbsMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchBlurbsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -652,6 +712,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.SearchBlurbsMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadataOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadataOrBuilder.java similarity index 59% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadataOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadataOrBuilder.java index 22cef9a123..645e98f497 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadataOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsMetadataOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface SearchBlurbsMetadataOrBuilder extends +public interface SearchBlurbsMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.SearchBlurbsMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * This signals to the client when to next poll for response.
    * 
* * .google.rpc.RetryInfo retry_info = 1; + * * @return Whether the retryInfo field is set. */ boolean hasRetryInfo(); /** + * + * *
    * This signals to the client when to next poll for response.
    * 
* * .google.rpc.RetryInfo retry_info = 1; + * * @return The retryInfo. */ com.google.rpc.RetryInfo getRetryInfo(); /** + * + * *
    * This signals to the client when to next poll for response.
    * 
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequest.java similarity index 72% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequest.java index 6694f502de..90c1fc59a4 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request message for the google.showcase.v1beta1.Messaging\SearchBlurbs
  * method.
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.SearchBlurbsRequest}
  */
-public final class SearchBlurbsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SearchBlurbsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.SearchBlurbsRequest)
     SearchBlurbsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SearchBlurbsRequest.newBuilder() to construct.
   private SearchBlurbsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SearchBlurbsRequest() {
     query_ = "";
     parent_ = "";
@@ -29,34 +47,39 @@ private SearchBlurbsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SearchBlurbsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_SearchBlurbsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.SearchBlurbsRequest.class, com.google.showcase.v1beta1.SearchBlurbsRequest.Builder.class);
+            com.google.showcase.v1beta1.SearchBlurbsRequest.class,
+            com.google.showcase.v1beta1.SearchBlurbsRequest.Builder.class);
   }
 
   public static final int QUERY_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object query_ = "";
   /**
+   *
+   *
    * 
    * The query used to search for blurbs containing to words of this string.
    * Only posts that contain an exact match of a queried word will be returned.
    * 
* * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The query. */ @java.lang.Override @@ -65,30 +88,30 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** + * + * *
    * The query used to search for blurbs containing to words of this string.
    * Only posts that contain an exact match of a queried word will be returned.
    * 
* * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -97,15 +120,19 @@ public java.lang.String getQuery() { } public static final int PARENT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * The rooms or profiles to search. If unset, `SearchBlurbs` will search all
    * rooms and all profiles.
    * 
* * string parent = 2 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ @java.lang.Override @@ -114,30 +141,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * The rooms or profiles to search. If unset, `SearchBlurbs` will search all
    * rooms and all profiles.
    * 
* * string parent = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -148,6 +175,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * The maximum number of blurbs return. Server may return fewer
    * blurbs than requested. If unspecified, server will pick an appropriate
@@ -155,6 +184,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -163,9 +193,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The value of
    * google.showcase.v1beta1.SearchBlurbsResponse.next_page_token
@@ -174,6 +207,7 @@ public int getPageSize() {
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -182,14 +216,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value of
    * google.showcase.v1beta1.SearchBlurbsResponse.next_page_token
@@ -198,16 +233,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -216,6 +250,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } @@ -257,8 +291,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -271,21 +304,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.SearchBlurbsRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.SearchBlurbsRequest other = (com.google.showcase.v1beta1.SearchBlurbsRequest) obj; - - if (!getQuery() - .equals(other.getQuery())) return false; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.showcase.v1beta1.SearchBlurbsRequest other = + (com.google.showcase.v1beta1.SearchBlurbsRequest) obj; + + if (!getQuery().equals(other.getQuery())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -310,99 +340,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.SearchBlurbsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.SearchBlurbsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.SearchBlurbsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.SearchBlurbsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for the google.showcase.v1beta1.Messaging\SearchBlurbs
    * method.
@@ -410,33 +445,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.SearchBlurbsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.SearchBlurbsRequest)
       com.google.showcase.v1beta1.SearchBlurbsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_SearchBlurbsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.SearchBlurbsRequest.class, com.google.showcase.v1beta1.SearchBlurbsRequest.Builder.class);
+              com.google.showcase.v1beta1.SearchBlurbsRequest.class,
+              com.google.showcase.v1beta1.SearchBlurbsRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.SearchBlurbsRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -449,9 +483,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -470,8 +504,11 @@ public com.google.showcase.v1beta1.SearchBlurbsRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.SearchBlurbsRequest buildPartial() {
-      com.google.showcase.v1beta1.SearchBlurbsRequest result = new com.google.showcase.v1beta1.SearchBlurbsRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.SearchBlurbsRequest result =
+          new com.google.showcase.v1beta1.SearchBlurbsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -496,38 +533,39 @@ private void buildPartial0(com.google.showcase.v1beta1.SearchBlurbsRequest resul
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.SearchBlurbsRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.SearchBlurbsRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.SearchBlurbsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -535,7 +573,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.showcase.v1beta1.SearchBlurbsRequest other) {
-      if (other == com.google.showcase.v1beta1.SearchBlurbsRequest.getDefaultInstance()) return this;
+      if (other == com.google.showcase.v1beta1.SearchBlurbsRequest.getDefaultInstance())
+        return this;
       if (!other.getQuery().isEmpty()) {
         query_ = other.query_;
         bitField0_ |= 0x00000001;
@@ -580,32 +619,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              query_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 24: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 34: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                query_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 24:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 34:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -615,23 +659,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object query_ = "";
     /**
+     *
+     *
      * 
      * The query used to search for blurbs containing to words of this string.
      * Only posts that contain an exact match of a queried word will be returned.
      * 
* * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -640,21 +687,22 @@ public java.lang.String getQuery() { } } /** + * + * *
      * The query used to search for blurbs containing to words of this string.
      * Only posts that contain an exact match of a queried word will be returned.
      * 
* * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for query. */ - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -662,30 +710,37 @@ public java.lang.String getQuery() { } } /** + * + * *
      * The query used to search for blurbs containing to words of this string.
      * Only posts that contain an exact match of a queried word will be returned.
      * 
* * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } query_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The query used to search for blurbs containing to words of this string.
      * Only posts that contain an exact match of a queried word will be returned.
      * 
* * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearQuery() { @@ -695,18 +750,22 @@ public Builder clearQuery() { return this; } /** + * + * *
      * The query used to search for blurbs containing to words of this string.
      * Only posts that contain an exact match of a queried word will be returned.
      * 
* * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); query_ = value; bitField0_ |= 0x00000001; @@ -716,19 +775,21 @@ public Builder setQueryBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * The rooms or profiles to search. If unset, `SearchBlurbs` will search all
      * rooms and all profiles.
      * 
* * string parent = 2 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -737,21 +798,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * The rooms or profiles to search. If unset, `SearchBlurbs` will search all
      * rooms and all profiles.
      * 
* * string parent = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -759,30 +821,37 @@ public java.lang.String getParent() { } } /** + * + * *
      * The rooms or profiles to search. If unset, `SearchBlurbs` will search all
      * rooms and all profiles.
      * 
* * string parent = 2 [(.google.api.resource_reference) = { ... } + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The rooms or profiles to search. If unset, `SearchBlurbs` will search all
      * rooms and all profiles.
      * 
* * string parent = 2 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearParent() { @@ -792,18 +861,22 @@ public Builder clearParent() { return this; } /** + * + * *
      * The rooms or profiles to search. If unset, `SearchBlurbs` will search all
      * rooms and all profiles.
      * 
* * string parent = 2 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000002; @@ -811,8 +884,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of blurbs return. Server may return fewer
      * blurbs than requested. If unspecified, server will pick an appropriate
@@ -820,6 +895,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -827,6 +903,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of blurbs return. Server may return fewer
      * blurbs than requested. If unspecified, server will pick an appropriate
@@ -834,6 +912,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -845,6 +924,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of blurbs return. Server may return fewer
      * blurbs than requested. If unspecified, server will pick an appropriate
@@ -852,6 +933,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -863,6 +945,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value of
      * google.showcase.v1beta1.SearchBlurbsResponse.next_page_token
@@ -871,13 +955,13 @@ public Builder clearPageSize() {
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -886,6 +970,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of
      * google.showcase.v1beta1.SearchBlurbsResponse.next_page_token
@@ -894,15 +980,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -910,6 +995,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value of
      * google.showcase.v1beta1.SearchBlurbsResponse.next_page_token
@@ -918,18 +1005,22 @@ public java.lang.String getPageToken() {
      * 
* * 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(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The value of
      * google.showcase.v1beta1.SearchBlurbsResponse.next_page_token
@@ -938,6 +1029,7 @@ public Builder setPageToken(
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -947,6 +1039,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The value of
      * google.showcase.v1beta1.SearchBlurbsResponse.next_page_token
@@ -955,21 +1049,23 @@ public Builder clearPageToken() {
      * 
* * 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(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -979,12 +1075,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.SearchBlurbsRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.SearchBlurbsRequest) private static final com.google.showcase.v1beta1.SearchBlurbsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.SearchBlurbsRequest(); } @@ -993,27 +1089,27 @@ public static com.google.showcase.v1beta1.SearchBlurbsRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchBlurbsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchBlurbsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1028,6 +1124,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.SearchBlurbsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequestOrBuilder.java similarity index 72% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequestOrBuilder.java index 105865e1e1..aec39c0103 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsRequestOrBuilder.java @@ -1,58 +1,86 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface SearchBlurbsRequestOrBuilder extends +public interface SearchBlurbsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.SearchBlurbsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The query used to search for blurbs containing to words of this string.
    * Only posts that contain an exact match of a queried word will be returned.
    * 
* * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The query. */ java.lang.String getQuery(); /** + * + * *
    * The query used to search for blurbs containing to words of this string.
    * Only posts that contain an exact match of a queried word will be returned.
    * 
* * string query = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for query. */ - com.google.protobuf.ByteString - getQueryBytes(); + com.google.protobuf.ByteString getQueryBytes(); /** + * + * *
    * The rooms or profiles to search. If unset, `SearchBlurbs` will search all
    * rooms and all profiles.
    * 
* * string parent = 2 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * The rooms or profiles to search. If unset, `SearchBlurbs` will search all
    * rooms and all profiles.
    * 
* * string parent = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of blurbs return. Server may return fewer
    * blurbs than requested. If unspecified, server will pick an appropriate
@@ -60,11 +88,14 @@ public interface SearchBlurbsRequestOrBuilder extends
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The value of
    * google.showcase.v1beta1.SearchBlurbsResponse.next_page_token
@@ -73,10 +104,13 @@ public interface SearchBlurbsRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value of
    * google.showcase.v1beta1.SearchBlurbsResponse.next_page_token
@@ -85,8 +119,8 @@ public interface SearchBlurbsRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponse.java similarity index 71% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponse.java index e9e13402c1..feea7f1ecb 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The operation response message for the
  * google.showcase.v1beta1.Messaging\SearchBlurbs method.
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.SearchBlurbsResponse}
  */
-public final class SearchBlurbsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SearchBlurbsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.SearchBlurbsResponse)
     SearchBlurbsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SearchBlurbsResponse.newBuilder() to construct.
   private SearchBlurbsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SearchBlurbsResponse() {
     blurbs_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -28,28 +46,32 @@ private SearchBlurbsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SearchBlurbsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsResponse_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_SearchBlurbsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.SearchBlurbsResponse.class, com.google.showcase.v1beta1.SearchBlurbsResponse.Builder.class);
+            com.google.showcase.v1beta1.SearchBlurbsResponse.class,
+            com.google.showcase.v1beta1.SearchBlurbsResponse.Builder.class);
   }
 
   public static final int BLURBS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List blurbs_;
   /**
+   *
+   *
    * 
    * Blurbs that matched the search query.
    * 
@@ -61,6 +83,8 @@ public java.util.List getBlurbsList() { return blurbs_; } /** + * + * *
    * Blurbs that matched the search query.
    * 
@@ -68,11 +92,13 @@ public java.util.List getBlurbsList() { * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBlurbsOrBuilderList() { return blurbs_; } /** + * + * *
    * Blurbs that matched the search query.
    * 
@@ -84,6 +110,8 @@ public int getBlurbsCount() { return blurbs_.size(); } /** + * + * *
    * Blurbs that matched the search query.
    * 
@@ -95,6 +123,8 @@ public com.google.showcase.v1beta1.Blurb getBlurbs(int index) { return blurbs_.get(index); } /** + * + * *
    * Blurbs that matched the search query.
    * 
@@ -102,15 +132,17 @@ public com.google.showcase.v1beta1.Blurb getBlurbs(int index) { * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ @java.lang.Override - public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder( - int index) { + public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder(int index) { return blurbs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token to retrieve next page of results.
    * Pass this value in SearchBlurbsRequest.page_token field in the subsequent
@@ -119,6 +151,7 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,14 +160,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve next page of results.
    * Pass this value in SearchBlurbsRequest.page_token field in the subsequent
@@ -143,16 +177,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -161,6 +194,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +206,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < blurbs_.size(); i++) { output.writeMessage(1, blurbs_.get(i)); } @@ -190,8 +223,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < blurbs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, blurbs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, blurbs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -204,17 +236,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.SearchBlurbsResponse)) { return super.equals(obj); } - com.google.showcase.v1beta1.SearchBlurbsResponse other = (com.google.showcase.v1beta1.SearchBlurbsResponse) obj; + com.google.showcase.v1beta1.SearchBlurbsResponse other = + (com.google.showcase.v1beta1.SearchBlurbsResponse) obj; - if (!getBlurbsList() - .equals(other.getBlurbsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getBlurbsList().equals(other.getBlurbsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,99 +268,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.SearchBlurbsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.SearchBlurbsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.SearchBlurbsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.SearchBlurbsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The operation response message for the
    * google.showcase.v1beta1.Messaging\SearchBlurbs method.
@@ -337,33 +373,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.SearchBlurbsResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.SearchBlurbsResponse)
       com.google.showcase.v1beta1.SearchBlurbsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsResponse_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_SearchBlurbsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.SearchBlurbsResponse.class, com.google.showcase.v1beta1.SearchBlurbsResponse.Builder.class);
+              com.google.showcase.v1beta1.SearchBlurbsResponse.class,
+              com.google.showcase.v1beta1.SearchBlurbsResponse.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.SearchBlurbsResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -380,9 +415,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -401,14 +436,18 @@ public com.google.showcase.v1beta1.SearchBlurbsResponse build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.SearchBlurbsResponse buildPartial() {
-      com.google.showcase.v1beta1.SearchBlurbsResponse result = new com.google.showcase.v1beta1.SearchBlurbsResponse(this);
+      com.google.showcase.v1beta1.SearchBlurbsResponse result =
+          new com.google.showcase.v1beta1.SearchBlurbsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.showcase.v1beta1.SearchBlurbsResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.showcase.v1beta1.SearchBlurbsResponse result) {
       if (blurbsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           blurbs_ = java.util.Collections.unmodifiableList(blurbs_);
@@ -431,38 +470,39 @@ private void buildPartial0(com.google.showcase.v1beta1.SearchBlurbsResponse resu
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.SearchBlurbsResponse) {
-        return mergeFrom((com.google.showcase.v1beta1.SearchBlurbsResponse)other);
+        return mergeFrom((com.google.showcase.v1beta1.SearchBlurbsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -470,7 +510,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.showcase.v1beta1.SearchBlurbsResponse other) {
-      if (other == com.google.showcase.v1beta1.SearchBlurbsResponse.getDefaultInstance()) return this;
+      if (other == com.google.showcase.v1beta1.SearchBlurbsResponse.getDefaultInstance())
+        return this;
       if (blurbsBuilder_ == null) {
         if (!other.blurbs_.isEmpty()) {
           if (blurbs_.isEmpty()) {
@@ -489,9 +530,10 @@ public Builder mergeFrom(com.google.showcase.v1beta1.SearchBlurbsResponse other)
             blurbsBuilder_ = null;
             blurbs_ = other.blurbs_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            blurbsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getBlurbsFieldBuilder() : null;
+            blurbsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getBlurbsFieldBuilder()
+                    : null;
           } else {
             blurbsBuilder_.addAllMessages(other.blurbs_);
           }
@@ -528,30 +570,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.showcase.v1beta1.Blurb m =
-                  input.readMessage(
-                      com.google.showcase.v1beta1.Blurb.parser(),
-                      extensionRegistry);
-              if (blurbsBuilder_ == null) {
-                ensureBlurbsIsMutable();
-                blurbs_.add(m);
-              } else {
-                blurbsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.showcase.v1beta1.Blurb m =
+                    input.readMessage(
+                        com.google.showcase.v1beta1.Blurb.parser(), extensionRegistry);
+                if (blurbsBuilder_ == null) {
+                  ensureBlurbsIsMutable();
+                  blurbs_.add(m);
+                } else {
+                  blurbsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -561,21 +605,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List blurbs_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureBlurbsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         blurbs_ = new java.util.ArrayList(blurbs_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> blurbsBuilder_;
+            com.google.showcase.v1beta1.Blurb,
+            com.google.showcase.v1beta1.Blurb.Builder,
+            com.google.showcase.v1beta1.BlurbOrBuilder>
+        blurbsBuilder_;
 
     /**
+     *
+     *
      * 
      * Blurbs that matched the search query.
      * 
@@ -590,6 +641,8 @@ public java.util.List getBlurbsList() { } } /** + * + * *
      * Blurbs that matched the search query.
      * 
@@ -604,6 +657,8 @@ public int getBlurbsCount() { } } /** + * + * *
      * Blurbs that matched the search query.
      * 
@@ -618,14 +673,15 @@ public com.google.showcase.v1beta1.Blurb getBlurbs(int index) { } } /** + * + * *
      * Blurbs that matched the search query.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public Builder setBlurbs( - int index, com.google.showcase.v1beta1.Blurb value) { + public Builder setBlurbs(int index, com.google.showcase.v1beta1.Blurb value) { if (blurbsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -639,14 +695,15 @@ public Builder setBlurbs( return this; } /** + * + * *
      * Blurbs that matched the search query.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public Builder setBlurbs( - int index, com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + public Builder setBlurbs(int index, com.google.showcase.v1beta1.Blurb.Builder builderForValue) { if (blurbsBuilder_ == null) { ensureBlurbsIsMutable(); blurbs_.set(index, builderForValue.build()); @@ -657,6 +714,8 @@ public Builder setBlurbs( return this; } /** + * + * *
      * Blurbs that matched the search query.
      * 
@@ -677,14 +736,15 @@ public Builder addBlurbs(com.google.showcase.v1beta1.Blurb value) { return this; } /** + * + * *
      * Blurbs that matched the search query.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public Builder addBlurbs( - int index, com.google.showcase.v1beta1.Blurb value) { + public Builder addBlurbs(int index, com.google.showcase.v1beta1.Blurb value) { if (blurbsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -698,14 +758,15 @@ public Builder addBlurbs( return this; } /** + * + * *
      * Blurbs that matched the search query.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public Builder addBlurbs( - com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + public Builder addBlurbs(com.google.showcase.v1beta1.Blurb.Builder builderForValue) { if (blurbsBuilder_ == null) { ensureBlurbsIsMutable(); blurbs_.add(builderForValue.build()); @@ -716,14 +777,15 @@ public Builder addBlurbs( return this; } /** + * + * *
      * Blurbs that matched the search query.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public Builder addBlurbs( - int index, com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + public Builder addBlurbs(int index, com.google.showcase.v1beta1.Blurb.Builder builderForValue) { if (blurbsBuilder_ == null) { ensureBlurbsIsMutable(); blurbs_.add(index, builderForValue.build()); @@ -734,6 +796,8 @@ public Builder addBlurbs( return this; } /** + * + * *
      * Blurbs that matched the search query.
      * 
@@ -744,8 +808,7 @@ public Builder addAllBlurbs( java.lang.Iterable values) { if (blurbsBuilder_ == null) { ensureBlurbsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blurbs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blurbs_); onChanged(); } else { blurbsBuilder_.addAllMessages(values); @@ -753,6 +816,8 @@ public Builder addAllBlurbs( return this; } /** + * + * *
      * Blurbs that matched the search query.
      * 
@@ -770,6 +835,8 @@ public Builder clearBlurbs() { return this; } /** + * + * *
      * Blurbs that matched the search query.
      * 
@@ -787,39 +854,44 @@ public Builder removeBlurbs(int index) { return this; } /** + * + * *
      * Blurbs that matched the search query.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public com.google.showcase.v1beta1.Blurb.Builder getBlurbsBuilder( - int index) { + public com.google.showcase.v1beta1.Blurb.Builder getBlurbsBuilder(int index) { return getBlurbsFieldBuilder().getBuilder(index); } /** + * + * *
      * Blurbs that matched the search query.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder( - int index) { + public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder(int index) { if (blurbsBuilder_ == null) { - return blurbs_.get(index); } else { + return blurbs_.get(index); + } else { return blurbsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Blurbs that matched the search query.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public java.util.List - getBlurbsOrBuilderList() { + public java.util.List + getBlurbsOrBuilderList() { if (blurbsBuilder_ != null) { return blurbsBuilder_.getMessageOrBuilderList(); } else { @@ -827,6 +899,8 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder( } } /** + * + * *
      * Blurbs that matched the search query.
      * 
@@ -834,42 +908,47 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder( * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ public com.google.showcase.v1beta1.Blurb.Builder addBlurbsBuilder() { - return getBlurbsFieldBuilder().addBuilder( - com.google.showcase.v1beta1.Blurb.getDefaultInstance()); + return getBlurbsFieldBuilder() + .addBuilder(com.google.showcase.v1beta1.Blurb.getDefaultInstance()); } /** + * + * *
      * Blurbs that matched the search query.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public com.google.showcase.v1beta1.Blurb.Builder addBlurbsBuilder( - int index) { - return getBlurbsFieldBuilder().addBuilder( - index, com.google.showcase.v1beta1.Blurb.getDefaultInstance()); + public com.google.showcase.v1beta1.Blurb.Builder addBlurbsBuilder(int index) { + return getBlurbsFieldBuilder() + .addBuilder(index, com.google.showcase.v1beta1.Blurb.getDefaultInstance()); } /** + * + * *
      * Blurbs that matched the search query.
      * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - public java.util.List - getBlurbsBuilderList() { + public java.util.List getBlurbsBuilderList() { return getBlurbsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> + com.google.showcase.v1beta1.Blurb, + com.google.showcase.v1beta1.Blurb.Builder, + com.google.showcase.v1beta1.BlurbOrBuilder> getBlurbsFieldBuilder() { if (blurbsBuilder_ == null) { - blurbsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder>( - blurbs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + blurbsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, + com.google.showcase.v1beta1.Blurb.Builder, + com.google.showcase.v1beta1.BlurbOrBuilder>( + blurbs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); blurbs_ = null; } return blurbsBuilder_; @@ -877,6 +956,8 @@ public com.google.showcase.v1beta1.Blurb.Builder addBlurbsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in SearchBlurbsRequest.page_token field in the subsequent
@@ -885,13 +966,13 @@ public com.google.showcase.v1beta1.Blurb.Builder addBlurbsBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -900,6 +981,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in SearchBlurbsRequest.page_token field in the subsequent
@@ -908,15 +991,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -924,6 +1006,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in SearchBlurbsRequest.page_token field in the subsequent
@@ -932,18 +1016,22 @@ public java.lang.String getNextPageToken() {
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in SearchBlurbsRequest.page_token field in the subsequent
@@ -952,6 +1040,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -961,6 +1050,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token to retrieve next page of results.
      * Pass this value in SearchBlurbsRequest.page_token field in the subsequent
@@ -969,21 +1060,23 @@ public Builder clearNextPageToken() {
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -993,12 +1086,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.SearchBlurbsResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.SearchBlurbsResponse) private static final com.google.showcase.v1beta1.SearchBlurbsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.SearchBlurbsResponse(); } @@ -1007,27 +1100,27 @@ public static com.google.showcase.v1beta1.SearchBlurbsResponse getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchBlurbsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchBlurbsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1042,6 +1135,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.SearchBlurbsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponseOrBuilder.java similarity index 69% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponseOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponseOrBuilder.java index be3882aac9..d115f9636c 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponseOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SearchBlurbsResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface SearchBlurbsResponseOrBuilder extends +public interface SearchBlurbsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.SearchBlurbsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Blurbs that matched the search query.
    * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - java.util.List - getBlurbsList(); + java.util.List getBlurbsList(); /** + * + * *
    * Blurbs that matched the search query.
    * 
@@ -26,6 +45,8 @@ public interface SearchBlurbsResponseOrBuilder extends */ com.google.showcase.v1beta1.Blurb getBlurbs(int index); /** + * + * *
    * Blurbs that matched the search query.
    * 
@@ -34,25 +55,29 @@ public interface SearchBlurbsResponseOrBuilder extends */ int getBlurbsCount(); /** + * + * *
    * Blurbs that matched the search query.
    * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - java.util.List - getBlurbsOrBuilderList(); + java.util.List getBlurbsOrBuilderList(); /** + * + * *
    * Blurbs that matched the search query.
    * 
* * repeated .google.showcase.v1beta1.Blurb blurbs = 1; */ - com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder( - int index); + com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results.
    * Pass this value in SearchBlurbsRequest.page_token field in the subsequent
@@ -61,10 +86,13 @@ com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results.
    * Pass this value in SearchBlurbsRequest.page_token field in the subsequent
@@ -73,8 +101,8 @@ com.google.showcase.v1beta1.BlurbOrBuilder getBlurbsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponse.java similarity index 67% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponse.java index 1fa151be8d..1e89fcdf3c 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The response message for the google.showcase.v1beta1.Messaging\SendBlurbs
  * method.
@@ -12,73 +29,83 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.SendBlurbsResponse}
  */
-public final class SendBlurbsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SendBlurbsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.SendBlurbsResponse)
     SendBlurbsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SendBlurbsResponse.newBuilder() to construct.
   private SendBlurbsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SendBlurbsResponse() {
-    names_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    names_ = com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SendBlurbsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SendBlurbsResponse_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_SendBlurbsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.SendBlurbsResponse.class, com.google.showcase.v1beta1.SendBlurbsResponse.Builder.class);
+            com.google.showcase.v1beta1.SendBlurbsResponse.class,
+            com.google.showcase.v1beta1.SendBlurbsResponse.Builder.class);
   }
 
   public static final int NAMES_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList names_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
+   *
+   *
    * 
    * The names of successful blurb creations.
    * 
* * repeated string names = 1; + * * @return A list containing the names. */ - public com.google.protobuf.ProtocolStringList - getNamesList() { + public com.google.protobuf.ProtocolStringList getNamesList() { return names_; } /** + * + * *
    * The names of successful blurb creations.
    * 
* * repeated string names = 1; + * * @return The count of names. */ public int getNamesCount() { return names_.size(); } /** + * + * *
    * The names of successful blurb creations.
    * 
* * repeated string names = 1; + * * @param index The index of the element to return. * @return The names at the given index. */ @@ -86,20 +113,23 @@ public java.lang.String getNames(int index) { return names_.get(index); } /** + * + * *
    * The names of successful blurb creations.
    * 
* * repeated string names = 1; + * * @param index The index of the value to return. * @return The bytes of the names at the given index. */ - public com.google.protobuf.ByteString - getNamesBytes(int index) { + public com.google.protobuf.ByteString getNamesBytes(int index) { return names_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -111,8 +141,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < names_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, names_.getRaw(i)); } @@ -141,15 +170,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.SendBlurbsResponse)) { return super.equals(obj); } - com.google.showcase.v1beta1.SendBlurbsResponse other = (com.google.showcase.v1beta1.SendBlurbsResponse) obj; + com.google.showcase.v1beta1.SendBlurbsResponse other = + (com.google.showcase.v1beta1.SendBlurbsResponse) obj; - if (!getNamesList() - .equals(other.getNamesList())) return false; + if (!getNamesList().equals(other.getNamesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -170,99 +199,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.SendBlurbsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.SendBlurbsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.SendBlurbsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.SendBlurbsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.SendBlurbsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response message for the google.showcase.v1beta1.Messaging\SendBlurbs
    * method.
@@ -270,46 +304,44 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.SendBlurbsResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.SendBlurbsResponse)
       com.google.showcase.v1beta1.SendBlurbsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SendBlurbsResponse_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_SendBlurbsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.SendBlurbsResponse.class, com.google.showcase.v1beta1.SendBlurbsResponse.Builder.class);
+              com.google.showcase.v1beta1.SendBlurbsResponse.class,
+              com.google.showcase.v1beta1.SendBlurbsResponse.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.SendBlurbsResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
-      names_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      names_ = com.google.protobuf.LazyStringArrayList.emptyList();
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -328,8 +360,11 @@ public com.google.showcase.v1beta1.SendBlurbsResponse build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.SendBlurbsResponse buildPartial() {
-      com.google.showcase.v1beta1.SendBlurbsResponse result = new com.google.showcase.v1beta1.SendBlurbsResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.SendBlurbsResponse result =
+          new com.google.showcase.v1beta1.SendBlurbsResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -346,38 +381,39 @@ private void buildPartial0(com.google.showcase.v1beta1.SendBlurbsResponse result
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.SendBlurbsResponse) {
-        return mergeFrom((com.google.showcase.v1beta1.SendBlurbsResponse)other);
+        return mergeFrom((com.google.showcase.v1beta1.SendBlurbsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -422,18 +458,20 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureNamesIsMutable();
-              names_.add(s);
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureNamesIsMutable();
+                names_.add(s);
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -443,10 +481,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.LazyStringArrayList names_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
+
     private void ensureNamesIsMutable() {
       if (!names_.isModifiable()) {
         names_ = new com.google.protobuf.LazyStringArrayList(names_);
@@ -454,35 +494,43 @@ private void ensureNamesIsMutable() {
       bitField0_ |= 0x00000001;
     }
     /**
+     *
+     *
      * 
      * The names of successful blurb creations.
      * 
* * repeated string names = 1; + * * @return A list containing the names. */ - public com.google.protobuf.ProtocolStringList - getNamesList() { + public com.google.protobuf.ProtocolStringList getNamesList() { names_.makeImmutable(); return names_; } /** + * + * *
      * The names of successful blurb creations.
      * 
* * repeated string names = 1; + * * @return The count of names. */ public int getNamesCount() { return names_.size(); } /** + * + * *
      * The names of successful blurb creations.
      * 
* * repeated string names = 1; + * * @param index The index of the element to return. * @return The names at the given index. */ @@ -490,31 +538,37 @@ public java.lang.String getNames(int index) { return names_.get(index); } /** + * + * *
      * The names of successful blurb creations.
      * 
* * repeated string names = 1; + * * @param index The index of the value to return. * @return The bytes of the names at the given index. */ - public com.google.protobuf.ByteString - getNamesBytes(int index) { + public com.google.protobuf.ByteString getNamesBytes(int index) { return names_.getByteString(index); } /** + * + * *
      * The names of successful blurb creations.
      * 
* * repeated string names = 1; + * * @param index The index to set the value at. * @param value The names to set. * @return This builder for chaining. */ - public Builder setNames( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureNamesIsMutable(); names_.set(index, value); bitField0_ |= 0x00000001; @@ -522,17 +576,21 @@ public Builder setNames( return this; } /** + * + * *
      * The names of successful blurb creations.
      * 
* * repeated string names = 1; + * * @param value The names to add. * @return This builder for chaining. */ - public Builder addNames( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureNamesIsMutable(); names_.add(value); bitField0_ |= 0x00000001; @@ -540,50 +598,58 @@ public Builder addNames( return this; } /** + * + * *
      * The names of successful blurb creations.
      * 
* * repeated string names = 1; + * * @param values The names to add. * @return This builder for chaining. */ - public Builder addAllNames( - java.lang.Iterable values) { + public Builder addAllNames(java.lang.Iterable values) { ensureNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, names_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The names of successful blurb creations.
      * 
* * repeated string names = 1; + * * @return This builder for chaining. */ public Builder clearNames() { - names_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * The names of successful blurb creations.
      * 
* * repeated string names = 1; + * * @param value The bytes of the names to add. * @return This builder for chaining. */ - public Builder addNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureNamesIsMutable(); names_.add(value); @@ -591,9 +657,9 @@ public Builder addNamesBytes( onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -603,12 +669,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.SendBlurbsResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.SendBlurbsResponse) private static final com.google.showcase.v1beta1.SendBlurbsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.SendBlurbsResponse(); } @@ -617,27 +683,27 @@ public static com.google.showcase.v1beta1.SendBlurbsResponse getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SendBlurbsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SendBlurbsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -652,6 +718,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.SendBlurbsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponseOrBuilder.java similarity index 59% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponseOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponseOrBuilder.java index cde3cb3df3..fd3e7fc17d 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponseOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SendBlurbsResponseOrBuilder.java @@ -1,51 +1,77 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface SendBlurbsResponseOrBuilder extends +public interface SendBlurbsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.SendBlurbsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The names of successful blurb creations.
    * 
* * repeated string names = 1; + * * @return A list containing the names. */ - java.util.List - getNamesList(); + java.util.List getNamesList(); /** + * + * *
    * The names of successful blurb creations.
    * 
* * repeated string names = 1; + * * @return The count of names. */ int getNamesCount(); /** + * + * *
    * The names of successful blurb creations.
    * 
* * repeated string names = 1; + * * @param index The index of the element to return. * @return The names at the given index. */ java.lang.String getNames(int index); /** + * + * *
    * The names of successful blurb creations.
    * 
* * repeated string names = 1; + * * @param index The index of the value to return. * @return The bytes of the names at the given index. */ - com.google.protobuf.ByteString - getNamesBytes(int index); + com.google.protobuf.ByteString getNamesBytes(int index); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Sequence.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Sequence.java similarity index 73% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Sequence.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Sequence.java index b744acddeb..37bd112242 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Sequence.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Sequence.java @@ -1,21 +1,35 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/sequence.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -/** - * Protobuf type {@code google.showcase.v1beta1.Sequence} - */ -public final class Sequence extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.showcase.v1beta1.Sequence} */ +public final class Sequence extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.Sequence) SequenceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Sequence.newBuilder() to construct. private Sequence(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Sequence() { name_ = ""; responses_ = java.util.Collections.emptyList(); @@ -23,47 +37,57 @@ private Sequence() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Sequence(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_Sequence_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_Sequence_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.Sequence.class, com.google.showcase.v1beta1.Sequence.Builder.class); + com.google.showcase.v1beta1.Sequence.class, + com.google.showcase.v1beta1.Sequence.Builder.class); } - public interface ResponseOrBuilder extends + public interface ResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.Sequence.Response) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The status to return for an individual attempt.
      * 
* * .google.rpc.Status status = 1; + * * @return Whether the status field is set. */ boolean hasStatus(); /** + * + * *
      * The status to return for an individual attempt.
      * 
* * .google.rpc.Status status = 1; + * * @return The status. */ com.google.rpc.Status getStatus(); /** + * + * *
      * The status to return for an individual attempt.
      * 
@@ -73,24 +97,32 @@ public interface ResponseOrBuilder extends com.google.rpc.StatusOrBuilder getStatusOrBuilder(); /** + * + * *
      * The amount of time to delay sending the response.
      * 
* * .google.protobuf.Duration delay = 2; + * * @return Whether the delay field is set. */ boolean hasDelay(); /** + * + * *
      * The amount of time to delay sending the response.
      * 
* * .google.protobuf.Duration delay = 2; + * * @return The delay. */ com.google.protobuf.Duration getDelay(); /** + * + * *
      * The amount of time to delay sending the response.
      * 
@@ -100,53 +132,59 @@ public interface ResponseOrBuilder extends com.google.protobuf.DurationOrBuilder getDelayOrBuilder(); } /** + * + * *
    * A server response to an RPC Attempt in a sequence.
    * 
* * Protobuf type {@code google.showcase.v1beta1.Sequence.Response} */ - public static final class Response extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Response extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.Sequence.Response) ResponseOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Response.newBuilder() to construct. private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Response() { - } + + private Response() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Response(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_Response_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_Sequence_Response_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_Response_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_Sequence_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.Sequence.Response.class, com.google.showcase.v1beta1.Sequence.Response.Builder.class); + com.google.showcase.v1beta1.Sequence.Response.class, + com.google.showcase.v1beta1.Sequence.Response.Builder.class); } private int bitField0_; public static final int STATUS_FIELD_NUMBER = 1; private com.google.rpc.Status status_; /** + * + * *
      * The status to return for an individual attempt.
      * 
* * .google.rpc.Status status = 1; + * * @return Whether the status field is set. */ @java.lang.Override @@ -154,11 +192,14 @@ public boolean hasStatus() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The status to return for an individual attempt.
      * 
* * .google.rpc.Status status = 1; + * * @return The status. */ @java.lang.Override @@ -166,6 +207,8 @@ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** + * + * *
      * The status to return for an individual attempt.
      * 
@@ -180,11 +223,14 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { public static final int DELAY_FIELD_NUMBER = 2; private com.google.protobuf.Duration delay_; /** + * + * *
      * The amount of time to delay sending the response.
      * 
* * .google.protobuf.Duration delay = 2; + * * @return Whether the delay field is set. */ @java.lang.Override @@ -192,11 +238,14 @@ public boolean hasDelay() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The amount of time to delay sending the response.
      * 
* * .google.protobuf.Duration delay = 2; + * * @return The delay. */ @java.lang.Override @@ -204,6 +253,8 @@ public com.google.protobuf.Duration getDelay() { return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_; } /** + * + * *
      * The amount of time to delay sending the response.
      * 
@@ -216,6 +267,7 @@ public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +279,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStatus()); } @@ -245,12 +296,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStatus()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDelay()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDelay()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -260,22 +309,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.Sequence.Response)) { return super.equals(obj); } - com.google.showcase.v1beta1.Sequence.Response other = (com.google.showcase.v1beta1.Sequence.Response) obj; + com.google.showcase.v1beta1.Sequence.Response other = + (com.google.showcase.v1beta1.Sequence.Response) obj; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus() - .equals(other.getStatus())) return false; + if (!getStatus().equals(other.getStatus())) return false; } if (hasDelay() != other.hasDelay()) return false; if (hasDelay()) { - if (!getDelay() - .equals(other.getDelay())) return false; + if (!getDelay().equals(other.getDelay())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -301,90 +349,94 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.Sequence.Response parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.Sequence.Response parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Sequence.Response parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.Sequence.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Sequence.Response parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.Sequence.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Sequence.Response parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.Sequence.Response parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.Sequence.Response parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.Sequence.Response parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.Sequence.Response parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.Sequence.Response parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.Sequence.Response parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.Sequence.Response parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.Sequence.Response prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -394,27 +446,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A server response to an RPC Attempt in a sequence.
      * 
* * Protobuf type {@code google.showcase.v1beta1.Sequence.Response} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.Sequence.Response) com.google.showcase.v1beta1.Sequence.ResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_Response_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_Sequence_Response_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_Response_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_Sequence_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.Sequence.Response.class, com.google.showcase.v1beta1.Sequence.Response.Builder.class); + com.google.showcase.v1beta1.Sequence.Response.class, + com.google.showcase.v1beta1.Sequence.Response.Builder.class); } // Construct using com.google.showcase.v1beta1.Sequence.Response.newBuilder() @@ -422,18 +479,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStatusFieldBuilder(); getDelayFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -452,9 +509,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_Response_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_Sequence_Response_descriptor; } @java.lang.Override @@ -473,8 +530,11 @@ public com.google.showcase.v1beta1.Sequence.Response build() { @java.lang.Override public com.google.showcase.v1beta1.Sequence.Response buildPartial() { - com.google.showcase.v1beta1.Sequence.Response result = new com.google.showcase.v1beta1.Sequence.Response(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.Sequence.Response result = + new com.google.showcase.v1beta1.Sequence.Response(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -483,15 +543,11 @@ private void buildPartial0(com.google.showcase.v1beta1.Sequence.Response result) int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.status_ = statusBuilder_ == null - ? status_ - : statusBuilder_.build(); + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.delay_ = delayBuilder_ == null - ? delay_ - : delayBuilder_.build(); + result.delay_ = delayBuilder_ == null ? delay_ : delayBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -501,38 +557,41 @@ private void buildPartial0(com.google.showcase.v1beta1.Sequence.Response result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.Sequence.Response) { - return mergeFrom((com.google.showcase.v1beta1.Sequence.Response)other); + return mergeFrom((com.google.showcase.v1beta1.Sequence.Response) other); } else { super.mergeFrom(other); return this; @@ -540,7 +599,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.Sequence.Response other) { - if (other == com.google.showcase.v1beta1.Sequence.Response.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.Sequence.Response.getDefaultInstance()) + return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } @@ -573,26 +633,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDelayFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDelayFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -602,28 +661,36 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusBuilder_; /** + * + * *
        * The status to return for an individual attempt.
        * 
* * .google.rpc.Status status = 1; + * * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * The status to return for an individual attempt.
        * 
* * .google.rpc.Status status = 1; + * * @return The status. */ public com.google.rpc.Status getStatus() { @@ -634,6 +701,8 @@ public com.google.rpc.Status getStatus() { } } /** + * + * *
        * The status to return for an individual attempt.
        * 
@@ -654,14 +723,15 @@ public Builder setStatus(com.google.rpc.Status value) { return this; } /** + * + * *
        * The status to return for an individual attempt.
        * 
* * .google.rpc.Status status = 1; */ - public Builder setStatus( - com.google.rpc.Status.Builder builderForValue) { + public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { @@ -672,6 +742,8 @@ public Builder setStatus( return this; } /** + * + * *
        * The status to return for an individual attempt.
        * 
@@ -680,9 +752,9 @@ public Builder setStatus( */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - status_ != null && - status_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; @@ -697,6 +769,8 @@ public Builder mergeStatus(com.google.rpc.Status value) { return this; } /** + * + * *
        * The status to return for an individual attempt.
        * 
@@ -714,6 +788,8 @@ public Builder clearStatus() { return this; } /** + * + * *
        * The status to return for an individual attempt.
        * 
@@ -726,6 +802,8 @@ public com.google.rpc.Status.Builder getStatusBuilder() { return getStatusFieldBuilder().getBuilder(); } /** + * + * *
        * The status to return for an individual attempt.
        * 
@@ -736,11 +814,12 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? - com.google.rpc.Status.getDefaultInstance() : status_; + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } } /** + * + * *
        * The status to return for an individual attempt.
        * 
@@ -748,14 +827,14 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * .google.rpc.Status status = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; @@ -763,24 +842,33 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { private com.google.protobuf.Duration delay_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> delayBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + delayBuilder_; /** + * + * *
        * The amount of time to delay sending the response.
        * 
* * .google.protobuf.Duration delay = 2; + * * @return Whether the delay field is set. */ public boolean hasDelay() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * The amount of time to delay sending the response.
        * 
* * .google.protobuf.Duration delay = 2; + * * @return The delay. */ public com.google.protobuf.Duration getDelay() { @@ -791,6 +879,8 @@ public com.google.protobuf.Duration getDelay() { } } /** + * + * *
        * The amount of time to delay sending the response.
        * 
@@ -811,14 +901,15 @@ public Builder setDelay(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * The amount of time to delay sending the response.
        * 
* * .google.protobuf.Duration delay = 2; */ - public Builder setDelay( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDelay(com.google.protobuf.Duration.Builder builderForValue) { if (delayBuilder_ == null) { delay_ = builderForValue.build(); } else { @@ -829,6 +920,8 @@ public Builder setDelay( return this; } /** + * + * *
        * The amount of time to delay sending the response.
        * 
@@ -837,9 +930,9 @@ public Builder setDelay( */ public Builder mergeDelay(com.google.protobuf.Duration value) { if (delayBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - delay_ != null && - delay_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && delay_ != null + && delay_ != com.google.protobuf.Duration.getDefaultInstance()) { getDelayBuilder().mergeFrom(value); } else { delay_ = value; @@ -854,6 +947,8 @@ public Builder mergeDelay(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * The amount of time to delay sending the response.
        * 
@@ -871,6 +966,8 @@ public Builder clearDelay() { return this; } /** + * + * *
        * The amount of time to delay sending the response.
        * 
@@ -883,6 +980,8 @@ public com.google.protobuf.Duration.Builder getDelayBuilder() { return getDelayFieldBuilder().getBuilder(); } /** + * + * *
        * The amount of time to delay sending the response.
        * 
@@ -893,11 +992,12 @@ public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() { if (delayBuilder_ != null) { return delayBuilder_.getMessageOrBuilder(); } else { - return delay_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : delay_; + return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_; } } /** + * + * *
        * The amount of time to delay sending the response.
        * 
@@ -905,18 +1005,22 @@ public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() { * .google.protobuf.Duration delay = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getDelayFieldBuilder() { if (delayBuilder_ == null) { - delayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDelay(), - getParentForChildren(), - isClean()); + delayBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDelay(), getParentForChildren(), isClean()); delay_ = null; } return delayBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -929,12 +1033,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.Sequence.Response) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.Sequence.Response) private static final com.google.showcase.v1beta1.Sequence.Response DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.Sequence.Response(); } @@ -943,27 +1047,28 @@ public static com.google.showcase.v1beta1.Sequence.Response getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Response parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Response parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -978,14 +1083,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.Sequence.Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -994,8 +1100,7 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1003,16 +1108,15 @@ public java.lang.String getName() { } /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1021,9 +1125,12 @@ public java.lang.String getName() { } public static final int RESPONSES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List responses_; /** + * + * *
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -1036,6 +1143,8 @@ public java.util.List getResponse
     return responses_;
   }
   /**
+   *
+   *
    * 
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -1044,11 +1153,13 @@ public java.util.List getResponse
    * repeated .google.showcase.v1beta1.Sequence.Response responses = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getResponsesOrBuilderList() {
     return responses_;
   }
   /**
+   *
+   *
    * 
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -1061,6 +1172,8 @@ public int getResponsesCount() {
     return responses_.size();
   }
   /**
+   *
+   *
    * 
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -1073,6 +1186,8 @@ public com.google.showcase.v1beta1.Sequence.Response getResponses(int index) {
     return responses_.get(index);
   }
   /**
+   *
+   *
    * 
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -1081,12 +1196,12 @@ public com.google.showcase.v1beta1.Sequence.Response getResponses(int index) {
    * repeated .google.showcase.v1beta1.Sequence.Response responses = 2;
    */
   @java.lang.Override
-  public com.google.showcase.v1beta1.Sequence.ResponseOrBuilder getResponsesOrBuilder(
-      int index) {
+  public com.google.showcase.v1beta1.Sequence.ResponseOrBuilder getResponsesOrBuilder(int index) {
     return responses_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1098,8 +1213,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -1119,8 +1233,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     for (int i = 0; i < responses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, responses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, responses_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1130,17 +1243,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.showcase.v1beta1.Sequence)) {
       return super.equals(obj);
     }
     com.google.showcase.v1beta1.Sequence other = (com.google.showcase.v1beta1.Sequence) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getResponsesList()
-        .equals(other.getResponsesList())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getResponsesList().equals(other.getResponsesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1163,128 +1274,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.showcase.v1beta1.Sequence parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.showcase.v1beta1.Sequence parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.Sequence parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.showcase.v1beta1.Sequence parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.showcase.v1beta1.Sequence parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.Sequence parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.Sequence parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.Sequence parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.Sequence parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.Sequence parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   public static com.google.showcase.v1beta1.Sequence parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.showcase.v1beta1.Sequence parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.Sequence parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.Sequence parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.showcase.v1beta1.Sequence prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
-  /**
-   * Protobuf type {@code google.showcase.v1beta1.Sequence}
-   */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  /** Protobuf type {@code google.showcase.v1beta1.Sequence} */
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.Sequence)
       com.google.showcase.v1beta1.SequenceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.SequenceOuterClass
+          .internal_static_google_showcase_v1beta1_Sequence_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_fieldAccessorTable
+      return com.google.showcase.v1beta1.SequenceOuterClass
+          .internal_static_google_showcase_v1beta1_Sequence_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.Sequence.class, com.google.showcase.v1beta1.Sequence.Builder.class);
+              com.google.showcase.v1beta1.Sequence.class,
+              com.google.showcase.v1beta1.Sequence.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.Sequence.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1301,9 +1411,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_Sequence_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.SequenceOuterClass
+          .internal_static_google_showcase_v1beta1_Sequence_descriptor;
     }
 
     @java.lang.Override
@@ -1324,7 +1434,9 @@ public com.google.showcase.v1beta1.Sequence build() {
     public com.google.showcase.v1beta1.Sequence buildPartial() {
       com.google.showcase.v1beta1.Sequence result = new com.google.showcase.v1beta1.Sequence(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1352,38 +1464,39 @@ private void buildPartial0(com.google.showcase.v1beta1.Sequence result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.Sequence) {
-        return mergeFrom((com.google.showcase.v1beta1.Sequence)other);
+        return mergeFrom((com.google.showcase.v1beta1.Sequence) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1415,9 +1528,10 @@ public Builder mergeFrom(com.google.showcase.v1beta1.Sequence other) {
             responsesBuilder_ = null;
             responses_ = other.responses_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            responsesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResponsesFieldBuilder() : null;
+            responsesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResponsesFieldBuilder()
+                    : null;
           } else {
             responsesBuilder_.addAllMessages(other.responses_);
           }
@@ -1449,30 +1563,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              com.google.showcase.v1beta1.Sequence.Response m =
-                  input.readMessage(
-                      com.google.showcase.v1beta1.Sequence.Response.parser(),
-                      extensionRegistry);
-              if (responsesBuilder_ == null) {
-                ensureResponsesIsMutable();
-                responses_.add(m);
-              } else {
-                responsesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.showcase.v1beta1.Sequence.Response m =
+                    input.readMessage(
+                        com.google.showcase.v1beta1.Sequence.Response.parser(), extensionRegistry);
+                if (responsesBuilder_ == null) {
+                  ensureResponsesIsMutable();
+                  responses_.add(m);
+                } else {
+                  responsesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1482,18 +1598,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
      * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     *
      * @return The name.
      */
     public java.lang.String getName() {
       java.lang.Object ref = name_;
       if (!(ref instanceof java.lang.String)) {
-        com.google.protobuf.ByteString bs =
-            (com.google.protobuf.ByteString) ref;
+        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
         java.lang.String s = bs.toStringUtf8();
         name_ = s;
         return s;
@@ -1503,15 +1620,14 @@ public java.lang.String getName() {
     }
     /**
      * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     *
      * @return The bytes for name.
      */
-    public com.google.protobuf.ByteString
-        getNameBytes() {
+    public com.google.protobuf.ByteString getNameBytes() {
       java.lang.Object ref = name_;
       if (ref instanceof String) {
-        com.google.protobuf.ByteString b = 
-            com.google.protobuf.ByteString.copyFromUtf8(
-                (java.lang.String) ref);
+        com.google.protobuf.ByteString b =
+            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
         name_ = b;
         return b;
       } else {
@@ -1520,12 +1636,14 @@ public java.lang.String getName() {
     }
     /**
      * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     *
      * @param value The name to set.
      * @return This builder for chaining.
      */
-    public Builder setName(
-        java.lang.String value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setName(java.lang.String value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       name_ = value;
       bitField0_ |= 0x00000001;
       onChanged();
@@ -1533,6 +1651,7 @@ public Builder setName(
     }
     /**
      * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     *
      * @return This builder for chaining.
      */
     public Builder clearName() {
@@ -1543,12 +1662,14 @@ public Builder clearName() {
     }
     /**
      * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     *
      * @param value The bytes for name to set.
      * @return This builder for chaining.
      */
-    public Builder setNameBytes(
-        com.google.protobuf.ByteString value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setNameBytes(com.google.protobuf.ByteString value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       checkByteStringIsUtf8(value);
       name_ = value;
       bitField0_ |= 0x00000001;
@@ -1557,18 +1678,25 @@ public Builder setNameBytes(
     }
 
     private java.util.List responses_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResponsesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        responses_ = new java.util.ArrayList(responses_);
+        responses_ =
+            new java.util.ArrayList(responses_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.showcase.v1beta1.Sequence.Response, com.google.showcase.v1beta1.Sequence.Response.Builder, com.google.showcase.v1beta1.Sequence.ResponseOrBuilder> responsesBuilder_;
+            com.google.showcase.v1beta1.Sequence.Response,
+            com.google.showcase.v1beta1.Sequence.Response.Builder,
+            com.google.showcase.v1beta1.Sequence.ResponseOrBuilder>
+        responsesBuilder_;
 
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1584,6 +1712,8 @@ public java.util.List getResponse
       }
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1599,6 +1729,8 @@ public int getResponsesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1614,6 +1746,8 @@ public com.google.showcase.v1beta1.Sequence.Response getResponses(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1621,8 +1755,7 @@ public com.google.showcase.v1beta1.Sequence.Response getResponses(int index) {
      *
      * repeated .google.showcase.v1beta1.Sequence.Response responses = 2;
      */
-    public Builder setResponses(
-        int index, com.google.showcase.v1beta1.Sequence.Response value) {
+    public Builder setResponses(int index, com.google.showcase.v1beta1.Sequence.Response value) {
       if (responsesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1636,6 +1769,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1655,6 +1790,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1676,6 +1813,8 @@ public Builder addResponses(com.google.showcase.v1beta1.Sequence.Response value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1683,8 +1822,7 @@ public Builder addResponses(com.google.showcase.v1beta1.Sequence.Response value)
      *
      * repeated .google.showcase.v1beta1.Sequence.Response responses = 2;
      */
-    public Builder addResponses(
-        int index, com.google.showcase.v1beta1.Sequence.Response value) {
+    public Builder addResponses(int index, com.google.showcase.v1beta1.Sequence.Response value) {
       if (responsesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1698,6 +1836,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1717,6 +1857,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1736,6 +1878,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1747,8 +1891,7 @@ public Builder addAllResponses(
         java.lang.Iterable values) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, responses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
         onChanged();
       } else {
         responsesBuilder_.addAllMessages(values);
@@ -1756,6 +1899,8 @@ public Builder addAllResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1774,6 +1919,8 @@ public Builder clearResponses() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1792,6 +1939,8 @@ public Builder removeResponses(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1799,11 +1948,12 @@ public Builder removeResponses(int index) {
      *
      * repeated .google.showcase.v1beta1.Sequence.Response responses = 2;
      */
-    public com.google.showcase.v1beta1.Sequence.Response.Builder getResponsesBuilder(
-        int index) {
+    public com.google.showcase.v1beta1.Sequence.Response.Builder getResponsesBuilder(int index) {
       return getResponsesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1811,14 +1961,16 @@ public com.google.showcase.v1beta1.Sequence.Response.Builder getResponsesBuilder
      *
      * repeated .google.showcase.v1beta1.Sequence.Response responses = 2;
      */
-    public com.google.showcase.v1beta1.Sequence.ResponseOrBuilder getResponsesOrBuilder(
-        int index) {
+    public com.google.showcase.v1beta1.Sequence.ResponseOrBuilder getResponsesOrBuilder(int index) {
       if (responsesBuilder_ == null) {
-        return responses_.get(index);  } else {
+        return responses_.get(index);
+      } else {
         return responsesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1826,8 +1978,8 @@ public com.google.showcase.v1beta1.Sequence.ResponseOrBuilder getResponsesOrBuil
      *
      * repeated .google.showcase.v1beta1.Sequence.Response responses = 2;
      */
-    public java.util.List 
-         getResponsesOrBuilderList() {
+    public java.util.List
+        getResponsesOrBuilderList() {
       if (responsesBuilder_ != null) {
         return responsesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1835,6 +1987,8 @@ public com.google.showcase.v1beta1.Sequence.ResponseOrBuilder getResponsesOrBuil
       }
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1843,10 +1997,12 @@ public com.google.showcase.v1beta1.Sequence.ResponseOrBuilder getResponsesOrBuil
      * repeated .google.showcase.v1beta1.Sequence.Response responses = 2;
      */
     public com.google.showcase.v1beta1.Sequence.Response.Builder addResponsesBuilder() {
-      return getResponsesFieldBuilder().addBuilder(
-          com.google.showcase.v1beta1.Sequence.Response.getDefaultInstance());
+      return getResponsesFieldBuilder()
+          .addBuilder(com.google.showcase.v1beta1.Sequence.Response.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1854,12 +2010,13 @@ public com.google.showcase.v1beta1.Sequence.Response.Builder addResponsesBuilder
      *
      * repeated .google.showcase.v1beta1.Sequence.Response responses = 2;
      */
-    public com.google.showcase.v1beta1.Sequence.Response.Builder addResponsesBuilder(
-        int index) {
-      return getResponsesFieldBuilder().addBuilder(
-          index, com.google.showcase.v1beta1.Sequence.Response.getDefaultInstance());
+    public com.google.showcase.v1beta1.Sequence.Response.Builder addResponsesBuilder(int index) {
+      return getResponsesFieldBuilder()
+          .addBuilder(index, com.google.showcase.v1beta1.Sequence.Response.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1867,27 +2024,30 @@ public com.google.showcase.v1beta1.Sequence.Response.Builder addResponsesBuilder
      *
      * repeated .google.showcase.v1beta1.Sequence.Response responses = 2;
      */
-    public java.util.List 
-         getResponsesBuilderList() {
+    public java.util.List
+        getResponsesBuilderList() {
       return getResponsesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.showcase.v1beta1.Sequence.Response, com.google.showcase.v1beta1.Sequence.Response.Builder, com.google.showcase.v1beta1.Sequence.ResponseOrBuilder> 
+            com.google.showcase.v1beta1.Sequence.Response,
+            com.google.showcase.v1beta1.Sequence.Response.Builder,
+            com.google.showcase.v1beta1.Sequence.ResponseOrBuilder>
         getResponsesFieldBuilder() {
       if (responsesBuilder_ == null) {
-        responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.showcase.v1beta1.Sequence.Response, com.google.showcase.v1beta1.Sequence.Response.Builder, com.google.showcase.v1beta1.Sequence.ResponseOrBuilder>(
-                responses_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        responsesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.showcase.v1beta1.Sequence.Response,
+                com.google.showcase.v1beta1.Sequence.Response.Builder,
+                com.google.showcase.v1beta1.Sequence.ResponseOrBuilder>(
+                responses_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         responses_ = null;
       }
       return responsesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1897,12 +2057,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.Sequence)
   }
 
   // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.Sequence)
   private static final com.google.showcase.v1beta1.Sequence DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.showcase.v1beta1.Sequence();
   }
@@ -1911,27 +2071,27 @@ public static com.google.showcase.v1beta1.Sequence getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Sequence parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Sequence parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1946,6 +2106,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.showcase.v1beta1.Sequence getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java
similarity index 100%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOrBuilder.java
similarity index 72%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOrBuilder.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOrBuilder.java
index 737dc2c7f1..ac9dd727a7 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOrBuilder.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOrBuilder.java
@@ -1,26 +1,45 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/sequence.proto
 
 // Protobuf Java Version: 3.25.5
 package com.google.showcase.v1beta1;
 
-public interface SequenceOrBuilder extends
+public interface SequenceOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.Sequence)
     com.google.protobuf.MessageOrBuilder {
 
   /**
    * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   *
    * @return The name.
    */
   java.lang.String getName();
   /**
    * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   *
    * @return The bytes for name.
    */
-  com.google.protobuf.ByteString
-      getNameBytes();
+  com.google.protobuf.ByteString getNameBytes();
 
   /**
+   *
+   *
    * 
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -28,9 +47,10 @@ public interface SequenceOrBuilder extends
    *
    * repeated .google.showcase.v1beta1.Sequence.Response responses = 2;
    */
-  java.util.List 
-      getResponsesList();
+  java.util.List getResponsesList();
   /**
+   *
+   *
    * 
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -40,6 +60,8 @@ public interface SequenceOrBuilder extends
    */
   com.google.showcase.v1beta1.Sequence.Response getResponses(int index);
   /**
+   *
+   *
    * 
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -49,6 +71,8 @@ public interface SequenceOrBuilder extends
    */
   int getResponsesCount();
   /**
+   *
+   *
    * 
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -56,9 +80,11 @@ public interface SequenceOrBuilder extends
    *
    * repeated .google.showcase.v1beta1.Sequence.Response responses = 2;
    */
-  java.util.List 
+  java.util.List
       getResponsesOrBuilderList();
   /**
+   *
+   *
    * 
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -66,6 +92,5 @@ public interface SequenceOrBuilder extends
    *
    * repeated .google.showcase.v1beta1.Sequence.Response responses = 2;
    */
-  com.google.showcase.v1beta1.Sequence.ResponseOrBuilder getResponsesOrBuilder(
-      int index);
+  com.google.showcase.v1beta1.Sequence.ResponseOrBuilder getResponsesOrBuilder(int index);
 }
diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java
new file mode 100644
index 0000000000..9490fcf055
--- /dev/null
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java
@@ -0,0 +1,351 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: schema/google/showcase/v1beta1/sequence.proto
+
+// Protobuf Java Version: 3.25.5
+package com.google.showcase.v1beta1;
+
+public final class SequenceOuterClass {
+  private SequenceOuterClass() {}
+
+  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_showcase_v1beta1_Sequence_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_Sequence_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_Sequence_Response_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_Sequence_Response_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_StreamingSequence_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_StreamingSequence_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_StreamingSequence_Response_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_StreamingSequence_Response_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_StreamingSequenceReport_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_StreamingSequenceReport_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_SequenceReport_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_SequenceReport_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_SequenceReport_Attempt_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_SequenceReport_Attempt_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_CreateSequenceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_CreateSequenceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_AttemptSequenceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_AttemptSequenceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_GetSequenceReportRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_GetSequenceReportRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_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-schema/google/showcase/v1beta1/sequenc"
+          + "e.proto\022\027google.showcase.v1beta1\032\034google"
+          + "/api/annotations.proto\032\027google/api/clien"
+          + "t.proto\032\037google/api/field_behavior.proto"
+          + "\032\031google/api/resource.proto\032\036google/prot"
+          + "obuf/duration.proto\032\033google/protobuf/emp"
+          + "ty.proto\032\037google/protobuf/timestamp.prot"
+          + "o\032\027google/rpc/status.proto\"\363\001\n\010Sequence\022"
+          + "\021\n\004name\030\001 \001(\tB\003\340A\003\022=\n\tresponses\030\002 \003(\0132*."
+          + "google.showcase.v1beta1.Sequence.Respons"
+          + "e\032X\n\010Response\022\"\n\006status\030\001 \001(\0132\022.google.r"
+          + "pc.Status\022(\n\005delay\030\002 \001(\0132\031.google.protob"
+          + "uf.Duration:;\352A8\n showcase.googleapis.co"
+          + "m/Sequence\022\024sequences/{sequence}\"\312\002\n\021Str"
+          + "eamingSequence\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\017\n\007con"
+          + "tent\030\002 \001(\t\022F\n\tresponses\030\003 \003(\01323.google.s"
+          + "howcase.v1beta1.StreamingSequence.Respon"
+          + "se\032p\n\010Response\022\"\n\006status\030\001 \001(\0132\022.google."
+          + "rpc.Status\022(\n\005delay\030\002 \001(\0132\031.google.proto"
+          + "buf.Duration\022\026\n\016response_index\030\003 \001(\005:W\352A"
+          + "T\n)showcase.googleapis.com/StreamingSequ"
+          + "ence\022\'streamingSequences/{streaming_sequ"
+          + "ence}\"\322\003\n\027StreamingSequenceReport\022\021\n\004nam"
+          + "e\030\001 \001(\tB\003\340A\003\022J\n\010attempts\030\002 \003(\01328.google."
+          + "showcase.v1beta1.StreamingSequenceReport"
+          + ".Attempt\032\340\001\n\007Attempt\022\026\n\016attempt_number\030\001"
+          + " \001(\005\0224\n\020attempt_deadline\030\002 \001(\0132\032.google."
+          + "protobuf.Timestamp\0221\n\rresponse_time\030\003 \001("
+          + "\0132\032.google.protobuf.Timestamp\0220\n\rattempt"
+          + "_delay\030\004 \001(\0132\031.google.protobuf.Duration\022"
+          + "\"\n\006status\030\005 \001(\0132\022.google.rpc.Status:u\352Ar"
+          + "\n/showcase.googleapis.com/StreamingSeque"
+          + "nceReport\022?streamingSequences/{streaming"
+          + "_sequence}/streamingSequenceReport\"\233\003\n\016S"
+          + "equenceReport\022\021\n\004name\030\001 \001(\tB\003\340A\003\022A\n\010atte"
+          + "mpts\030\002 \003(\0132/.google.showcase.v1beta1.Seq"
+          + "uenceReport.Attempt\032\340\001\n\007Attempt\022\026\n\016attem"
+          + "pt_number\030\001 \001(\005\0224\n\020attempt_deadline\030\002 \001("
+          + "\0132\032.google.protobuf.Timestamp\0221\n\rrespons"
+          + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp"
+          + "\0220\n\rattempt_delay\030\004 \001(\0132\031.google.protobu"
+          + "f.Duration\022\"\n\006status\030\005 \001(\0132\022.google.rpc."
+          + "Status:P\352AM\n&showcase.googleapis.com/Seq"
+          + "uenceReport\022#sequences/{sequence}/sequen"
+          + "ceReport\"L\n\025CreateSequenceRequest\0223\n\010seq"
+          + "uence\030\001 \001(\0132!.google.showcase.v1beta1.Se"
+          + "quence\"h\n\036CreateStreamingSequenceRequest"
+          + "\022F\n\022streaming_sequence\030\001 \001(\0132*.google.sh"
+          + "owcase.v1beta1.StreamingSequence\"P\n\026Atte"
+          + "mptSequenceRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\""
+          + "\n showcase.googleapis.com/Sequence\"\200\001\n\037A"
+          + "ttemptStreamingSequenceRequest\022?\n\004name\030\001"
+          + " \001(\tB1\340A\002\372A+\n)showcase.googleapis.com/St"
+          + "reamingSequence\022\034\n\017last_fail_index\030\002 \001(\005"
+          + "B\003\340A\001\"3\n AttemptStreamingSequenceRespons"
+          + "e\022\017\n\007content\030\001 \001(\t\"X\n\030GetSequenceReportR"
+          + "equest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&showcase.g"
+          + "oogleapis.com/SequenceReport\"j\n!GetStrea"
+          + "mingSequenceReportRequest\022E\n\004name\030\001 \001(\tB"
+          + "7\340A\002\372A1\n/showcase.googleapis.com/Streami"
+          + "ngSequenceReport2\360\010\n\017SequenceService\022\224\001\n"
+          + "\016CreateSequence\022..google.showcase.v1beta"
+          + "1.CreateSequenceRequest\032!.google.showcas"
+          + "e.v1beta1.Sequence\"/\332A\010sequence\202\323\344\223\002\036\"\022/"
+          + "v1beta1/sequences:\010sequence\022\314\001\n\027CreateSt"
+          + "reamingSequence\0227.google.showcase.v1beta"
+          + "1.CreateStreamingSequenceRequest\032*.googl"
+          + "e.showcase.v1beta1.StreamingSequence\"L\332A"
+          + "\022streaming_sequence\202\323\344\223\0021\"\033/v1beta1/stre"
+          + "amingSequences:\022streaming_sequence\022\252\001\n\021G"
+          + "etSequenceReport\0221.google.showcase.v1bet"
+          + "a1.GetSequenceReportRequest\032\'.google.sho"
+          + "wcase.v1beta1.SequenceReport\"9\332A\004name\202\323\344"
+          + "\223\002,\022*/v1beta1/{name=sequences/*/sequence"
+          + "Report}\022\327\001\n\032GetStreamingSequenceReport\022:"
+          + ".google.showcase.v1beta1.GetStreamingSeq"
+          + "uenceReportRequest\0320.google.showcase.v1b"
+          + "eta1.StreamingSequenceReport\"K\332A\004name\202\323\344"
+          + "\223\002>\022 builder) {
     super(builder);
   }
+
   private SequenceReport() {
     name_ = "";
     attempts_ = java.util.Collections.emptyList();
@@ -23,57 +37,70 @@ private SequenceReport() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SequenceReport();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.SequenceOuterClass
+        .internal_static_google_showcase_v1beta1_SequenceReport_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_fieldAccessorTable
+    return com.google.showcase.v1beta1.SequenceOuterClass
+        .internal_static_google_showcase_v1beta1_SequenceReport_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.SequenceReport.class, com.google.showcase.v1beta1.SequenceReport.Builder.class);
+            com.google.showcase.v1beta1.SequenceReport.class,
+            com.google.showcase.v1beta1.SequenceReport.Builder.class);
   }
 
-  public interface AttemptOrBuilder extends
+  public interface AttemptOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.SequenceReport.Attempt)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The attempt number - starting at 0.
      * 
* * int32 attempt_number = 1; + * * @return The attemptNumber. */ int getAttemptNumber(); /** + * + * *
      * The deadline dictated by the attempt to the server.
      * 
* * .google.protobuf.Timestamp attempt_deadline = 2; + * * @return Whether the attemptDeadline field is set. */ boolean hasAttemptDeadline(); /** + * + * *
      * The deadline dictated by the attempt to the server.
      * 
* * .google.protobuf.Timestamp attempt_deadline = 2; + * * @return The attemptDeadline. */ com.google.protobuf.Timestamp getAttemptDeadline(); /** + * + * *
      * The deadline dictated by the attempt to the server.
      * 
@@ -83,26 +110,34 @@ public interface AttemptOrBuilder extends com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder(); /** + * + * *
      * The time that the server responded to the RPC attempt. Used for
      * calculating attempt_delay.
      * 
* * .google.protobuf.Timestamp response_time = 3; + * * @return Whether the responseTime field is set. */ boolean hasResponseTime(); /** + * + * *
      * The time that the server responded to the RPC attempt. Used for
      * calculating attempt_delay.
      * 
* * .google.protobuf.Timestamp response_time = 3; + * * @return The responseTime. */ com.google.protobuf.Timestamp getResponseTime(); /** + * + * *
      * The time that the server responded to the RPC attempt. Used for
      * calculating attempt_delay.
@@ -113,26 +148,34 @@ public interface AttemptOrBuilder extends
     com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder();
 
     /**
+     *
+     *
      * 
      * The server perceived delay between sending the last response and
      * receiving this attempt. Used for validating attempt delay backoff.
      * 
* * .google.protobuf.Duration attempt_delay = 4; + * * @return Whether the attemptDelay field is set. */ boolean hasAttemptDelay(); /** + * + * *
      * The server perceived delay between sending the last response and
      * receiving this attempt. Used for validating attempt delay backoff.
      * 
* * .google.protobuf.Duration attempt_delay = 4; + * * @return The attemptDelay. */ com.google.protobuf.Duration getAttemptDelay(); /** + * + * *
      * The server perceived delay between sending the last response and
      * receiving this attempt. Used for validating attempt delay backoff.
@@ -143,24 +186,32 @@ public interface AttemptOrBuilder extends
     com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder();
 
     /**
+     *
+     *
      * 
      * The status returned to the attempt.
      * 
* * .google.rpc.Status status = 5; + * * @return Whether the status field is set. */ boolean hasStatus(); /** + * + * *
      * The status returned to the attempt.
      * 
* * .google.rpc.Status status = 5; + * * @return The status. */ com.google.rpc.Status getStatus(); /** + * + * *
      * The status returned to the attempt.
      * 
@@ -170,53 +221,59 @@ public interface AttemptOrBuilder extends com.google.rpc.StatusOrBuilder getStatusOrBuilder(); } /** + * + * *
    * Contains metrics on individual RPC Attempts in a sequence.
    * 
* * Protobuf type {@code google.showcase.v1beta1.SequenceReport.Attempt} */ - public static final class Attempt extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Attempt extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.SequenceReport.Attempt) AttemptOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Attempt.newBuilder() to construct. private Attempt(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Attempt() { - } + + private Attempt() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Attempt(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_Attempt_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_SequenceReport_Attempt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_Attempt_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_SequenceReport_Attempt_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.SequenceReport.Attempt.class, com.google.showcase.v1beta1.SequenceReport.Attempt.Builder.class); + com.google.showcase.v1beta1.SequenceReport.Attempt.class, + com.google.showcase.v1beta1.SequenceReport.Attempt.Builder.class); } private int bitField0_; public static final int ATTEMPT_NUMBER_FIELD_NUMBER = 1; private int attemptNumber_ = 0; /** + * + * *
      * The attempt number - starting at 0.
      * 
* * int32 attempt_number = 1; + * * @return The attemptNumber. */ @java.lang.Override @@ -227,11 +284,14 @@ public int getAttemptNumber() { public static final int ATTEMPT_DEADLINE_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp attemptDeadline_; /** + * + * *
      * The deadline dictated by the attempt to the server.
      * 
* * .google.protobuf.Timestamp attempt_deadline = 2; + * * @return Whether the attemptDeadline field is set. */ @java.lang.Override @@ -239,18 +299,25 @@ public boolean hasAttemptDeadline() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The deadline dictated by the attempt to the server.
      * 
* * .google.protobuf.Timestamp attempt_deadline = 2; + * * @return The attemptDeadline. */ @java.lang.Override public com.google.protobuf.Timestamp getAttemptDeadline() { - return attemptDeadline_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : attemptDeadline_; + return attemptDeadline_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : attemptDeadline_; } /** + * + * *
      * The deadline dictated by the attempt to the server.
      * 
@@ -259,18 +326,23 @@ public com.google.protobuf.Timestamp getAttemptDeadline() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder() { - return attemptDeadline_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : attemptDeadline_; + return attemptDeadline_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : attemptDeadline_; } public static final int RESPONSE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp responseTime_; /** + * + * *
      * The time that the server responded to the RPC attempt. Used for
      * calculating attempt_delay.
      * 
* * .google.protobuf.Timestamp response_time = 3; + * * @return Whether the responseTime field is set. */ @java.lang.Override @@ -278,19 +350,26 @@ public boolean hasResponseTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The time that the server responded to the RPC attempt. Used for
      * calculating attempt_delay.
      * 
* * .google.protobuf.Timestamp response_time = 3; + * * @return The responseTime. */ @java.lang.Override public com.google.protobuf.Timestamp getResponseTime() { - return responseTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : responseTime_; + return responseTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : responseTime_; } /** + * + * *
      * The time that the server responded to the RPC attempt. Used for
      * calculating attempt_delay.
@@ -300,18 +379,23 @@ public com.google.protobuf.Timestamp getResponseTime() {
      */
     @java.lang.Override
     public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() {
-      return responseTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : responseTime_;
+      return responseTime_ == null
+          ? com.google.protobuf.Timestamp.getDefaultInstance()
+          : responseTime_;
     }
 
     public static final int ATTEMPT_DELAY_FIELD_NUMBER = 4;
     private com.google.protobuf.Duration attemptDelay_;
     /**
+     *
+     *
      * 
      * The server perceived delay between sending the last response and
      * receiving this attempt. Used for validating attempt delay backoff.
      * 
* * .google.protobuf.Duration attempt_delay = 4; + * * @return Whether the attemptDelay field is set. */ @java.lang.Override @@ -319,19 +403,26 @@ public boolean hasAttemptDelay() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The server perceived delay between sending the last response and
      * receiving this attempt. Used for validating attempt delay backoff.
      * 
* * .google.protobuf.Duration attempt_delay = 4; + * * @return The attemptDelay. */ @java.lang.Override public com.google.protobuf.Duration getAttemptDelay() { - return attemptDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : attemptDelay_; + return attemptDelay_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : attemptDelay_; } /** + * + * *
      * The server perceived delay between sending the last response and
      * receiving this attempt. Used for validating attempt delay backoff.
@@ -341,17 +432,22 @@ public com.google.protobuf.Duration getAttemptDelay() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder() {
-      return attemptDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : attemptDelay_;
+      return attemptDelay_ == null
+          ? com.google.protobuf.Duration.getDefaultInstance()
+          : attemptDelay_;
     }
 
     public static final int STATUS_FIELD_NUMBER = 5;
     private com.google.rpc.Status status_;
     /**
+     *
+     *
      * 
      * The status returned to the attempt.
      * 
* * .google.rpc.Status status = 5; + * * @return Whether the status field is set. */ @java.lang.Override @@ -359,11 +455,14 @@ public boolean hasStatus() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The status returned to the attempt.
      * 
* * .google.rpc.Status status = 5; + * * @return The status. */ @java.lang.Override @@ -371,6 +470,8 @@ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** + * + * *
      * The status returned to the attempt.
      * 
@@ -383,6 +484,7 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -394,8 +496,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (attemptNumber_ != 0) { output.writeInt32(1, attemptNumber_); } @@ -421,24 +522,19 @@ public int getSerializedSize() { size = 0; if (attemptNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, attemptNumber_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, attemptNumber_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAttemptDeadline()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAttemptDeadline()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResponseTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResponseTime()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAttemptDelay()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAttemptDelay()); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStatus()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -448,34 +544,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.SequenceReport.Attempt)) { return super.equals(obj); } - com.google.showcase.v1beta1.SequenceReport.Attempt other = (com.google.showcase.v1beta1.SequenceReport.Attempt) obj; + com.google.showcase.v1beta1.SequenceReport.Attempt other = + (com.google.showcase.v1beta1.SequenceReport.Attempt) obj; - if (getAttemptNumber() - != other.getAttemptNumber()) return false; + if (getAttemptNumber() != other.getAttemptNumber()) return false; if (hasAttemptDeadline() != other.hasAttemptDeadline()) return false; if (hasAttemptDeadline()) { - if (!getAttemptDeadline() - .equals(other.getAttemptDeadline())) return false; + if (!getAttemptDeadline().equals(other.getAttemptDeadline())) return false; } if (hasResponseTime() != other.hasResponseTime()) return false; if (hasResponseTime()) { - if (!getResponseTime() - .equals(other.getResponseTime())) return false; + if (!getResponseTime().equals(other.getResponseTime())) return false; } if (hasAttemptDelay() != other.hasAttemptDelay()) return false; if (hasAttemptDelay()) { - if (!getAttemptDelay() - .equals(other.getAttemptDelay())) return false; + if (!getAttemptDelay().equals(other.getAttemptDelay())) return false; } if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus() - .equals(other.getStatus())) return false; + if (!getStatus().equals(other.getStatus())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -512,89 +604,93 @@ public int hashCode() { } public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.SequenceReport.Attempt parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.SequenceReport.Attempt parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.SequenceReport.Attempt parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.SequenceReport.Attempt prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -604,27 +700,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Contains metrics on individual RPC Attempts in a sequence.
      * 
* * Protobuf type {@code google.showcase.v1beta1.SequenceReport.Attempt} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.SequenceReport.Attempt) com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_Attempt_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_SequenceReport_Attempt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_Attempt_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_SequenceReport_Attempt_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.SequenceReport.Attempt.class, com.google.showcase.v1beta1.SequenceReport.Attempt.Builder.class); + com.google.showcase.v1beta1.SequenceReport.Attempt.class, + com.google.showcase.v1beta1.SequenceReport.Attempt.Builder.class); } // Construct using com.google.showcase.v1beta1.SequenceReport.Attempt.newBuilder() @@ -632,20 +733,20 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAttemptDeadlineFieldBuilder(); getResponseTimeFieldBuilder(); getAttemptDelayFieldBuilder(); getStatusFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -675,9 +776,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_Attempt_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_SequenceReport_Attempt_descriptor; } @java.lang.Override @@ -696,8 +797,11 @@ public com.google.showcase.v1beta1.SequenceReport.Attempt build() { @java.lang.Override public com.google.showcase.v1beta1.SequenceReport.Attempt buildPartial() { - com.google.showcase.v1beta1.SequenceReport.Attempt result = new com.google.showcase.v1beta1.SequenceReport.Attempt(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.SequenceReport.Attempt result = + new com.google.showcase.v1beta1.SequenceReport.Attempt(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -709,27 +813,22 @@ private void buildPartial0(com.google.showcase.v1beta1.SequenceReport.Attempt re } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.attemptDeadline_ = attemptDeadlineBuilder_ == null - ? attemptDeadline_ - : attemptDeadlineBuilder_.build(); + result.attemptDeadline_ = + attemptDeadlineBuilder_ == null ? attemptDeadline_ : attemptDeadlineBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.responseTime_ = responseTimeBuilder_ == null - ? responseTime_ - : responseTimeBuilder_.build(); + result.responseTime_ = + responseTimeBuilder_ == null ? responseTime_ : responseTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.attemptDelay_ = attemptDelayBuilder_ == null - ? attemptDelay_ - : attemptDelayBuilder_.build(); + result.attemptDelay_ = + attemptDelayBuilder_ == null ? attemptDelay_ : attemptDelayBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.status_ = statusBuilder_ == null - ? status_ - : statusBuilder_.build(); + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; @@ -739,38 +838,41 @@ private void buildPartial0(com.google.showcase.v1beta1.SequenceReport.Attempt re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.SequenceReport.Attempt) { - return mergeFrom((com.google.showcase.v1beta1.SequenceReport.Attempt)other); + return mergeFrom((com.google.showcase.v1beta1.SequenceReport.Attempt) other); } else { super.mergeFrom(other); return this; @@ -778,7 +880,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.SequenceReport.Attempt other) { - if (other == com.google.showcase.v1beta1.SequenceReport.Attempt.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.SequenceReport.Attempt.getDefaultInstance()) + return this; if (other.getAttemptNumber() != 0) { setAttemptNumber(other.getAttemptNumber()); } @@ -820,45 +923,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - attemptNumber_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getAttemptDeadlineFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getResponseTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getAttemptDelayFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + attemptNumber_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + getAttemptDeadlineFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getResponseTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getAttemptDelayFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -868,15 +970,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int attemptNumber_ ; + private int attemptNumber_; /** + * + * *
        * The attempt number - starting at 0.
        * 
* * int32 attempt_number = 1; + * * @return The attemptNumber. */ @java.lang.Override @@ -884,11 +990,14 @@ public int getAttemptNumber() { return attemptNumber_; } /** + * + * *
        * The attempt number - starting at 0.
        * 
* * int32 attempt_number = 1; + * * @param value The attemptNumber to set. * @return This builder for chaining. */ @@ -900,11 +1009,14 @@ public Builder setAttemptNumber(int value) { return this; } /** + * + * *
        * The attempt number - starting at 0.
        * 
* * int32 attempt_number = 1; + * * @return This builder for chaining. */ public Builder clearAttemptNumber() { @@ -916,34 +1028,47 @@ public Builder clearAttemptNumber() { private com.google.protobuf.Timestamp attemptDeadline_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> attemptDeadlineBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + attemptDeadlineBuilder_; /** + * + * *
        * The deadline dictated by the attempt to the server.
        * 
* * .google.protobuf.Timestamp attempt_deadline = 2; + * * @return Whether the attemptDeadline field is set. */ public boolean hasAttemptDeadline() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * The deadline dictated by the attempt to the server.
        * 
* * .google.protobuf.Timestamp attempt_deadline = 2; + * * @return The attemptDeadline. */ public com.google.protobuf.Timestamp getAttemptDeadline() { if (attemptDeadlineBuilder_ == null) { - return attemptDeadline_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : attemptDeadline_; + return attemptDeadline_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : attemptDeadline_; } else { return attemptDeadlineBuilder_.getMessage(); } } /** + * + * *
        * The deadline dictated by the attempt to the server.
        * 
@@ -964,14 +1089,15 @@ public Builder setAttemptDeadline(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The deadline dictated by the attempt to the server.
        * 
* * .google.protobuf.Timestamp attempt_deadline = 2; */ - public Builder setAttemptDeadline( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setAttemptDeadline(com.google.protobuf.Timestamp.Builder builderForValue) { if (attemptDeadlineBuilder_ == null) { attemptDeadline_ = builderForValue.build(); } else { @@ -982,6 +1108,8 @@ public Builder setAttemptDeadline( return this; } /** + * + * *
        * The deadline dictated by the attempt to the server.
        * 
@@ -990,9 +1118,9 @@ public Builder setAttemptDeadline( */ public Builder mergeAttemptDeadline(com.google.protobuf.Timestamp value) { if (attemptDeadlineBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - attemptDeadline_ != null && - attemptDeadline_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && attemptDeadline_ != null + && attemptDeadline_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getAttemptDeadlineBuilder().mergeFrom(value); } else { attemptDeadline_ = value; @@ -1007,6 +1135,8 @@ public Builder mergeAttemptDeadline(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The deadline dictated by the attempt to the server.
        * 
@@ -1024,6 +1154,8 @@ public Builder clearAttemptDeadline() { return this; } /** + * + * *
        * The deadline dictated by the attempt to the server.
        * 
@@ -1036,6 +1168,8 @@ public com.google.protobuf.Timestamp.Builder getAttemptDeadlineBuilder() { return getAttemptDeadlineFieldBuilder().getBuilder(); } /** + * + * *
        * The deadline dictated by the attempt to the server.
        * 
@@ -1046,11 +1180,14 @@ public com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder() { if (attemptDeadlineBuilder_ != null) { return attemptDeadlineBuilder_.getMessageOrBuilder(); } else { - return attemptDeadline_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : attemptDeadline_; + return attemptDeadline_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : attemptDeadline_; } } /** + * + * *
        * The deadline dictated by the attempt to the server.
        * 
@@ -1058,14 +1195,17 @@ public com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder() { * .google.protobuf.Timestamp attempt_deadline = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getAttemptDeadlineFieldBuilder() { if (attemptDeadlineBuilder_ == null) { - attemptDeadlineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getAttemptDeadline(), - getParentForChildren(), - isClean()); + attemptDeadlineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getAttemptDeadline(), getParentForChildren(), isClean()); attemptDeadline_ = null; } return attemptDeadlineBuilder_; @@ -1073,36 +1213,49 @@ public com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder() { private com.google.protobuf.Timestamp responseTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> responseTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + responseTimeBuilder_; /** + * + * *
        * The time that the server responded to the RPC attempt. Used for
        * calculating attempt_delay.
        * 
* * .google.protobuf.Timestamp response_time = 3; + * * @return Whether the responseTime field is set. */ public boolean hasResponseTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * The time that the server responded to the RPC attempt. Used for
        * calculating attempt_delay.
        * 
* * .google.protobuf.Timestamp response_time = 3; + * * @return The responseTime. */ public com.google.protobuf.Timestamp getResponseTime() { if (responseTimeBuilder_ == null) { - return responseTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : responseTime_; + return responseTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : responseTime_; } else { return responseTimeBuilder_.getMessage(); } } /** + * + * *
        * The time that the server responded to the RPC attempt. Used for
        * calculating attempt_delay.
@@ -1124,6 +1277,8 @@ public Builder setResponseTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The time that the server responded to the RPC attempt. Used for
        * calculating attempt_delay.
@@ -1131,8 +1286,7 @@ public Builder setResponseTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp response_time = 3;
        */
-      public Builder setResponseTime(
-          com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setResponseTime(com.google.protobuf.Timestamp.Builder builderForValue) {
         if (responseTimeBuilder_ == null) {
           responseTime_ = builderForValue.build();
         } else {
@@ -1143,6 +1297,8 @@ public Builder setResponseTime(
         return this;
       }
       /**
+       *
+       *
        * 
        * The time that the server responded to the RPC attempt. Used for
        * calculating attempt_delay.
@@ -1152,9 +1308,9 @@ public Builder setResponseTime(
        */
       public Builder mergeResponseTime(com.google.protobuf.Timestamp value) {
         if (responseTimeBuilder_ == null) {
-          if (((bitField0_ & 0x00000004) != 0) &&
-            responseTime_ != null &&
-            responseTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000004) != 0)
+              && responseTime_ != null
+              && responseTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
             getResponseTimeBuilder().mergeFrom(value);
           } else {
             responseTime_ = value;
@@ -1169,6 +1325,8 @@ public Builder mergeResponseTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The time that the server responded to the RPC attempt. Used for
        * calculating attempt_delay.
@@ -1187,6 +1345,8 @@ public Builder clearResponseTime() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The time that the server responded to the RPC attempt. Used for
        * calculating attempt_delay.
@@ -1200,6 +1360,8 @@ public com.google.protobuf.Timestamp.Builder getResponseTimeBuilder() {
         return getResponseTimeFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The time that the server responded to the RPC attempt. Used for
        * calculating attempt_delay.
@@ -1211,11 +1373,14 @@ public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() {
         if (responseTimeBuilder_ != null) {
           return responseTimeBuilder_.getMessageOrBuilder();
         } else {
-          return responseTime_ == null ?
-              com.google.protobuf.Timestamp.getDefaultInstance() : responseTime_;
+          return responseTime_ == null
+              ? com.google.protobuf.Timestamp.getDefaultInstance()
+              : responseTime_;
         }
       }
       /**
+       *
+       *
        * 
        * The time that the server responded to the RPC attempt. Used for
        * calculating attempt_delay.
@@ -1224,14 +1389,17 @@ public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() {
        * .google.protobuf.Timestamp response_time = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
           getResponseTimeFieldBuilder() {
         if (responseTimeBuilder_ == null) {
-          responseTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                  getResponseTime(),
-                  getParentForChildren(),
-                  isClean());
+          responseTimeBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Timestamp,
+                  com.google.protobuf.Timestamp.Builder,
+                  com.google.protobuf.TimestampOrBuilder>(
+                  getResponseTime(), getParentForChildren(), isClean());
           responseTime_ = null;
         }
         return responseTimeBuilder_;
@@ -1239,36 +1407,49 @@ public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() {
 
       private com.google.protobuf.Duration attemptDelay_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> attemptDelayBuilder_;
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
+          attemptDelayBuilder_;
       /**
+       *
+       *
        * 
        * The server perceived delay between sending the last response and
        * receiving this attempt. Used for validating attempt delay backoff.
        * 
* * .google.protobuf.Duration attempt_delay = 4; + * * @return Whether the attemptDelay field is set. */ public boolean hasAttemptDelay() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
        * The server perceived delay between sending the last response and
        * receiving this attempt. Used for validating attempt delay backoff.
        * 
* * .google.protobuf.Duration attempt_delay = 4; + * * @return The attemptDelay. */ public com.google.protobuf.Duration getAttemptDelay() { if (attemptDelayBuilder_ == null) { - return attemptDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : attemptDelay_; + return attemptDelay_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : attemptDelay_; } else { return attemptDelayBuilder_.getMessage(); } } /** + * + * *
        * The server perceived delay between sending the last response and
        * receiving this attempt. Used for validating attempt delay backoff.
@@ -1290,6 +1471,8 @@ public Builder setAttemptDelay(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The server perceived delay between sending the last response and
        * receiving this attempt. Used for validating attempt delay backoff.
@@ -1297,8 +1480,7 @@ public Builder setAttemptDelay(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration attempt_delay = 4;
        */
-      public Builder setAttemptDelay(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setAttemptDelay(com.google.protobuf.Duration.Builder builderForValue) {
         if (attemptDelayBuilder_ == null) {
           attemptDelay_ = builderForValue.build();
         } else {
@@ -1309,6 +1491,8 @@ public Builder setAttemptDelay(
         return this;
       }
       /**
+       *
+       *
        * 
        * The server perceived delay between sending the last response and
        * receiving this attempt. Used for validating attempt delay backoff.
@@ -1318,9 +1502,9 @@ public Builder setAttemptDelay(
        */
       public Builder mergeAttemptDelay(com.google.protobuf.Duration value) {
         if (attemptDelayBuilder_ == null) {
-          if (((bitField0_ & 0x00000008) != 0) &&
-            attemptDelay_ != null &&
-            attemptDelay_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000008) != 0)
+              && attemptDelay_ != null
+              && attemptDelay_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getAttemptDelayBuilder().mergeFrom(value);
           } else {
             attemptDelay_ = value;
@@ -1335,6 +1519,8 @@ public Builder mergeAttemptDelay(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The server perceived delay between sending the last response and
        * receiving this attempt. Used for validating attempt delay backoff.
@@ -1353,6 +1539,8 @@ public Builder clearAttemptDelay() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The server perceived delay between sending the last response and
        * receiving this attempt. Used for validating attempt delay backoff.
@@ -1366,6 +1554,8 @@ public com.google.protobuf.Duration.Builder getAttemptDelayBuilder() {
         return getAttemptDelayFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The server perceived delay between sending the last response and
        * receiving this attempt. Used for validating attempt delay backoff.
@@ -1377,11 +1567,14 @@ public com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder() {
         if (attemptDelayBuilder_ != null) {
           return attemptDelayBuilder_.getMessageOrBuilder();
         } else {
-          return attemptDelay_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : attemptDelay_;
+          return attemptDelay_ == null
+              ? com.google.protobuf.Duration.getDefaultInstance()
+              : attemptDelay_;
         }
       }
       /**
+       *
+       *
        * 
        * The server perceived delay between sending the last response and
        * receiving this attempt. Used for validating attempt delay backoff.
@@ -1390,14 +1583,17 @@ public com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder() {
        * .google.protobuf.Duration attempt_delay = 4;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
           getAttemptDelayFieldBuilder() {
         if (attemptDelayBuilder_ == null) {
-          attemptDelayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getAttemptDelay(),
-                  getParentForChildren(),
-                  isClean());
+          attemptDelayBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getAttemptDelay(), getParentForChildren(), isClean());
           attemptDelay_ = null;
         }
         return attemptDelayBuilder_;
@@ -1405,24 +1601,31 @@ public com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder() {
 
       private com.google.rpc.Status status_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_;
+              com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+          statusBuilder_;
       /**
+       *
+       *
        * 
        * The status returned to the attempt.
        * 
* * .google.rpc.Status status = 5; + * * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
        * The status returned to the attempt.
        * 
* * .google.rpc.Status status = 5; + * * @return The status. */ public com.google.rpc.Status getStatus() { @@ -1433,6 +1636,8 @@ public com.google.rpc.Status getStatus() { } } /** + * + * *
        * The status returned to the attempt.
        * 
@@ -1453,14 +1658,15 @@ public Builder setStatus(com.google.rpc.Status value) { return this; } /** + * + * *
        * The status returned to the attempt.
        * 
* * .google.rpc.Status status = 5; */ - public Builder setStatus( - com.google.rpc.Status.Builder builderForValue) { + public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { @@ -1471,6 +1677,8 @@ public Builder setStatus( return this; } /** + * + * *
        * The status returned to the attempt.
        * 
@@ -1479,9 +1687,9 @@ public Builder setStatus( */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - status_ != null && - status_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; @@ -1496,6 +1704,8 @@ public Builder mergeStatus(com.google.rpc.Status value) { return this; } /** + * + * *
        * The status returned to the attempt.
        * 
@@ -1513,6 +1723,8 @@ public Builder clearStatus() { return this; } /** + * + * *
        * The status returned to the attempt.
        * 
@@ -1525,6 +1737,8 @@ public com.google.rpc.Status.Builder getStatusBuilder() { return getStatusFieldBuilder().getBuilder(); } /** + * + * *
        * The status returned to the attempt.
        * 
@@ -1535,11 +1749,12 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? - com.google.rpc.Status.getDefaultInstance() : status_; + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } } /** + * + * *
        * The status returned to the attempt.
        * 
@@ -1547,18 +1762,19 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * .google.rpc.Status status = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1571,12 +1787,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.SequenceReport.Attempt) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.SequenceReport.Attempt) private static final com.google.showcase.v1beta1.SequenceReport.Attempt DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.SequenceReport.Attempt(); } @@ -1585,27 +1801,28 @@ public static com.google.showcase.v1beta1.SequenceReport.Attempt getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Attempt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Attempt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1620,14 +1837,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.SequenceReport.Attempt getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1636,8 +1854,7 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1645,16 +1862,15 @@ public java.lang.String getName() { } /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1663,9 +1879,12 @@ public java.lang.String getName() { } public static final int ATTEMPTS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List attempts_; /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
@@ -1677,6 +1896,8 @@ public java.util.List getAtt return attempts_; } /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
@@ -1684,11 +1905,13 @@ public java.util.List getAtt * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; */ @java.lang.Override - public java.util.List + public java.util.List getAttemptsOrBuilderList() { return attempts_; } /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
@@ -1700,6 +1923,8 @@ public int getAttemptsCount() { return attempts_.size(); } /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
@@ -1711,6 +1936,8 @@ public com.google.showcase.v1beta1.SequenceReport.Attempt getAttempts(int index) return attempts_.get(index); } /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
@@ -1724,6 +1951,7 @@ public com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder getAttemptsOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1735,8 +1963,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1756,8 +1983,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < attempts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, attempts_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, attempts_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1767,17 +1993,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.SequenceReport)) { return super.equals(obj); } - com.google.showcase.v1beta1.SequenceReport other = (com.google.showcase.v1beta1.SequenceReport) obj; + com.google.showcase.v1beta1.SequenceReport other = + (com.google.showcase.v1beta1.SequenceReport) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getAttemptsList() - .equals(other.getAttemptsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getAttemptsList().equals(other.getAttemptsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1800,128 +2025,128 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.SequenceReport parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.SequenceReport parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.SequenceReport parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.SequenceReport parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.SequenceReport parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.SequenceReport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.SequenceReport parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.SequenceReport parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.SequenceReport parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.SequenceReport parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.SequenceReport parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.SequenceReport parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.SequenceReport parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.SequenceReport parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.SequenceReport prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.SequenceReport} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.SequenceReport} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.SequenceReport) com.google.showcase.v1beta1.SequenceReportOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_SequenceReport_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_SequenceReport_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.SequenceReport.class, com.google.showcase.v1beta1.SequenceReport.Builder.class); + com.google.showcase.v1beta1.SequenceReport.class, + com.google.showcase.v1beta1.SequenceReport.Builder.class); } // Construct using com.google.showcase.v1beta1.SequenceReport.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1938,9 +2163,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_SequenceReport_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_SequenceReport_descriptor; } @java.lang.Override @@ -1959,9 +2184,12 @@ public com.google.showcase.v1beta1.SequenceReport build() { @java.lang.Override public com.google.showcase.v1beta1.SequenceReport buildPartial() { - com.google.showcase.v1beta1.SequenceReport result = new com.google.showcase.v1beta1.SequenceReport(this); + com.google.showcase.v1beta1.SequenceReport result = + new com.google.showcase.v1beta1.SequenceReport(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1989,38 +2217,39 @@ private void buildPartial0(com.google.showcase.v1beta1.SequenceReport result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.SequenceReport) { - return mergeFrom((com.google.showcase.v1beta1.SequenceReport)other); + return mergeFrom((com.google.showcase.v1beta1.SequenceReport) other); } else { super.mergeFrom(other); return this; @@ -2052,9 +2281,10 @@ public Builder mergeFrom(com.google.showcase.v1beta1.SequenceReport other) { attemptsBuilder_ = null; attempts_ = other.attempts_; bitField0_ = (bitField0_ & ~0x00000002); - attemptsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAttemptsFieldBuilder() : null; + attemptsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAttemptsFieldBuilder() + : null; } else { attemptsBuilder_.addAllMessages(other.attempts_); } @@ -2086,30 +2316,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.showcase.v1beta1.SequenceReport.Attempt m = - input.readMessage( - com.google.showcase.v1beta1.SequenceReport.Attempt.parser(), - extensionRegistry); - if (attemptsBuilder_ == null) { - ensureAttemptsIsMutable(); - attempts_.add(m); - } else { - attemptsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.showcase.v1beta1.SequenceReport.Attempt m = + input.readMessage( + com.google.showcase.v1beta1.SequenceReport.Attempt.parser(), + extensionRegistry); + if (attemptsBuilder_ == null) { + ensureAttemptsIsMutable(); + attempts_.add(m); + } else { + attemptsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2119,18 +2352,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2140,15 +2374,14 @@ public java.lang.String getName() { } /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2157,12 +2390,14 @@ public java.lang.String getName() { } /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); @@ -2170,6 +2405,7 @@ public Builder setName( } /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2180,12 +2416,14 @@ public Builder clearName() { } /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2194,18 +2432,25 @@ public Builder setNameBytes( } private java.util.List attempts_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAttemptsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - attempts_ = new java.util.ArrayList(attempts_); + attempts_ = + new java.util.ArrayList(attempts_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.SequenceReport.Attempt, com.google.showcase.v1beta1.SequenceReport.Attempt.Builder, com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder> attemptsBuilder_; + com.google.showcase.v1beta1.SequenceReport.Attempt, + com.google.showcase.v1beta1.SequenceReport.Attempt.Builder, + com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder> + attemptsBuilder_; /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2220,6 +2465,8 @@ public java.util.List getAtt } } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2234,6 +2481,8 @@ public int getAttemptsCount() { } } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2248,6 +2497,8 @@ public com.google.showcase.v1beta1.SequenceReport.Attempt getAttempts(int index) } } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2269,6 +2520,8 @@ public Builder setAttempts( return this; } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2287,6 +2540,8 @@ public Builder setAttempts( return this; } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2307,6 +2562,8 @@ public Builder addAttempts(com.google.showcase.v1beta1.SequenceReport.Attempt va return this; } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2328,6 +2585,8 @@ public Builder addAttempts( return this; } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2346,6 +2605,8 @@ public Builder addAttempts( return this; } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2364,6 +2625,8 @@ public Builder addAttempts( return this; } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2374,8 +2637,7 @@ public Builder addAllAttempts( java.lang.Iterable values) { if (attemptsBuilder_ == null) { ensureAttemptsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, attempts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attempts_); onChanged(); } else { attemptsBuilder_.addAllMessages(values); @@ -2383,6 +2645,8 @@ public Builder addAllAttempts( return this; } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2400,6 +2664,8 @@ public Builder clearAttempts() { return this; } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2417,6 +2683,8 @@ public Builder removeAttempts(int index) { return this; } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2428,6 +2696,8 @@ public com.google.showcase.v1beta1.SequenceReport.Attempt.Builder getAttemptsBui return getAttemptsFieldBuilder().getBuilder(index); } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2437,19 +2707,22 @@ public com.google.showcase.v1beta1.SequenceReport.Attempt.Builder getAttemptsBui public com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder getAttemptsOrBuilder( int index) { if (attemptsBuilder_ == null) { - return attempts_.get(index); } else { + return attempts_.get(index); + } else { return attemptsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
* * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; */ - public java.util.List - getAttemptsOrBuilderList() { + public java.util.List + getAttemptsOrBuilderList() { if (attemptsBuilder_ != null) { return attemptsBuilder_.getMessageOrBuilderList(); } else { @@ -2457,6 +2730,8 @@ public com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder getAttemptsOr } } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2464,10 +2739,12 @@ public com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder getAttemptsOr * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; */ public com.google.showcase.v1beta1.SequenceReport.Attempt.Builder addAttemptsBuilder() { - return getAttemptsFieldBuilder().addBuilder( - com.google.showcase.v1beta1.SequenceReport.Attempt.getDefaultInstance()); + return getAttemptsFieldBuilder() + .addBuilder(com.google.showcase.v1beta1.SequenceReport.Attempt.getDefaultInstance()); } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2476,37 +2753,43 @@ public com.google.showcase.v1beta1.SequenceReport.Attempt.Builder addAttemptsBui */ public com.google.showcase.v1beta1.SequenceReport.Attempt.Builder addAttemptsBuilder( int index) { - return getAttemptsFieldBuilder().addBuilder( - index, com.google.showcase.v1beta1.SequenceReport.Attempt.getDefaultInstance()); + return getAttemptsFieldBuilder() + .addBuilder( + index, com.google.showcase.v1beta1.SequenceReport.Attempt.getDefaultInstance()); } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
* * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; */ - public java.util.List - getAttemptsBuilderList() { + public java.util.List + getAttemptsBuilderList() { return getAttemptsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.SequenceReport.Attempt, com.google.showcase.v1beta1.SequenceReport.Attempt.Builder, com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder> + com.google.showcase.v1beta1.SequenceReport.Attempt, + com.google.showcase.v1beta1.SequenceReport.Attempt.Builder, + com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder> getAttemptsFieldBuilder() { if (attemptsBuilder_ == null) { - attemptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.SequenceReport.Attempt, com.google.showcase.v1beta1.SequenceReport.Attempt.Builder, com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder>( - attempts_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + attemptsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.SequenceReport.Attempt, + com.google.showcase.v1beta1.SequenceReport.Attempt.Builder, + com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder>( + attempts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); attempts_ = null; } return attemptsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2516,12 +2799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.SequenceReport) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.SequenceReport) private static final com.google.showcase.v1beta1.SequenceReport DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.SequenceReport(); } @@ -2530,27 +2813,27 @@ public static com.google.showcase.v1beta1.SequenceReport getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SequenceReport parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SequenceReport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2565,6 +2848,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.SequenceReport getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java similarity index 100% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportOrBuilder.java similarity index 69% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportOrBuilder.java index 1aa16604e8..252eb4e596 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportOrBuilder.java @@ -1,35 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/sequence.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface SequenceReportOrBuilder extends +public interface SequenceReportOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.SequenceReport) com.google.protobuf.MessageOrBuilder { /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
* * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; */ - java.util.List - getAttemptsList(); + java.util.List getAttemptsList(); /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
@@ -38,6 +58,8 @@ public interface SequenceReportOrBuilder extends */ com.google.showcase.v1beta1.SequenceReport.Attempt getAttempts(int index); /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
@@ -46,21 +68,24 @@ public interface SequenceReportOrBuilder extends */ int getAttemptsCount(); /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
* * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; */ - java.util.List + java.util.List getAttemptsOrBuilderList(); /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
* * repeated .google.showcase.v1beta1.SequenceReport.Attempt attempts = 2; */ - com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder getAttemptsOrBuilder( - int index); + com.google.showcase.v1beta1.SequenceReport.AttemptOrBuilder getAttemptsOrBuilder(int index); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Session.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Session.java similarity index 69% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Session.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Session.java index e7d049de76..c1f1829f8c 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Session.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Session.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * A session is a suite of tests, generally being made in the context
  * of testing code generation.
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.Session}
  */
-public final class Session extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Session extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.Session)
     SessionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Session.newBuilder() to construct.
   private Session(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Session() {
     name_ = "";
     version_ = 0;
@@ -31,34 +49,38 @@ private Session() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Session();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Session_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.TestingOuterClass
+        .internal_static_google_showcase_v1beta1_Session_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Session_fieldAccessorTable
+    return com.google.showcase.v1beta1.TestingOuterClass
+        .internal_static_google_showcase_v1beta1_Session_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.Session.class, com.google.showcase.v1beta1.Session.Builder.class);
+            com.google.showcase.v1beta1.Session.class,
+            com.google.showcase.v1beta1.Session.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The specification versions understood by Showcase.
    * 
* * Protobuf enum {@code google.showcase.v1beta1.Session.Version} */ - public enum Version - implements com.google.protobuf.ProtocolMessageEnum { + public enum Version implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified version. If passed on creation, the session will default
      * to using the latest stable release.
@@ -68,6 +90,8 @@ public enum Version
      */
     VERSION_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * The latest v1. Currently, this is v1.0.
      * 
@@ -76,6 +100,8 @@ public enum Version */ V1_LATEST(1), /** + * + * *
      * v1.0. (Until the spec is "GA", this will be a moving target.)
      * 
@@ -87,6 +113,8 @@ public enum Version ; /** + * + * *
      * Unspecified version. If passed on creation, the session will default
      * to using the latest stable release.
@@ -96,6 +124,8 @@ public enum Version
      */
     public static final int VERSION_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The latest v1. Currently, this is v1.0.
      * 
@@ -104,6 +134,8 @@ public enum Version */ public static final int V1_LATEST_VALUE = 1; /** + * + * *
      * v1.0. (Until the spec is "GA", this will be a moving target.)
      * 
@@ -112,7 +144,6 @@ public enum Version */ public static final int V1_0_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -137,49 +168,49 @@ public static Version valueOf(int value) { */ public static Version forNumber(int value) { switch (value) { - case 0: return VERSION_UNSPECIFIED; - case 1: return V1_LATEST; - case 2: return V1_0; - default: return null; + case 0: + return VERSION_UNSPECIFIED; + case 1: + return V1_LATEST; + case 2: + return V1_0; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Version> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Version findValueByNumber(int number) { - return Version.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Version findValueByNumber(int number) { + return Version.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.showcase.v1beta1.Session.getDescriptor().getEnumTypes().get(0); } private static final Version[] VALUES = values(); - public static Version valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Version valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -197,15 +228,19 @@ private Version(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The name of the session. The ID must conform to ^[a-z]+$
    * If this is not provided, Showcase chooses one at random.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -214,30 +249,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the session. The ID must conform to ^[a-z]+$
    * If this is not provided, Showcase chooses one at random.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -248,30 +283,40 @@ public java.lang.String getName() { public static final int VERSION_FIELD_NUMBER = 2; private int version_ = 0; /** + * + * *
    * Required. The version this session is using.
    * 
* * .google.showcase.v1beta1.Session.Version version = 2; + * * @return The enum numeric value on the wire for version. */ - @java.lang.Override public int getVersionValue() { + @java.lang.Override + public int getVersionValue() { return version_; } /** + * + * *
    * Required. The version this session is using.
    * 
* * .google.showcase.v1beta1.Session.Version version = 2; + * * @return The version. */ - @java.lang.Override public com.google.showcase.v1beta1.Session.Version getVersion() { - com.google.showcase.v1beta1.Session.Version result = com.google.showcase.v1beta1.Session.Version.forNumber(version_); + @java.lang.Override + public com.google.showcase.v1beta1.Session.Version getVersion() { + com.google.showcase.v1beta1.Session.Version result = + com.google.showcase.v1beta1.Session.Version.forNumber(version_); return result == null ? com.google.showcase.v1beta1.Session.Version.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -283,8 +328,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -304,8 +348,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (version_ != com.google.showcase.v1beta1.Session.Version.VERSION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, version_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, version_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -315,15 +358,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.Session)) { return super.equals(obj); } com.google.showcase.v1beta1.Session other = (com.google.showcase.v1beta1.Session) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (version_ != other.version_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -345,99 +387,103 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.Session parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.Session parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Session parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.Session parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.showcase.v1beta1.Session parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Session parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.Session parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Session parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.Session parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.Session parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.showcase.v1beta1.Session parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.Session parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.Session parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.Session parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.Session prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A session is a suite of tests, generally being made in the context
    * of testing code generation.
@@ -448,33 +494,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.Session}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.Session)
       com.google.showcase.v1beta1.SessionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Session_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.TestingOuterClass
+          .internal_static_google_showcase_v1beta1_Session_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Session_fieldAccessorTable
+      return com.google.showcase.v1beta1.TestingOuterClass
+          .internal_static_google_showcase_v1beta1_Session_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.Session.class, com.google.showcase.v1beta1.Session.Builder.class);
+              com.google.showcase.v1beta1.Session.class,
+              com.google.showcase.v1beta1.Session.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.Session.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -485,9 +530,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Session_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.TestingOuterClass
+          .internal_static_google_showcase_v1beta1_Session_descriptor;
     }
 
     @java.lang.Override
@@ -507,7 +552,9 @@ public com.google.showcase.v1beta1.Session build() {
     @java.lang.Override
     public com.google.showcase.v1beta1.Session buildPartial() {
       com.google.showcase.v1beta1.Session result = new com.google.showcase.v1beta1.Session(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -526,38 +573,39 @@ private void buildPartial0(com.google.showcase.v1beta1.Session result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.Session) {
-        return mergeFrom((com.google.showcase.v1beta1.Session)other);
+        return mergeFrom((com.google.showcase.v1beta1.Session) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -600,22 +648,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              version_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                version_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -625,23 +676,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the session. The ID must conform to ^[a-z]+$
      * If this is not provided, Showcase chooses one at random.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -650,21 +704,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the session. The ID must conform to ^[a-z]+$
      * If this is not provided, Showcase chooses one at random.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -672,30 +727,37 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the session. The ID must conform to ^[a-z]+$
      * If this is not provided, Showcase chooses one at random.
      * 
* * 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(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the session. The ID must conform to ^[a-z]+$
      * If this is not provided, Showcase chooses one at random.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -705,18 +767,22 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the session. The ID must conform to ^[a-z]+$
      * If this is not provided, Showcase chooses one at random.
      * 
* * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -726,22 +792,29 @@ public Builder setNameBytes( private int version_ = 0; /** + * + * *
      * Required. The version this session is using.
      * 
* * .google.showcase.v1beta1.Session.Version version = 2; + * * @return The enum numeric value on the wire for version. */ - @java.lang.Override public int getVersionValue() { + @java.lang.Override + public int getVersionValue() { return version_; } /** + * + * *
      * Required. The version this session is using.
      * 
* * .google.showcase.v1beta1.Session.Version version = 2; + * * @param value The enum numeric value on the wire for version to set. * @return This builder for chaining. */ @@ -752,24 +825,31 @@ public Builder setVersionValue(int value) { return this; } /** + * + * *
      * Required. The version this session is using.
      * 
* * .google.showcase.v1beta1.Session.Version version = 2; + * * @return The version. */ @java.lang.Override public com.google.showcase.v1beta1.Session.Version getVersion() { - com.google.showcase.v1beta1.Session.Version result = com.google.showcase.v1beta1.Session.Version.forNumber(version_); + com.google.showcase.v1beta1.Session.Version result = + com.google.showcase.v1beta1.Session.Version.forNumber(version_); return result == null ? com.google.showcase.v1beta1.Session.Version.UNRECOGNIZED : result; } /** + * + * *
      * Required. The version this session is using.
      * 
* * .google.showcase.v1beta1.Session.Version version = 2; + * * @param value The version to set. * @return This builder for chaining. */ @@ -783,11 +863,14 @@ public Builder setVersion(com.google.showcase.v1beta1.Session.Version value) { return this; } /** + * + * *
      * Required. The version this session is using.
      * 
* * .google.showcase.v1beta1.Session.Version version = 2; + * * @return This builder for chaining. */ public Builder clearVersion() { @@ -796,9 +879,9 @@ public Builder clearVersion() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +891,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.Session) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.Session) private static final com.google.showcase.v1beta1.Session DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.Session(); } @@ -822,27 +905,27 @@ public static com.google.showcase.v1beta1.Session getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Session parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Session parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,6 +940,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.Session getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java similarity index 100% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionOrBuilder.java similarity index 63% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionOrBuilder.java index cb0490b308..2bfa135280 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionOrBuilder.java @@ -1,50 +1,77 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface SessionOrBuilder extends +public interface SessionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.Session) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the session. The ID must conform to ^[a-z]+$
    * If this is not provided, Showcase chooses one at random.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the session. The ID must conform to ^[a-z]+$
    * If this is not provided, Showcase chooses one at random.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The version this session is using.
    * 
* * .google.showcase.v1beta1.Session.Version version = 2; + * * @return The enum numeric value on the wire for version. */ int getVersionValue(); /** + * + * *
    * Required. The version this session is using.
    * 
* * .google.showcase.v1beta1.Session.Version version = 2; + * * @return The version. */ com.google.showcase.v1beta1.Session.Version getVersion(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Severity.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Severity.java similarity index 57% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Severity.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Severity.java index e317880ca4..03aca8bea3 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Severity.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Severity.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto @@ -5,51 +20,35 @@ package com.google.showcase.v1beta1; /** + * + * *
  * A severity enum used to test enum capabilities in GAPIC surfaces.
  * 
* * Protobuf enum {@code google.showcase.v1beta1.Severity} */ -public enum Severity - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNNECESSARY = 0; - */ +public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + /** UNNECESSARY = 0; */ UNNECESSARY(0), - /** - * NECESSARY = 1; - */ + /** NECESSARY = 1; */ NECESSARY(1), - /** - * URGENT = 2; - */ + /** URGENT = 2; */ URGENT(2), - /** - * CRITICAL = 3; - */ + /** CRITICAL = 3; */ CRITICAL(3), UNRECOGNIZED(-1), ; - /** - * UNNECESSARY = 0; - */ + /** UNNECESSARY = 0; */ public static final int UNNECESSARY_VALUE = 0; - /** - * NECESSARY = 1; - */ + /** NECESSARY = 1; */ public static final int NECESSARY_VALUE = 1; - /** - * URGENT = 2; - */ + /** URGENT = 2; */ public static final int URGENT_VALUE = 2; - /** - * CRITICAL = 3; - */ + /** CRITICAL = 3; */ public static final int CRITICAL_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -74,50 +73,51 @@ public static Severity valueOf(int value) { */ public static Severity forNumber(int value) { switch (value) { - case 0: return UNNECESSARY; - case 1: return NECESSARY; - case 2: return URGENT; - case 3: return CRITICAL; - default: return null; + case 0: + return UNNECESSARY; + case 1: + return NECESSARY; + case 2: + return URGENT; + case 3: + return CRITICAL; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Severity> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Severity findValueByNumber(int number) { - return Severity.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.showcase.v1beta1.EchoOuterClass.getDescriptor().getEnumTypes().get(0); } private static final Severity[] VALUES = values(); - public static Severity valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -133,4 +133,3 @@ private Severity(int value) { // @@protoc_insertion_point(enum_scope:google.showcase.v1beta1.Severity) } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequest.java similarity index 64% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequest.java index d4761f330e..cb60cc040c 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request message for the google.showcase.v1beta1.Messaging\StreamBlurbs
  * method.
@@ -12,49 +29,57 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.StreamBlurbsRequest}
  */
-public final class StreamBlurbsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamBlurbsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.StreamBlurbsRequest)
     StreamBlurbsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamBlurbsRequest.newBuilder() to construct.
   private StreamBlurbsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StreamBlurbsRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamBlurbsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_StreamBlurbsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.StreamBlurbsRequest.class, com.google.showcase.v1beta1.StreamBlurbsRequest.Builder.class);
+            com.google.showcase.v1beta1.StreamBlurbsRequest.class,
+            com.google.showcase.v1beta1.StreamBlurbsRequest.Builder.class);
   }
 
   private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * The resource name of a chat room or user profile whose blurbs to stream.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -63,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of a chat room or user profile whose blurbs to stream.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,11 +123,15 @@ public java.lang.String getName() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * The time at which this stream will close.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -108,11 +139,15 @@ public boolean hasExpireTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The time at which this stream will close.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The expireTime. */ @java.lang.Override @@ -120,11 +155,14 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * The time at which this stream will close.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -132,6 +170,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,8 +182,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -164,8 +202,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -175,19 +212,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.StreamBlurbsRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.StreamBlurbsRequest other = (com.google.showcase.v1beta1.StreamBlurbsRequest) obj; + com.google.showcase.v1beta1.StreamBlurbsRequest other = + (com.google.showcase.v1beta1.StreamBlurbsRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -211,99 +247,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.StreamBlurbsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.StreamBlurbsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.StreamBlurbsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.StreamBlurbsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request message for the google.showcase.v1beta1.Messaging\StreamBlurbs
    * method.
@@ -311,21 +352,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.StreamBlurbsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.StreamBlurbsRequest)
       com.google.showcase.v1beta1.StreamBlurbsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_StreamBlurbsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.StreamBlurbsRequest.class, com.google.showcase.v1beta1.StreamBlurbsRequest.Builder.class);
+              com.google.showcase.v1beta1.StreamBlurbsRequest.class,
+              com.google.showcase.v1beta1.StreamBlurbsRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.StreamBlurbsRequest.newBuilder()
@@ -333,17 +376,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getExpireTimeFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -358,9 +401,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -379,8 +422,11 @@ public com.google.showcase.v1beta1.StreamBlurbsRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.StreamBlurbsRequest buildPartial() {
-      com.google.showcase.v1beta1.StreamBlurbsRequest result = new com.google.showcase.v1beta1.StreamBlurbsRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.StreamBlurbsRequest result =
+          new com.google.showcase.v1beta1.StreamBlurbsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -392,9 +438,7 @@ private void buildPartial0(com.google.showcase.v1beta1.StreamBlurbsRequest resul
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.expireTime_ = expireTimeBuilder_ == null
-            ? expireTime_
-            : expireTimeBuilder_.build();
+        result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
@@ -404,38 +448,39 @@ private void buildPartial0(com.google.showcase.v1beta1.StreamBlurbsRequest resul
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.StreamBlurbsRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.StreamBlurbsRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.StreamBlurbsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -443,7 +488,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.showcase.v1beta1.StreamBlurbsRequest other) {
-      if (other == com.google.showcase.v1beta1.StreamBlurbsRequest.getDefaultInstance()) return this;
+      if (other == com.google.showcase.v1beta1.StreamBlurbsRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -478,24 +524,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getExpireTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -505,22 +552,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of a chat room or user profile whose blurbs to stream.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -529,20 +581,23 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of a chat room or user profile whose blurbs to stream.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -550,28 +605,39 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of a chat room or user profile whose blurbs to stream.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of a chat room or user profile whose blurbs to stream.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -581,17 +647,23 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of a chat room or user profile whose blurbs to stream.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -601,39 +673,55 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * The time at which this stream will close.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The time at which this stream will close.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * The time at which this stream will close.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -649,14 +737,16 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which this stream will close.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -667,17 +757,20 @@ public Builder setExpireTime( return this; } /** + * + * *
      * The time at which this stream will close.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - expireTime_ != null && - expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -692,11 +785,14 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which this stream will close.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -709,11 +805,14 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * The time at which this stream will close.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000002; @@ -721,43 +820,53 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which this stream will close.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * The time at which this stream will close.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -767,12 +876,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.StreamBlurbsRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.StreamBlurbsRequest) private static final com.google.showcase.v1beta1.StreamBlurbsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.StreamBlurbsRequest(); } @@ -781,27 +890,27 @@ public static com.google.showcase.v1beta1.StreamBlurbsRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamBlurbsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamBlurbsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -816,6 +925,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.StreamBlurbsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequestOrBuilder.java similarity index 53% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequestOrBuilder.java index fa825081c7..20eabe9144 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsRequestOrBuilder.java @@ -1,57 +1,93 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface StreamBlurbsRequestOrBuilder extends +public interface StreamBlurbsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.StreamBlurbsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of a chat room or user profile whose blurbs to stream.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of a chat room or user profile whose blurbs to stream.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The time at which this stream will close.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * The time at which this stream will close.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * The time at which this stream will close.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponse.java similarity index 69% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponse.java index 2c7601739e..6c74a57258 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The response message for the google.showcase.v1beta1.Messaging\StreamBlurbs
  * method.
@@ -12,53 +29,56 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.StreamBlurbsResponse}
  */
-public final class StreamBlurbsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamBlurbsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.StreamBlurbsResponse)
     StreamBlurbsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamBlurbsResponse.newBuilder() to construct.
   private StreamBlurbsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StreamBlurbsResponse() {
     action_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamBlurbsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsResponse_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_StreamBlurbsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.StreamBlurbsResponse.class, com.google.showcase.v1beta1.StreamBlurbsResponse.Builder.class);
+            com.google.showcase.v1beta1.StreamBlurbsResponse.class,
+            com.google.showcase.v1beta1.StreamBlurbsResponse.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The action that triggered the blurb to be returned.
    * 
* * Protobuf enum {@code google.showcase.v1beta1.StreamBlurbsResponse.Action} */ - public enum Action - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ACTION_UNSPECIFIED = 0; - */ + public enum Action implements com.google.protobuf.ProtocolMessageEnum { + /** ACTION_UNSPECIFIED = 0; */ ACTION_UNSPECIFIED(0), /** + * + * *
      * Specifies that the blurb was created.
      * 
@@ -67,6 +87,8 @@ public enum Action */ CREATE(1), /** + * + * *
      * Specifies that the blurb was updated.
      * 
@@ -75,6 +97,8 @@ public enum Action */ UPDATE(2), /** + * + * *
      * Specifies that the blurb was deleted.
      * 
@@ -85,11 +109,11 @@ public enum Action UNRECOGNIZED(-1), ; - /** - * ACTION_UNSPECIFIED = 0; - */ + /** ACTION_UNSPECIFIED = 0; */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Specifies that the blurb was created.
      * 
@@ -98,6 +122,8 @@ public enum Action */ public static final int CREATE_VALUE = 1; /** + * + * *
      * Specifies that the blurb was updated.
      * 
@@ -106,6 +132,8 @@ public enum Action */ public static final int UPDATE_VALUE = 2; /** + * + * *
      * Specifies that the blurb was deleted.
      * 
@@ -114,7 +142,6 @@ public enum Action */ public static final int DELETE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -139,50 +166,51 @@ public static Action valueOf(int value) { */ public static Action forNumber(int value) { switch (value) { - case 0: return ACTION_UNSPECIFIED; - case 1: return CREATE; - case 2: return UPDATE; - case 3: return DELETE; - default: return null; + case 0: + return ACTION_UNSPECIFIED; + case 1: + return CREATE; + case 2: + return UPDATE; + case 3: + return DELETE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Action> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Action findValueByNumber(int number) { - return Action.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.showcase.v1beta1.StreamBlurbsResponse.getDescriptor().getEnumTypes().get(0); } private static final Action[] VALUES = values(); - public static Action valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -203,11 +231,14 @@ private Action(int value) { public static final int BLURB_FIELD_NUMBER = 1; private com.google.showcase.v1beta1.Blurb blurb_; /** + * + * *
    * The blurb that was either created, updated, or deleted.
    * 
* * .google.showcase.v1beta1.Blurb blurb = 1; + * * @return Whether the blurb field is set. */ @java.lang.Override @@ -215,11 +246,14 @@ public boolean hasBlurb() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The blurb that was either created, updated, or deleted.
    * 
* * .google.showcase.v1beta1.Blurb blurb = 1; + * * @return The blurb. */ @java.lang.Override @@ -227,6 +261,8 @@ public com.google.showcase.v1beta1.Blurb getBlurb() { return blurb_ == null ? com.google.showcase.v1beta1.Blurb.getDefaultInstance() : blurb_; } /** + * + * *
    * The blurb that was either created, updated, or deleted.
    * 
@@ -241,30 +277,42 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { public static final int ACTION_FIELD_NUMBER = 2; private int action_ = 0; /** + * + * *
    * The action that triggered the blurb to be returned.
    * 
* * .google.showcase.v1beta1.StreamBlurbsResponse.Action action = 2; + * * @return The enum numeric value on the wire for action. */ - @java.lang.Override public int getActionValue() { + @java.lang.Override + public int getActionValue() { return action_; } /** + * + * *
    * The action that triggered the blurb to be returned.
    * 
* * .google.showcase.v1beta1.StreamBlurbsResponse.Action action = 2; + * * @return The action. */ - @java.lang.Override public com.google.showcase.v1beta1.StreamBlurbsResponse.Action getAction() { - com.google.showcase.v1beta1.StreamBlurbsResponse.Action result = com.google.showcase.v1beta1.StreamBlurbsResponse.Action.forNumber(action_); - return result == null ? com.google.showcase.v1beta1.StreamBlurbsResponse.Action.UNRECOGNIZED : result; + @java.lang.Override + public com.google.showcase.v1beta1.StreamBlurbsResponse.Action getAction() { + com.google.showcase.v1beta1.StreamBlurbsResponse.Action result = + com.google.showcase.v1beta1.StreamBlurbsResponse.Action.forNumber(action_); + return result == null + ? com.google.showcase.v1beta1.StreamBlurbsResponse.Action.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,12 +324,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getBlurb()); } - if (action_ != com.google.showcase.v1beta1.StreamBlurbsResponse.Action.ACTION_UNSPECIFIED.getNumber()) { + if (action_ + != com.google.showcase.v1beta1.StreamBlurbsResponse.Action.ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(2, action_); } getUnknownFields().writeTo(output); @@ -294,12 +342,11 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBlurb()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBlurb()); } - if (action_ != com.google.showcase.v1beta1.StreamBlurbsResponse.Action.ACTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, action_); + if (action_ + != com.google.showcase.v1beta1.StreamBlurbsResponse.Action.ACTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, action_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -309,17 +356,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.StreamBlurbsResponse)) { return super.equals(obj); } - com.google.showcase.v1beta1.StreamBlurbsResponse other = (com.google.showcase.v1beta1.StreamBlurbsResponse) obj; + com.google.showcase.v1beta1.StreamBlurbsResponse other = + (com.google.showcase.v1beta1.StreamBlurbsResponse) obj; if (hasBlurb() != other.hasBlurb()) return false; if (hasBlurb()) { - if (!getBlurb() - .equals(other.getBlurb())) return false; + if (!getBlurb().equals(other.getBlurb())) return false; } if (action_ != other.action_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -344,99 +391,104 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.StreamBlurbsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.StreamBlurbsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.StreamBlurbsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.StreamBlurbsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response message for the google.showcase.v1beta1.Messaging\StreamBlurbs
    * method.
@@ -444,21 +496,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.StreamBlurbsResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.StreamBlurbsResponse)
       com.google.showcase.v1beta1.StreamBlurbsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsResponse_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_StreamBlurbsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.StreamBlurbsResponse.class, com.google.showcase.v1beta1.StreamBlurbsResponse.Builder.class);
+              com.google.showcase.v1beta1.StreamBlurbsResponse.class,
+              com.google.showcase.v1beta1.StreamBlurbsResponse.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.StreamBlurbsResponse.newBuilder()
@@ -466,17 +520,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getBlurbFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -491,9 +545,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -512,8 +566,11 @@ public com.google.showcase.v1beta1.StreamBlurbsResponse build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.StreamBlurbsResponse buildPartial() {
-      com.google.showcase.v1beta1.StreamBlurbsResponse result = new com.google.showcase.v1beta1.StreamBlurbsResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.StreamBlurbsResponse result =
+          new com.google.showcase.v1beta1.StreamBlurbsResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -522,9 +579,7 @@ private void buildPartial0(com.google.showcase.v1beta1.StreamBlurbsResponse resu
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.blurb_ = blurbBuilder_ == null
-            ? blurb_
-            : blurbBuilder_.build();
+        result.blurb_ = blurbBuilder_ == null ? blurb_ : blurbBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
@@ -537,38 +592,39 @@ private void buildPartial0(com.google.showcase.v1beta1.StreamBlurbsResponse resu
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.StreamBlurbsResponse) {
-        return mergeFrom((com.google.showcase.v1beta1.StreamBlurbsResponse)other);
+        return mergeFrom((com.google.showcase.v1beta1.StreamBlurbsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -576,7 +632,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.showcase.v1beta1.StreamBlurbsResponse other) {
-      if (other == com.google.showcase.v1beta1.StreamBlurbsResponse.getDefaultInstance()) return this;
+      if (other == com.google.showcase.v1beta1.StreamBlurbsResponse.getDefaultInstance())
+        return this;
       if (other.hasBlurb()) {
         mergeBlurb(other.getBlurb());
       }
@@ -609,24 +666,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getBlurbFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              action_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getBlurbFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                action_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -636,28 +694,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.showcase.v1beta1.Blurb blurb_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> blurbBuilder_;
+            com.google.showcase.v1beta1.Blurb,
+            com.google.showcase.v1beta1.Blurb.Builder,
+            com.google.showcase.v1beta1.BlurbOrBuilder>
+        blurbBuilder_;
     /**
+     *
+     *
      * 
      * The blurb that was either created, updated, or deleted.
      * 
* * .google.showcase.v1beta1.Blurb blurb = 1; + * * @return Whether the blurb field is set. */ public boolean hasBlurb() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The blurb that was either created, updated, or deleted.
      * 
* * .google.showcase.v1beta1.Blurb blurb = 1; + * * @return The blurb. */ public com.google.showcase.v1beta1.Blurb getBlurb() { @@ -668,6 +736,8 @@ public com.google.showcase.v1beta1.Blurb getBlurb() { } } /** + * + * *
      * The blurb that was either created, updated, or deleted.
      * 
@@ -688,14 +758,15 @@ public Builder setBlurb(com.google.showcase.v1beta1.Blurb value) { return this; } /** + * + * *
      * The blurb that was either created, updated, or deleted.
      * 
* * .google.showcase.v1beta1.Blurb blurb = 1; */ - public Builder setBlurb( - com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + public Builder setBlurb(com.google.showcase.v1beta1.Blurb.Builder builderForValue) { if (blurbBuilder_ == null) { blurb_ = builderForValue.build(); } else { @@ -706,6 +777,8 @@ public Builder setBlurb( return this; } /** + * + * *
      * The blurb that was either created, updated, or deleted.
      * 
@@ -714,9 +787,9 @@ public Builder setBlurb( */ public Builder mergeBlurb(com.google.showcase.v1beta1.Blurb value) { if (blurbBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - blurb_ != null && - blurb_ != com.google.showcase.v1beta1.Blurb.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && blurb_ != null + && blurb_ != com.google.showcase.v1beta1.Blurb.getDefaultInstance()) { getBlurbBuilder().mergeFrom(value); } else { blurb_ = value; @@ -731,6 +804,8 @@ public Builder mergeBlurb(com.google.showcase.v1beta1.Blurb value) { return this; } /** + * + * *
      * The blurb that was either created, updated, or deleted.
      * 
@@ -748,6 +823,8 @@ public Builder clearBlurb() { return this; } /** + * + * *
      * The blurb that was either created, updated, or deleted.
      * 
@@ -760,6 +837,8 @@ public com.google.showcase.v1beta1.Blurb.Builder getBlurbBuilder() { return getBlurbFieldBuilder().getBuilder(); } /** + * + * *
      * The blurb that was either created, updated, or deleted.
      * 
@@ -770,11 +849,12 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { if (blurbBuilder_ != null) { return blurbBuilder_.getMessageOrBuilder(); } else { - return blurb_ == null ? - com.google.showcase.v1beta1.Blurb.getDefaultInstance() : blurb_; + return blurb_ == null ? com.google.showcase.v1beta1.Blurb.getDefaultInstance() : blurb_; } } /** + * + * *
      * The blurb that was either created, updated, or deleted.
      * 
@@ -782,14 +862,17 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { * .google.showcase.v1beta1.Blurb blurb = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> + com.google.showcase.v1beta1.Blurb, + com.google.showcase.v1beta1.Blurb.Builder, + com.google.showcase.v1beta1.BlurbOrBuilder> getBlurbFieldBuilder() { if (blurbBuilder_ == null) { - blurbBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder>( - getBlurb(), - getParentForChildren(), - isClean()); + blurbBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, + com.google.showcase.v1beta1.Blurb.Builder, + com.google.showcase.v1beta1.BlurbOrBuilder>( + getBlurb(), getParentForChildren(), isClean()); blurb_ = null; } return blurbBuilder_; @@ -797,22 +880,29 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { private int action_ = 0; /** + * + * *
      * The action that triggered the blurb to be returned.
      * 
* * .google.showcase.v1beta1.StreamBlurbsResponse.Action action = 2; + * * @return The enum numeric value on the wire for action. */ - @java.lang.Override public int getActionValue() { + @java.lang.Override + public int getActionValue() { return action_; } /** + * + * *
      * The action that triggered the blurb to be returned.
      * 
* * .google.showcase.v1beta1.StreamBlurbsResponse.Action action = 2; + * * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ @@ -823,24 +913,33 @@ public Builder setActionValue(int value) { return this; } /** + * + * *
      * The action that triggered the blurb to be returned.
      * 
* * .google.showcase.v1beta1.StreamBlurbsResponse.Action action = 2; + * * @return The action. */ @java.lang.Override public com.google.showcase.v1beta1.StreamBlurbsResponse.Action getAction() { - com.google.showcase.v1beta1.StreamBlurbsResponse.Action result = com.google.showcase.v1beta1.StreamBlurbsResponse.Action.forNumber(action_); - return result == null ? com.google.showcase.v1beta1.StreamBlurbsResponse.Action.UNRECOGNIZED : result; + com.google.showcase.v1beta1.StreamBlurbsResponse.Action result = + com.google.showcase.v1beta1.StreamBlurbsResponse.Action.forNumber(action_); + return result == null + ? com.google.showcase.v1beta1.StreamBlurbsResponse.Action.UNRECOGNIZED + : result; } /** + * + * *
      * The action that triggered the blurb to be returned.
      * 
* * .google.showcase.v1beta1.StreamBlurbsResponse.Action action = 2; + * * @param value The action to set. * @return This builder for chaining. */ @@ -854,11 +953,14 @@ public Builder setAction(com.google.showcase.v1beta1.StreamBlurbsResponse.Action return this; } /** + * + * *
      * The action that triggered the blurb to be returned.
      * 
* * .google.showcase.v1beta1.StreamBlurbsResponse.Action action = 2; + * * @return This builder for chaining. */ public Builder clearAction() { @@ -867,9 +969,9 @@ public Builder clearAction() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -879,12 +981,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.StreamBlurbsResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.StreamBlurbsResponse) private static final com.google.showcase.v1beta1.StreamBlurbsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.StreamBlurbsResponse(); } @@ -893,27 +995,27 @@ public static com.google.showcase.v1beta1.StreamBlurbsResponse getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamBlurbsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamBlurbsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -928,6 +1030,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.StreamBlurbsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponseOrBuilder.java similarity index 68% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponseOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponseOrBuilder.java index d009e82fbd..8c538bacea 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponseOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamBlurbsResponseOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface StreamBlurbsResponseOrBuilder extends +public interface StreamBlurbsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.StreamBlurbsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The blurb that was either created, updated, or deleted.
    * 
* * .google.showcase.v1beta1.Blurb blurb = 1; + * * @return Whether the blurb field is set. */ boolean hasBlurb(); /** + * + * *
    * The blurb that was either created, updated, or deleted.
    * 
* * .google.showcase.v1beta1.Blurb blurb = 1; + * * @return The blurb. */ com.google.showcase.v1beta1.Blurb getBlurb(); /** + * + * *
    * The blurb that was either created, updated, or deleted.
    * 
@@ -36,20 +60,26 @@ public interface StreamBlurbsResponseOrBuilder extends com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder(); /** + * + * *
    * The action that triggered the blurb to be returned.
    * 
* * .google.showcase.v1beta1.StreamBlurbsResponse.Action action = 2; + * * @return The enum numeric value on the wire for action. */ int getActionValue(); /** + * + * *
    * The action that triggered the blurb to be returned.
    * 
* * .google.showcase.v1beta1.StreamBlurbsResponse.Action action = 2; + * * @return The action. */ com.google.showcase.v1beta1.StreamBlurbsResponse.Action getAction(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequence.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequence.java similarity index 74% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequence.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequence.java index b775e0cf85..2cc4829318 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequence.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequence.java @@ -1,21 +1,35 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/sequence.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -/** - * Protobuf type {@code google.showcase.v1beta1.StreamingSequence} - */ -public final class StreamingSequence extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.showcase.v1beta1.StreamingSequence} */ +public final class StreamingSequence extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.StreamingSequence) StreamingSequenceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StreamingSequence.newBuilder() to construct. private StreamingSequence(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StreamingSequence() { name_ = ""; content_ = ""; @@ -24,47 +38,57 @@ private StreamingSequence() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StreamingSequence(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_StreamingSequence_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_StreamingSequence_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.StreamingSequence.class, com.google.showcase.v1beta1.StreamingSequence.Builder.class); + com.google.showcase.v1beta1.StreamingSequence.class, + com.google.showcase.v1beta1.StreamingSequence.Builder.class); } - public interface ResponseOrBuilder extends + public interface ResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.StreamingSequence.Response) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The status to return for an individual attempt.
      * 
* * .google.rpc.Status status = 1; + * * @return Whether the status field is set. */ boolean hasStatus(); /** + * + * *
      * The status to return for an individual attempt.
      * 
* * .google.rpc.Status status = 1; + * * @return The status. */ com.google.rpc.Status getStatus(); /** + * + * *
      * The status to return for an individual attempt.
      * 
@@ -74,24 +98,32 @@ public interface ResponseOrBuilder extends com.google.rpc.StatusOrBuilder getStatusOrBuilder(); /** + * + * *
      * The amount of time to delay sending the response.
      * 
* * .google.protobuf.Duration delay = 2; + * * @return Whether the delay field is set. */ boolean hasDelay(); /** + * + * *
      * The amount of time to delay sending the response.
      * 
* * .google.protobuf.Duration delay = 2; + * * @return The delay. */ com.google.protobuf.Duration getDelay(); /** + * + * *
      * The amount of time to delay sending the response.
      * 
@@ -101,63 +133,72 @@ public interface ResponseOrBuilder extends com.google.protobuf.DurationOrBuilder getDelayOrBuilder(); /** + * + * *
      * The index that the status should be sent
      * 
* * int32 response_index = 3; + * * @return The responseIndex. */ int getResponseIndex(); } /** + * + * *
    * A server response to an RPC Attempt in a sequence.
    * 
* * Protobuf type {@code google.showcase.v1beta1.StreamingSequence.Response} */ - public static final class Response extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Response extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.StreamingSequence.Response) ResponseOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Response.newBuilder() to construct. private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Response() { - } + + private Response() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Response(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_Response_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_StreamingSequence_Response_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_Response_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_StreamingSequence_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.StreamingSequence.Response.class, com.google.showcase.v1beta1.StreamingSequence.Response.Builder.class); + com.google.showcase.v1beta1.StreamingSequence.Response.class, + com.google.showcase.v1beta1.StreamingSequence.Response.Builder.class); } private int bitField0_; public static final int STATUS_FIELD_NUMBER = 1; private com.google.rpc.Status status_; /** + * + * *
      * The status to return for an individual attempt.
      * 
* * .google.rpc.Status status = 1; + * * @return Whether the status field is set. */ @java.lang.Override @@ -165,11 +206,14 @@ public boolean hasStatus() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The status to return for an individual attempt.
      * 
* * .google.rpc.Status status = 1; + * * @return The status. */ @java.lang.Override @@ -177,6 +221,8 @@ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** + * + * *
      * The status to return for an individual attempt.
      * 
@@ -191,11 +237,14 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { public static final int DELAY_FIELD_NUMBER = 2; private com.google.protobuf.Duration delay_; /** + * + * *
      * The amount of time to delay sending the response.
      * 
* * .google.protobuf.Duration delay = 2; + * * @return Whether the delay field is set. */ @java.lang.Override @@ -203,11 +252,14 @@ public boolean hasDelay() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The amount of time to delay sending the response.
      * 
* * .google.protobuf.Duration delay = 2; + * * @return The delay. */ @java.lang.Override @@ -215,6 +267,8 @@ public com.google.protobuf.Duration getDelay() { return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_; } /** + * + * *
      * The amount of time to delay sending the response.
      * 
@@ -229,11 +283,14 @@ public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() { public static final int RESPONSE_INDEX_FIELD_NUMBER = 3; private int responseIndex_ = 0; /** + * + * *
      * The index that the status should be sent
      * 
* * int32 response_index = 3; + * * @return The responseIndex. */ @java.lang.Override @@ -242,6 +299,7 @@ public int getResponseIndex() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,8 +311,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStatus()); } @@ -274,16 +331,13 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStatus()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDelay()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDelay()); } if (responseIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, responseIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, responseIndex_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -293,25 +347,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.StreamingSequence.Response)) { return super.equals(obj); } - com.google.showcase.v1beta1.StreamingSequence.Response other = (com.google.showcase.v1beta1.StreamingSequence.Response) obj; + com.google.showcase.v1beta1.StreamingSequence.Response other = + (com.google.showcase.v1beta1.StreamingSequence.Response) obj; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus() - .equals(other.getStatus())) return false; + if (!getStatus().equals(other.getStatus())) return false; } if (hasDelay() != other.hasDelay()) return false; if (hasDelay()) { - if (!getDelay() - .equals(other.getDelay())) return false; + if (!getDelay().equals(other.getDelay())) return false; } - if (getResponseIndex() - != other.getResponseIndex()) return false; + if (getResponseIndex() != other.getResponseIndex()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,89 +391,94 @@ public int hashCode() { } public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.StreamingSequence.Response parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.StreamingSequence.Response parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.StreamingSequence.Response parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.StreamingSequence.Response parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.showcase.v1beta1.StreamingSequence.Response prototype) { + + public static Builder newBuilder( + com.google.showcase.v1beta1.StreamingSequence.Response prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -431,27 +488,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A server response to an RPC Attempt in a sequence.
      * 
* * Protobuf type {@code google.showcase.v1beta1.StreamingSequence.Response} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.StreamingSequence.Response) com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_Response_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_StreamingSequence_Response_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_Response_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_StreamingSequence_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.StreamingSequence.Response.class, com.google.showcase.v1beta1.StreamingSequence.Response.Builder.class); + com.google.showcase.v1beta1.StreamingSequence.Response.class, + com.google.showcase.v1beta1.StreamingSequence.Response.Builder.class); } // Construct using com.google.showcase.v1beta1.StreamingSequence.Response.newBuilder() @@ -459,18 +521,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStatusFieldBuilder(); getDelayFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +552,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_Response_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_StreamingSequence_Response_descriptor; } @java.lang.Override @@ -511,8 +573,11 @@ public com.google.showcase.v1beta1.StreamingSequence.Response build() { @java.lang.Override public com.google.showcase.v1beta1.StreamingSequence.Response buildPartial() { - com.google.showcase.v1beta1.StreamingSequence.Response result = new com.google.showcase.v1beta1.StreamingSequence.Response(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.StreamingSequence.Response result = + new com.google.showcase.v1beta1.StreamingSequence.Response(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -521,15 +586,11 @@ private void buildPartial0(com.google.showcase.v1beta1.StreamingSequence.Respons int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.status_ = statusBuilder_ == null - ? status_ - : statusBuilder_.build(); + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.delay_ = delayBuilder_ == null - ? delay_ - : delayBuilder_.build(); + result.delay_ = delayBuilder_ == null ? delay_ : delayBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -542,38 +603,41 @@ private void buildPartial0(com.google.showcase.v1beta1.StreamingSequence.Respons public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.StreamingSequence.Response) { - return mergeFrom((com.google.showcase.v1beta1.StreamingSequence.Response)other); + return mergeFrom((com.google.showcase.v1beta1.StreamingSequence.Response) other); } else { super.mergeFrom(other); return this; @@ -581,7 +645,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.StreamingSequence.Response other) { - if (other == com.google.showcase.v1beta1.StreamingSequence.Response.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.StreamingSequence.Response.getDefaultInstance()) + return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } @@ -617,31 +682,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDelayFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - responseIndex_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDelayFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + responseIndex_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -651,28 +716,36 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusBuilder_; /** + * + * *
        * The status to return for an individual attempt.
        * 
* * .google.rpc.Status status = 1; + * * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * The status to return for an individual attempt.
        * 
* * .google.rpc.Status status = 1; + * * @return The status. */ public com.google.rpc.Status getStatus() { @@ -683,6 +756,8 @@ public com.google.rpc.Status getStatus() { } } /** + * + * *
        * The status to return for an individual attempt.
        * 
@@ -703,14 +778,15 @@ public Builder setStatus(com.google.rpc.Status value) { return this; } /** + * + * *
        * The status to return for an individual attempt.
        * 
* * .google.rpc.Status status = 1; */ - public Builder setStatus( - com.google.rpc.Status.Builder builderForValue) { + public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { @@ -721,6 +797,8 @@ public Builder setStatus( return this; } /** + * + * *
        * The status to return for an individual attempt.
        * 
@@ -729,9 +807,9 @@ public Builder setStatus( */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - status_ != null && - status_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; @@ -746,6 +824,8 @@ public Builder mergeStatus(com.google.rpc.Status value) { return this; } /** + * + * *
        * The status to return for an individual attempt.
        * 
@@ -763,6 +843,8 @@ public Builder clearStatus() { return this; } /** + * + * *
        * The status to return for an individual attempt.
        * 
@@ -775,6 +857,8 @@ public com.google.rpc.Status.Builder getStatusBuilder() { return getStatusFieldBuilder().getBuilder(); } /** + * + * *
        * The status to return for an individual attempt.
        * 
@@ -785,11 +869,12 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? - com.google.rpc.Status.getDefaultInstance() : status_; + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } } /** + * + * *
        * The status to return for an individual attempt.
        * 
@@ -797,14 +882,14 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * .google.rpc.Status status = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; @@ -812,24 +897,33 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { private com.google.protobuf.Duration delay_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> delayBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + delayBuilder_; /** + * + * *
        * The amount of time to delay sending the response.
        * 
* * .google.protobuf.Duration delay = 2; + * * @return Whether the delay field is set. */ public boolean hasDelay() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * The amount of time to delay sending the response.
        * 
* * .google.protobuf.Duration delay = 2; + * * @return The delay. */ public com.google.protobuf.Duration getDelay() { @@ -840,6 +934,8 @@ public com.google.protobuf.Duration getDelay() { } } /** + * + * *
        * The amount of time to delay sending the response.
        * 
@@ -860,14 +956,15 @@ public Builder setDelay(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * The amount of time to delay sending the response.
        * 
* * .google.protobuf.Duration delay = 2; */ - public Builder setDelay( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDelay(com.google.protobuf.Duration.Builder builderForValue) { if (delayBuilder_ == null) { delay_ = builderForValue.build(); } else { @@ -878,6 +975,8 @@ public Builder setDelay( return this; } /** + * + * *
        * The amount of time to delay sending the response.
        * 
@@ -886,9 +985,9 @@ public Builder setDelay( */ public Builder mergeDelay(com.google.protobuf.Duration value) { if (delayBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - delay_ != null && - delay_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && delay_ != null + && delay_ != com.google.protobuf.Duration.getDefaultInstance()) { getDelayBuilder().mergeFrom(value); } else { delay_ = value; @@ -903,6 +1002,8 @@ public Builder mergeDelay(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * The amount of time to delay sending the response.
        * 
@@ -920,6 +1021,8 @@ public Builder clearDelay() { return this; } /** + * + * *
        * The amount of time to delay sending the response.
        * 
@@ -932,6 +1035,8 @@ public com.google.protobuf.Duration.Builder getDelayBuilder() { return getDelayFieldBuilder().getBuilder(); } /** + * + * *
        * The amount of time to delay sending the response.
        * 
@@ -942,11 +1047,12 @@ public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() { if (delayBuilder_ != null) { return delayBuilder_.getMessageOrBuilder(); } else { - return delay_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : delay_; + return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_; } } /** + * + * *
        * The amount of time to delay sending the response.
        * 
@@ -954,26 +1060,32 @@ public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() { * .google.protobuf.Duration delay = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getDelayFieldBuilder() { if (delayBuilder_ == null) { - delayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDelay(), - getParentForChildren(), - isClean()); + delayBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDelay(), getParentForChildren(), isClean()); delay_ = null; } return delayBuilder_; } - private int responseIndex_ ; + private int responseIndex_; /** + * + * *
        * The index that the status should be sent
        * 
* * int32 response_index = 3; + * * @return The responseIndex. */ @java.lang.Override @@ -981,11 +1093,14 @@ public int getResponseIndex() { return responseIndex_; } /** + * + * *
        * The index that the status should be sent
        * 
* * int32 response_index = 3; + * * @param value The responseIndex to set. * @return This builder for chaining. */ @@ -997,11 +1112,14 @@ public Builder setResponseIndex(int value) { return this; } /** + * + * *
        * The index that the status should be sent
        * 
* * int32 response_index = 3; + * * @return This builder for chaining. */ public Builder clearResponseIndex() { @@ -1010,6 +1128,7 @@ public Builder clearResponseIndex() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1022,12 +1141,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.StreamingSequence.Response) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.StreamingSequence.Response) private static final com.google.showcase.v1beta1.StreamingSequence.Response DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.StreamingSequence.Response(); } @@ -1036,27 +1155,28 @@ public static com.google.showcase.v1beta1.StreamingSequence.Response getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Response parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Response parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1071,14 +1191,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.StreamingSequence.Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1087,8 +1208,7 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1096,16 +1216,15 @@ public java.lang.String getName() { } /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1114,14 +1233,18 @@ public java.lang.String getName() { } public static final int CONTENT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object content_ = ""; /** + * + * *
    * The Content that the stream will send
    * 
* * string content = 2; + * * @return The content. */ @java.lang.Override @@ -1130,29 +1253,29 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** + * + * *
    * The Content that the stream will send
    * 
* * string content = 2; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -1161,9 +1284,12 @@ public java.lang.String getContent() { } public static final int RESPONSES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List responses_; /** + * + * *
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -1176,6 +1302,8 @@ public java.util.List ge
     return responses_;
   }
   /**
+   *
+   *
    * 
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -1184,11 +1312,13 @@ public java.util.List ge
    * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getResponsesOrBuilderList() {
     return responses_;
   }
   /**
+   *
+   *
    * 
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -1201,6 +1331,8 @@ public int getResponsesCount() {
     return responses_.size();
   }
   /**
+   *
+   *
    * 
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -1213,6 +1345,8 @@ public com.google.showcase.v1beta1.StreamingSequence.Response getResponses(int i
     return responses_.get(index);
   }
   /**
+   *
+   *
    * 
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -1227,6 +1361,7 @@ public com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder getRespon
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1238,8 +1373,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -1265,8 +1399,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_);
     }
     for (int i = 0; i < responses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, responses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, responses_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1276,19 +1409,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.showcase.v1beta1.StreamingSequence)) {
       return super.equals(obj);
     }
-    com.google.showcase.v1beta1.StreamingSequence other = (com.google.showcase.v1beta1.StreamingSequence) obj;
+    com.google.showcase.v1beta1.StreamingSequence other =
+        (com.google.showcase.v1beta1.StreamingSequence) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getContent()
-        .equals(other.getContent())) return false;
-    if (!getResponsesList()
-        .equals(other.getResponsesList())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getContent().equals(other.getContent())) return false;
+    if (!getResponsesList().equals(other.getResponsesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1313,128 +1444,128 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.showcase.v1beta1.StreamingSequence parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.showcase.v1beta1.StreamingSequence parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.StreamingSequence parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.StreamingSequence parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.StreamingSequence parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.StreamingSequence parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.StreamingSequence parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.StreamingSequence parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.StreamingSequence parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.showcase.v1beta1.StreamingSequence parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.showcase.v1beta1.StreamingSequence parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.showcase.v1beta1.StreamingSequence parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.StreamingSequence parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.StreamingSequence parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.showcase.v1beta1.StreamingSequence prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
-  /**
-   * Protobuf type {@code google.showcase.v1beta1.StreamingSequence}
-   */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  /** Protobuf type {@code google.showcase.v1beta1.StreamingSequence} */
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.StreamingSequence)
       com.google.showcase.v1beta1.StreamingSequenceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.SequenceOuterClass
+          .internal_static_google_showcase_v1beta1_StreamingSequence_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_fieldAccessorTable
+      return com.google.showcase.v1beta1.SequenceOuterClass
+          .internal_static_google_showcase_v1beta1_StreamingSequence_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.StreamingSequence.class, com.google.showcase.v1beta1.StreamingSequence.Builder.class);
+              com.google.showcase.v1beta1.StreamingSequence.class,
+              com.google.showcase.v1beta1.StreamingSequence.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.StreamingSequence.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1452,9 +1583,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequence_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.SequenceOuterClass
+          .internal_static_google_showcase_v1beta1_StreamingSequence_descriptor;
     }
 
     @java.lang.Override
@@ -1473,9 +1604,12 @@ public com.google.showcase.v1beta1.StreamingSequence build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.StreamingSequence buildPartial() {
-      com.google.showcase.v1beta1.StreamingSequence result = new com.google.showcase.v1beta1.StreamingSequence(this);
+      com.google.showcase.v1beta1.StreamingSequence result =
+          new com.google.showcase.v1beta1.StreamingSequence(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1506,38 +1640,39 @@ private void buildPartial0(com.google.showcase.v1beta1.StreamingSequence result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.StreamingSequence) {
-        return mergeFrom((com.google.showcase.v1beta1.StreamingSequence)other);
+        return mergeFrom((com.google.showcase.v1beta1.StreamingSequence) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1574,9 +1709,10 @@ public Builder mergeFrom(com.google.showcase.v1beta1.StreamingSequence other) {
             responsesBuilder_ = null;
             responses_ = other.responses_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            responsesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResponsesFieldBuilder() : null;
+            responsesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResponsesFieldBuilder()
+                    : null;
           } else {
             responsesBuilder_.addAllMessages(other.responses_);
           }
@@ -1608,35 +1744,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              content_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              com.google.showcase.v1beta1.StreamingSequence.Response m =
-                  input.readMessage(
-                      com.google.showcase.v1beta1.StreamingSequence.Response.parser(),
-                      extensionRegistry);
-              if (responsesBuilder_ == null) {
-                ensureResponsesIsMutable();
-                responses_.add(m);
-              } else {
-                responsesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                content_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.showcase.v1beta1.StreamingSequence.Response m =
+                    input.readMessage(
+                        com.google.showcase.v1beta1.StreamingSequence.Response.parser(),
+                        extensionRegistry);
+                if (responsesBuilder_ == null) {
+                  ensureResponsesIsMutable();
+                  responses_.add(m);
+                } else {
+                  responsesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1646,18 +1786,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
      * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     *
      * @return The name.
      */
     public java.lang.String getName() {
       java.lang.Object ref = name_;
       if (!(ref instanceof java.lang.String)) {
-        com.google.protobuf.ByteString bs =
-            (com.google.protobuf.ByteString) ref;
+        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
         java.lang.String s = bs.toStringUtf8();
         name_ = s;
         return s;
@@ -1667,15 +1808,14 @@ public java.lang.String getName() {
     }
     /**
      * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     *
      * @return The bytes for name.
      */
-    public com.google.protobuf.ByteString
-        getNameBytes() {
+    public com.google.protobuf.ByteString getNameBytes() {
       java.lang.Object ref = name_;
       if (ref instanceof String) {
-        com.google.protobuf.ByteString b = 
-            com.google.protobuf.ByteString.copyFromUtf8(
-                (java.lang.String) ref);
+        com.google.protobuf.ByteString b =
+            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
         name_ = b;
         return b;
       } else {
@@ -1684,12 +1824,14 @@ public java.lang.String getName() {
     }
     /**
      * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     *
      * @param value The name to set.
      * @return This builder for chaining.
      */
-    public Builder setName(
-        java.lang.String value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setName(java.lang.String value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       name_ = value;
       bitField0_ |= 0x00000001;
       onChanged();
@@ -1697,6 +1839,7 @@ public Builder setName(
     }
     /**
      * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     *
      * @return This builder for chaining.
      */
     public Builder clearName() {
@@ -1707,12 +1850,14 @@ public Builder clearName() {
     }
     /**
      * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     *
      * @param value The bytes for name to set.
      * @return This builder for chaining.
      */
-    public Builder setNameBytes(
-        com.google.protobuf.ByteString value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setNameBytes(com.google.protobuf.ByteString value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       checkByteStringIsUtf8(value);
       name_ = value;
       bitField0_ |= 0x00000001;
@@ -1722,18 +1867,20 @@ public Builder setNameBytes(
 
     private java.lang.Object content_ = "";
     /**
+     *
+     *
      * 
      * The Content that the stream will send
      * 
* * string content = 2; + * * @return The content. */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -1742,20 +1889,21 @@ public java.lang.String getContent() { } } /** + * + * *
      * The Content that the stream will send
      * 
* * string content = 2; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -1763,28 +1911,35 @@ public java.lang.String getContent() { } } /** + * + * *
      * The Content that the stream will send
      * 
* * string content = 2; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } content_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The Content that the stream will send
      * 
* * string content = 2; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -1794,17 +1949,21 @@ public Builder clearContent() { return this; } /** + * + * *
      * The Content that the stream will send
      * 
* * string content = 2; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); content_ = value; bitField0_ |= 0x00000002; @@ -1813,18 +1972,26 @@ public Builder setContentBytes( } private java.util.List responses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - responses_ = new java.util.ArrayList(responses_); + responses_ = + new java.util.ArrayList( + responses_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.StreamingSequence.Response, com.google.showcase.v1beta1.StreamingSequence.Response.Builder, com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder> responsesBuilder_; + com.google.showcase.v1beta1.StreamingSequence.Response, + com.google.showcase.v1beta1.StreamingSequence.Response.Builder, + com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder> + responsesBuilder_; /** + * + * *
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1832,7 +1999,8 @@ private void ensureResponsesIsMutable() {
      *
      * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;
      */
-    public java.util.List getResponsesList() {
+    public java.util.List
+        getResponsesList() {
       if (responsesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(responses_);
       } else {
@@ -1840,6 +2008,8 @@ public java.util.List ge
       }
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1855,6 +2025,8 @@ public int getResponsesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1870,6 +2042,8 @@ public com.google.showcase.v1beta1.StreamingSequence.Response getResponses(int i
       }
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1892,6 +2066,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1911,6 +2087,8 @@ public Builder setResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1932,6 +2110,8 @@ public Builder addResponses(com.google.showcase.v1beta1.StreamingSequence.Respon
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1954,6 +2134,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1973,6 +2155,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -1992,6 +2176,8 @@ public Builder addResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -2000,11 +2186,11 @@ public Builder addResponses(
      * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;
      */
     public Builder addAllResponses(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (responsesBuilder_ == null) {
         ensureResponsesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, responses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
         onChanged();
       } else {
         responsesBuilder_.addAllMessages(values);
@@ -2012,6 +2198,8 @@ public Builder addAllResponses(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -2030,6 +2218,8 @@ public Builder clearResponses() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -2048,6 +2238,8 @@ public Builder removeResponses(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -2060,6 +2252,8 @@ public com.google.showcase.v1beta1.StreamingSequence.Response.Builder getRespons
       return getResponsesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -2070,11 +2264,14 @@ public com.google.showcase.v1beta1.StreamingSequence.Response.Builder getRespons
     public com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder getResponsesOrBuilder(
         int index) {
       if (responsesBuilder_ == null) {
-        return responses_.get(index);  } else {
+        return responses_.get(index);
+      } else {
         return responsesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -2082,8 +2279,8 @@ public com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder getRespon
      *
      * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;
      */
-    public java.util.List 
-         getResponsesOrBuilderList() {
+    public java.util.List
+        getResponsesOrBuilderList() {
       if (responsesBuilder_ != null) {
         return responsesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2091,6 +2288,8 @@ public com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder getRespon
       }
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -2099,10 +2298,12 @@ public com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder getRespon
      * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;
      */
     public com.google.showcase.v1beta1.StreamingSequence.Response.Builder addResponsesBuilder() {
-      return getResponsesFieldBuilder().addBuilder(
-          com.google.showcase.v1beta1.StreamingSequence.Response.getDefaultInstance());
+      return getResponsesFieldBuilder()
+          .addBuilder(com.google.showcase.v1beta1.StreamingSequence.Response.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -2112,10 +2313,13 @@ public com.google.showcase.v1beta1.StreamingSequence.Response.Builder addRespons
      */
     public com.google.showcase.v1beta1.StreamingSequence.Response.Builder addResponsesBuilder(
         int index) {
-      return getResponsesFieldBuilder().addBuilder(
-          index, com.google.showcase.v1beta1.StreamingSequence.Response.getDefaultInstance());
+      return getResponsesFieldBuilder()
+          .addBuilder(
+              index, com.google.showcase.v1beta1.StreamingSequence.Response.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Sequence of responses to return in order for each attempt. If empty, the
      * default response is an immediate OK.
@@ -2123,27 +2327,30 @@ public com.google.showcase.v1beta1.StreamingSequence.Response.Builder addRespons
      *
      * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;
      */
-    public java.util.List 
-         getResponsesBuilderList() {
+    public java.util.List
+        getResponsesBuilderList() {
       return getResponsesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.showcase.v1beta1.StreamingSequence.Response, com.google.showcase.v1beta1.StreamingSequence.Response.Builder, com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder> 
+            com.google.showcase.v1beta1.StreamingSequence.Response,
+            com.google.showcase.v1beta1.StreamingSequence.Response.Builder,
+            com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder>
         getResponsesFieldBuilder() {
       if (responsesBuilder_ == null) {
-        responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.showcase.v1beta1.StreamingSequence.Response, com.google.showcase.v1beta1.StreamingSequence.Response.Builder, com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder>(
-                responses_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        responsesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.showcase.v1beta1.StreamingSequence.Response,
+                com.google.showcase.v1beta1.StreamingSequence.Response.Builder,
+                com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder>(
+                responses_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
         responses_ = null;
       }
       return responsesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2153,12 +2360,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.StreamingSequence)
   }
 
   // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.StreamingSequence)
   private static final com.google.showcase.v1beta1.StreamingSequence DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.showcase.v1beta1.StreamingSequence();
   }
@@ -2167,27 +2374,27 @@ public static com.google.showcase.v1beta1.StreamingSequence getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public StreamingSequence parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public StreamingSequence parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2202,6 +2409,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.showcase.v1beta1.StreamingSequence getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java
similarity index 100%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceOrBuilder.java
similarity index 73%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceOrBuilder.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceOrBuilder.java
index 05e0e4d14c..095626025f 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceOrBuilder.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceOrBuilder.java
@@ -1,46 +1,70 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/sequence.proto
 
 // Protobuf Java Version: 3.25.5
 package com.google.showcase.v1beta1;
 
-public interface StreamingSequenceOrBuilder extends
+public interface StreamingSequenceOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.StreamingSequence)
     com.google.protobuf.MessageOrBuilder {
 
   /**
    * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   *
    * @return The name.
    */
   java.lang.String getName();
   /**
    * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   *
    * @return The bytes for name.
    */
-  com.google.protobuf.ByteString
-      getNameBytes();
+  com.google.protobuf.ByteString getNameBytes();
 
   /**
+   *
+   *
    * 
    * The Content that the stream will send
    * 
* * string content = 2; + * * @return The content. */ java.lang.String getContent(); /** + * + * *
    * The Content that the stream will send
    * 
* * string content = 2; + * * @return The bytes for content. */ - com.google.protobuf.ByteString - getContentBytes(); + com.google.protobuf.ByteString getContentBytes(); /** + * + * *
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -48,9 +72,10 @@ public interface StreamingSequenceOrBuilder extends
    *
    * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;
    */
-  java.util.List 
-      getResponsesList();
+  java.util.List getResponsesList();
   /**
+   *
+   *
    * 
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -60,6 +85,8 @@ public interface StreamingSequenceOrBuilder extends
    */
   com.google.showcase.v1beta1.StreamingSequence.Response getResponses(int index);
   /**
+   *
+   *
    * 
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -69,6 +96,8 @@ public interface StreamingSequenceOrBuilder extends
    */
   int getResponsesCount();
   /**
+   *
+   *
    * 
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -76,9 +105,11 @@ public interface StreamingSequenceOrBuilder extends
    *
    * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;
    */
-  java.util.List 
+  java.util.List
       getResponsesOrBuilderList();
   /**
+   *
+   *
    * 
    * Sequence of responses to return in order for each attempt. If empty, the
    * default response is an immediate OK.
@@ -86,6 +117,5 @@ public interface StreamingSequenceOrBuilder extends
    *
    * repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;
    */
-  com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder getResponsesOrBuilder(
-      int index);
+  com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder getResponsesOrBuilder(int index);
 }
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReport.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReport.java
similarity index 73%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReport.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReport.java
index 6ea3465f70..b0a1045728 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReport.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReport.java
@@ -1,21 +1,35 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/sequence.proto
 
 // Protobuf Java Version: 3.25.5
 package com.google.showcase.v1beta1;
 
-/**
- * Protobuf type {@code google.showcase.v1beta1.StreamingSequenceReport}
- */
-public final class StreamingSequenceReport extends
-    com.google.protobuf.GeneratedMessageV3 implements
+/** Protobuf type {@code google.showcase.v1beta1.StreamingSequenceReport} */
+public final class StreamingSequenceReport extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.StreamingSequenceReport)
     StreamingSequenceReportOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingSequenceReport.newBuilder() to construct.
   private StreamingSequenceReport(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StreamingSequenceReport() {
     name_ = "";
     attempts_ = java.util.Collections.emptyList();
@@ -23,57 +37,70 @@ private StreamingSequenceReport() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingSequenceReport();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.SequenceOuterClass
+        .internal_static_google_showcase_v1beta1_StreamingSequenceReport_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_fieldAccessorTable
+    return com.google.showcase.v1beta1.SequenceOuterClass
+        .internal_static_google_showcase_v1beta1_StreamingSequenceReport_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.StreamingSequenceReport.class, com.google.showcase.v1beta1.StreamingSequenceReport.Builder.class);
+            com.google.showcase.v1beta1.StreamingSequenceReport.class,
+            com.google.showcase.v1beta1.StreamingSequenceReport.Builder.class);
   }
 
-  public interface AttemptOrBuilder extends
+  public interface AttemptOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.StreamingSequenceReport.Attempt)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The attempt number - starting at 0.
      * 
* * int32 attempt_number = 1; + * * @return The attemptNumber. */ int getAttemptNumber(); /** + * + * *
      * The deadline dictated by the attempt to the server.
      * 
* * .google.protobuf.Timestamp attempt_deadline = 2; + * * @return Whether the attemptDeadline field is set. */ boolean hasAttemptDeadline(); /** + * + * *
      * The deadline dictated by the attempt to the server.
      * 
* * .google.protobuf.Timestamp attempt_deadline = 2; + * * @return The attemptDeadline. */ com.google.protobuf.Timestamp getAttemptDeadline(); /** + * + * *
      * The deadline dictated by the attempt to the server.
      * 
@@ -83,26 +110,34 @@ public interface AttemptOrBuilder extends com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder(); /** + * + * *
      * The time that the server responded to the RPC attempt. Used for
      * calculating attempt_delay.
      * 
* * .google.protobuf.Timestamp response_time = 3; + * * @return Whether the responseTime field is set. */ boolean hasResponseTime(); /** + * + * *
      * The time that the server responded to the RPC attempt. Used for
      * calculating attempt_delay.
      * 
* * .google.protobuf.Timestamp response_time = 3; + * * @return The responseTime. */ com.google.protobuf.Timestamp getResponseTime(); /** + * + * *
      * The time that the server responded to the RPC attempt. Used for
      * calculating attempt_delay.
@@ -113,26 +148,34 @@ public interface AttemptOrBuilder extends
     com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder();
 
     /**
+     *
+     *
      * 
      * The server perceived delay between sending the last response and
      * receiving this attempt. Used for validating attempt delay backoff.
      * 
* * .google.protobuf.Duration attempt_delay = 4; + * * @return Whether the attemptDelay field is set. */ boolean hasAttemptDelay(); /** + * + * *
      * The server perceived delay between sending the last response and
      * receiving this attempt. Used for validating attempt delay backoff.
      * 
* * .google.protobuf.Duration attempt_delay = 4; + * * @return The attemptDelay. */ com.google.protobuf.Duration getAttemptDelay(); /** + * + * *
      * The server perceived delay between sending the last response and
      * receiving this attempt. Used for validating attempt delay backoff.
@@ -143,24 +186,32 @@ public interface AttemptOrBuilder extends
     com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder();
 
     /**
+     *
+     *
      * 
      * The status returned to the attempt.
      * 
* * .google.rpc.Status status = 5; + * * @return Whether the status field is set. */ boolean hasStatus(); /** + * + * *
      * The status returned to the attempt.
      * 
* * .google.rpc.Status status = 5; + * * @return The status. */ com.google.rpc.Status getStatus(); /** + * + * *
      * The status returned to the attempt.
      * 
@@ -170,53 +221,59 @@ public interface AttemptOrBuilder extends com.google.rpc.StatusOrBuilder getStatusOrBuilder(); } /** + * + * *
    * Contains metrics on individual RPC Attempts in a sequence.
    * 
* * Protobuf type {@code google.showcase.v1beta1.StreamingSequenceReport.Attempt} */ - public static final class Attempt extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Attempt extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.StreamingSequenceReport.Attempt) AttemptOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Attempt.newBuilder() to construct. private Attempt(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Attempt() { - } + + private Attempt() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Attempt(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.class, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder.class); + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.class, + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder.class); } private int bitField0_; public static final int ATTEMPT_NUMBER_FIELD_NUMBER = 1; private int attemptNumber_ = 0; /** + * + * *
      * The attempt number - starting at 0.
      * 
* * int32 attempt_number = 1; + * * @return The attemptNumber. */ @java.lang.Override @@ -227,11 +284,14 @@ public int getAttemptNumber() { public static final int ATTEMPT_DEADLINE_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp attemptDeadline_; /** + * + * *
      * The deadline dictated by the attempt to the server.
      * 
* * .google.protobuf.Timestamp attempt_deadline = 2; + * * @return Whether the attemptDeadline field is set. */ @java.lang.Override @@ -239,18 +299,25 @@ public boolean hasAttemptDeadline() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The deadline dictated by the attempt to the server.
      * 
* * .google.protobuf.Timestamp attempt_deadline = 2; + * * @return The attemptDeadline. */ @java.lang.Override public com.google.protobuf.Timestamp getAttemptDeadline() { - return attemptDeadline_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : attemptDeadline_; + return attemptDeadline_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : attemptDeadline_; } /** + * + * *
      * The deadline dictated by the attempt to the server.
      * 
@@ -259,18 +326,23 @@ public com.google.protobuf.Timestamp getAttemptDeadline() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder() { - return attemptDeadline_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : attemptDeadline_; + return attemptDeadline_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : attemptDeadline_; } public static final int RESPONSE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp responseTime_; /** + * + * *
      * The time that the server responded to the RPC attempt. Used for
      * calculating attempt_delay.
      * 
* * .google.protobuf.Timestamp response_time = 3; + * * @return Whether the responseTime field is set. */ @java.lang.Override @@ -278,19 +350,26 @@ public boolean hasResponseTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The time that the server responded to the RPC attempt. Used for
      * calculating attempt_delay.
      * 
* * .google.protobuf.Timestamp response_time = 3; + * * @return The responseTime. */ @java.lang.Override public com.google.protobuf.Timestamp getResponseTime() { - return responseTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : responseTime_; + return responseTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : responseTime_; } /** + * + * *
      * The time that the server responded to the RPC attempt. Used for
      * calculating attempt_delay.
@@ -300,18 +379,23 @@ public com.google.protobuf.Timestamp getResponseTime() {
      */
     @java.lang.Override
     public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() {
-      return responseTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : responseTime_;
+      return responseTime_ == null
+          ? com.google.protobuf.Timestamp.getDefaultInstance()
+          : responseTime_;
     }
 
     public static final int ATTEMPT_DELAY_FIELD_NUMBER = 4;
     private com.google.protobuf.Duration attemptDelay_;
     /**
+     *
+     *
      * 
      * The server perceived delay between sending the last response and
      * receiving this attempt. Used for validating attempt delay backoff.
      * 
* * .google.protobuf.Duration attempt_delay = 4; + * * @return Whether the attemptDelay field is set. */ @java.lang.Override @@ -319,19 +403,26 @@ public boolean hasAttemptDelay() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The server perceived delay between sending the last response and
      * receiving this attempt. Used for validating attempt delay backoff.
      * 
* * .google.protobuf.Duration attempt_delay = 4; + * * @return The attemptDelay. */ @java.lang.Override public com.google.protobuf.Duration getAttemptDelay() { - return attemptDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : attemptDelay_; + return attemptDelay_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : attemptDelay_; } /** + * + * *
      * The server perceived delay between sending the last response and
      * receiving this attempt. Used for validating attempt delay backoff.
@@ -341,17 +432,22 @@ public com.google.protobuf.Duration getAttemptDelay() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder() {
-      return attemptDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : attemptDelay_;
+      return attemptDelay_ == null
+          ? com.google.protobuf.Duration.getDefaultInstance()
+          : attemptDelay_;
     }
 
     public static final int STATUS_FIELD_NUMBER = 5;
     private com.google.rpc.Status status_;
     /**
+     *
+     *
      * 
      * The status returned to the attempt.
      * 
* * .google.rpc.Status status = 5; + * * @return Whether the status field is set. */ @java.lang.Override @@ -359,11 +455,14 @@ public boolean hasStatus() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The status returned to the attempt.
      * 
* * .google.rpc.Status status = 5; + * * @return The status. */ @java.lang.Override @@ -371,6 +470,8 @@ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** + * + * *
      * The status returned to the attempt.
      * 
@@ -383,6 +484,7 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -394,8 +496,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (attemptNumber_ != 0) { output.writeInt32(1, attemptNumber_); } @@ -421,24 +522,19 @@ public int getSerializedSize() { size = 0; if (attemptNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, attemptNumber_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, attemptNumber_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAttemptDeadline()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAttemptDeadline()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResponseTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResponseTime()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAttemptDelay()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAttemptDelay()); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStatus()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -448,34 +544,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.StreamingSequenceReport.Attempt)) { return super.equals(obj); } - com.google.showcase.v1beta1.StreamingSequenceReport.Attempt other = (com.google.showcase.v1beta1.StreamingSequenceReport.Attempt) obj; + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt other = + (com.google.showcase.v1beta1.StreamingSequenceReport.Attempt) obj; - if (getAttemptNumber() - != other.getAttemptNumber()) return false; + if (getAttemptNumber() != other.getAttemptNumber()) return false; if (hasAttemptDeadline() != other.hasAttemptDeadline()) return false; if (hasAttemptDeadline()) { - if (!getAttemptDeadline() - .equals(other.getAttemptDeadline())) return false; + if (!getAttemptDeadline().equals(other.getAttemptDeadline())) return false; } if (hasResponseTime() != other.hasResponseTime()) return false; if (hasResponseTime()) { - if (!getResponseTime() - .equals(other.getResponseTime())) return false; + if (!getResponseTime().equals(other.getResponseTime())) return false; } if (hasAttemptDelay() != other.hasAttemptDelay()) return false; if (hasAttemptDelay()) { - if (!getAttemptDelay() - .equals(other.getAttemptDelay())) return false; + if (!getAttemptDelay().equals(other.getAttemptDelay())) return false; } if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus() - .equals(other.getStatus())) return false; + if (!getStatus().equals(other.getStatus())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -512,89 +604,94 @@ public int hashCode() { } public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.showcase.v1beta1.StreamingSequenceReport.Attempt prototype) { + + public static Builder newBuilder( + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -604,27 +701,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Contains metrics on individual RPC Attempts in a sequence.
      * 
* * Protobuf type {@code google.showcase.v1beta1.StreamingSequenceReport.Attempt} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.StreamingSequenceReport.Attempt) com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.class, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder.class); + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.class, + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder.class); } // Construct using com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.newBuilder() @@ -632,20 +734,20 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAttemptDeadlineFieldBuilder(); getResponseTimeFieldBuilder(); getAttemptDelayFieldBuilder(); getStatusFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -675,13 +777,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_descriptor; } @java.lang.Override - public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt getDefaultInstanceForType() { + public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt + getDefaultInstanceForType() { return com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.getDefaultInstance(); } @@ -696,40 +799,39 @@ public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt build() { @java.lang.Override public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt buildPartial() { - com.google.showcase.v1beta1.StreamingSequenceReport.Attempt result = new com.google.showcase.v1beta1.StreamingSequenceReport.Attempt(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt result = + new com.google.showcase.v1beta1.StreamingSequenceReport.Attempt(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.showcase.v1beta1.StreamingSequenceReport.Attempt result) { + private void buildPartial0( + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.attemptNumber_ = attemptNumber_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.attemptDeadline_ = attemptDeadlineBuilder_ == null - ? attemptDeadline_ - : attemptDeadlineBuilder_.build(); + result.attemptDeadline_ = + attemptDeadlineBuilder_ == null ? attemptDeadline_ : attemptDeadlineBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.responseTime_ = responseTimeBuilder_ == null - ? responseTime_ - : responseTimeBuilder_.build(); + result.responseTime_ = + responseTimeBuilder_ == null ? responseTime_ : responseTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.attemptDelay_ = attemptDelayBuilder_ == null - ? attemptDelay_ - : attemptDelayBuilder_.build(); + result.attemptDelay_ = + attemptDelayBuilder_ == null ? attemptDelay_ : attemptDelayBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.status_ = statusBuilder_ == null - ? status_ - : statusBuilder_.build(); + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; @@ -739,38 +841,41 @@ private void buildPartial0(com.google.showcase.v1beta1.StreamingSequenceReport.A public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.StreamingSequenceReport.Attempt) { - return mergeFrom((com.google.showcase.v1beta1.StreamingSequenceReport.Attempt)other); + return mergeFrom((com.google.showcase.v1beta1.StreamingSequenceReport.Attempt) other); } else { super.mergeFrom(other); return this; @@ -778,7 +883,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.StreamingSequenceReport.Attempt other) { - if (other == com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.getDefaultInstance()) return this; + if (other + == com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.getDefaultInstance()) + return this; if (other.getAttemptNumber() != 0) { setAttemptNumber(other.getAttemptNumber()); } @@ -820,45 +927,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - attemptNumber_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getAttemptDeadlineFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getResponseTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getAttemptDelayFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + attemptNumber_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + getAttemptDeadlineFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getResponseTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getAttemptDelayFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -868,15 +974,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int attemptNumber_ ; + private int attemptNumber_; /** + * + * *
        * The attempt number - starting at 0.
        * 
* * int32 attempt_number = 1; + * * @return The attemptNumber. */ @java.lang.Override @@ -884,11 +994,14 @@ public int getAttemptNumber() { return attemptNumber_; } /** + * + * *
        * The attempt number - starting at 0.
        * 
* * int32 attempt_number = 1; + * * @param value The attemptNumber to set. * @return This builder for chaining. */ @@ -900,11 +1013,14 @@ public Builder setAttemptNumber(int value) { return this; } /** + * + * *
        * The attempt number - starting at 0.
        * 
* * int32 attempt_number = 1; + * * @return This builder for chaining. */ public Builder clearAttemptNumber() { @@ -916,34 +1032,47 @@ public Builder clearAttemptNumber() { private com.google.protobuf.Timestamp attemptDeadline_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> attemptDeadlineBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + attemptDeadlineBuilder_; /** + * + * *
        * The deadline dictated by the attempt to the server.
        * 
* * .google.protobuf.Timestamp attempt_deadline = 2; + * * @return Whether the attemptDeadline field is set. */ public boolean hasAttemptDeadline() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * The deadline dictated by the attempt to the server.
        * 
* * .google.protobuf.Timestamp attempt_deadline = 2; + * * @return The attemptDeadline. */ public com.google.protobuf.Timestamp getAttemptDeadline() { if (attemptDeadlineBuilder_ == null) { - return attemptDeadline_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : attemptDeadline_; + return attemptDeadline_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : attemptDeadline_; } else { return attemptDeadlineBuilder_.getMessage(); } } /** + * + * *
        * The deadline dictated by the attempt to the server.
        * 
@@ -964,14 +1093,15 @@ public Builder setAttemptDeadline(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The deadline dictated by the attempt to the server.
        * 
* * .google.protobuf.Timestamp attempt_deadline = 2; */ - public Builder setAttemptDeadline( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setAttemptDeadline(com.google.protobuf.Timestamp.Builder builderForValue) { if (attemptDeadlineBuilder_ == null) { attemptDeadline_ = builderForValue.build(); } else { @@ -982,6 +1112,8 @@ public Builder setAttemptDeadline( return this; } /** + * + * *
        * The deadline dictated by the attempt to the server.
        * 
@@ -990,9 +1122,9 @@ public Builder setAttemptDeadline( */ public Builder mergeAttemptDeadline(com.google.protobuf.Timestamp value) { if (attemptDeadlineBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - attemptDeadline_ != null && - attemptDeadline_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && attemptDeadline_ != null + && attemptDeadline_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getAttemptDeadlineBuilder().mergeFrom(value); } else { attemptDeadline_ = value; @@ -1007,6 +1139,8 @@ public Builder mergeAttemptDeadline(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The deadline dictated by the attempt to the server.
        * 
@@ -1024,6 +1158,8 @@ public Builder clearAttemptDeadline() { return this; } /** + * + * *
        * The deadline dictated by the attempt to the server.
        * 
@@ -1036,6 +1172,8 @@ public com.google.protobuf.Timestamp.Builder getAttemptDeadlineBuilder() { return getAttemptDeadlineFieldBuilder().getBuilder(); } /** + * + * *
        * The deadline dictated by the attempt to the server.
        * 
@@ -1046,11 +1184,14 @@ public com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder() { if (attemptDeadlineBuilder_ != null) { return attemptDeadlineBuilder_.getMessageOrBuilder(); } else { - return attemptDeadline_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : attemptDeadline_; + return attemptDeadline_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : attemptDeadline_; } } /** + * + * *
        * The deadline dictated by the attempt to the server.
        * 
@@ -1058,14 +1199,17 @@ public com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder() { * .google.protobuf.Timestamp attempt_deadline = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getAttemptDeadlineFieldBuilder() { if (attemptDeadlineBuilder_ == null) { - attemptDeadlineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getAttemptDeadline(), - getParentForChildren(), - isClean()); + attemptDeadlineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getAttemptDeadline(), getParentForChildren(), isClean()); attemptDeadline_ = null; } return attemptDeadlineBuilder_; @@ -1073,36 +1217,49 @@ public com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder() { private com.google.protobuf.Timestamp responseTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> responseTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + responseTimeBuilder_; /** + * + * *
        * The time that the server responded to the RPC attempt. Used for
        * calculating attempt_delay.
        * 
* * .google.protobuf.Timestamp response_time = 3; + * * @return Whether the responseTime field is set. */ public boolean hasResponseTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * The time that the server responded to the RPC attempt. Used for
        * calculating attempt_delay.
        * 
* * .google.protobuf.Timestamp response_time = 3; + * * @return The responseTime. */ public com.google.protobuf.Timestamp getResponseTime() { if (responseTimeBuilder_ == null) { - return responseTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : responseTime_; + return responseTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : responseTime_; } else { return responseTimeBuilder_.getMessage(); } } /** + * + * *
        * The time that the server responded to the RPC attempt. Used for
        * calculating attempt_delay.
@@ -1124,6 +1281,8 @@ public Builder setResponseTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The time that the server responded to the RPC attempt. Used for
        * calculating attempt_delay.
@@ -1131,8 +1290,7 @@ public Builder setResponseTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp response_time = 3;
        */
-      public Builder setResponseTime(
-          com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setResponseTime(com.google.protobuf.Timestamp.Builder builderForValue) {
         if (responseTimeBuilder_ == null) {
           responseTime_ = builderForValue.build();
         } else {
@@ -1143,6 +1301,8 @@ public Builder setResponseTime(
         return this;
       }
       /**
+       *
+       *
        * 
        * The time that the server responded to the RPC attempt. Used for
        * calculating attempt_delay.
@@ -1152,9 +1312,9 @@ public Builder setResponseTime(
        */
       public Builder mergeResponseTime(com.google.protobuf.Timestamp value) {
         if (responseTimeBuilder_ == null) {
-          if (((bitField0_ & 0x00000004) != 0) &&
-            responseTime_ != null &&
-            responseTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000004) != 0)
+              && responseTime_ != null
+              && responseTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
             getResponseTimeBuilder().mergeFrom(value);
           } else {
             responseTime_ = value;
@@ -1169,6 +1329,8 @@ public Builder mergeResponseTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The time that the server responded to the RPC attempt. Used for
        * calculating attempt_delay.
@@ -1187,6 +1349,8 @@ public Builder clearResponseTime() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The time that the server responded to the RPC attempt. Used for
        * calculating attempt_delay.
@@ -1200,6 +1364,8 @@ public com.google.protobuf.Timestamp.Builder getResponseTimeBuilder() {
         return getResponseTimeFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The time that the server responded to the RPC attempt. Used for
        * calculating attempt_delay.
@@ -1211,11 +1377,14 @@ public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() {
         if (responseTimeBuilder_ != null) {
           return responseTimeBuilder_.getMessageOrBuilder();
         } else {
-          return responseTime_ == null ?
-              com.google.protobuf.Timestamp.getDefaultInstance() : responseTime_;
+          return responseTime_ == null
+              ? com.google.protobuf.Timestamp.getDefaultInstance()
+              : responseTime_;
         }
       }
       /**
+       *
+       *
        * 
        * The time that the server responded to the RPC attempt. Used for
        * calculating attempt_delay.
@@ -1224,14 +1393,17 @@ public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() {
        * .google.protobuf.Timestamp response_time = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
           getResponseTimeFieldBuilder() {
         if (responseTimeBuilder_ == null) {
-          responseTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                  getResponseTime(),
-                  getParentForChildren(),
-                  isClean());
+          responseTimeBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Timestamp,
+                  com.google.protobuf.Timestamp.Builder,
+                  com.google.protobuf.TimestampOrBuilder>(
+                  getResponseTime(), getParentForChildren(), isClean());
           responseTime_ = null;
         }
         return responseTimeBuilder_;
@@ -1239,36 +1411,49 @@ public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() {
 
       private com.google.protobuf.Duration attemptDelay_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> attemptDelayBuilder_;
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
+          attemptDelayBuilder_;
       /**
+       *
+       *
        * 
        * The server perceived delay between sending the last response and
        * receiving this attempt. Used for validating attempt delay backoff.
        * 
* * .google.protobuf.Duration attempt_delay = 4; + * * @return Whether the attemptDelay field is set. */ public boolean hasAttemptDelay() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
        * The server perceived delay between sending the last response and
        * receiving this attempt. Used for validating attempt delay backoff.
        * 
* * .google.protobuf.Duration attempt_delay = 4; + * * @return The attemptDelay. */ public com.google.protobuf.Duration getAttemptDelay() { if (attemptDelayBuilder_ == null) { - return attemptDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : attemptDelay_; + return attemptDelay_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : attemptDelay_; } else { return attemptDelayBuilder_.getMessage(); } } /** + * + * *
        * The server perceived delay between sending the last response and
        * receiving this attempt. Used for validating attempt delay backoff.
@@ -1290,6 +1475,8 @@ public Builder setAttemptDelay(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The server perceived delay between sending the last response and
        * receiving this attempt. Used for validating attempt delay backoff.
@@ -1297,8 +1484,7 @@ public Builder setAttemptDelay(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration attempt_delay = 4;
        */
-      public Builder setAttemptDelay(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setAttemptDelay(com.google.protobuf.Duration.Builder builderForValue) {
         if (attemptDelayBuilder_ == null) {
           attemptDelay_ = builderForValue.build();
         } else {
@@ -1309,6 +1495,8 @@ public Builder setAttemptDelay(
         return this;
       }
       /**
+       *
+       *
        * 
        * The server perceived delay between sending the last response and
        * receiving this attempt. Used for validating attempt delay backoff.
@@ -1318,9 +1506,9 @@ public Builder setAttemptDelay(
        */
       public Builder mergeAttemptDelay(com.google.protobuf.Duration value) {
         if (attemptDelayBuilder_ == null) {
-          if (((bitField0_ & 0x00000008) != 0) &&
-            attemptDelay_ != null &&
-            attemptDelay_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000008) != 0)
+              && attemptDelay_ != null
+              && attemptDelay_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getAttemptDelayBuilder().mergeFrom(value);
           } else {
             attemptDelay_ = value;
@@ -1335,6 +1523,8 @@ public Builder mergeAttemptDelay(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The server perceived delay between sending the last response and
        * receiving this attempt. Used for validating attempt delay backoff.
@@ -1353,6 +1543,8 @@ public Builder clearAttemptDelay() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The server perceived delay between sending the last response and
        * receiving this attempt. Used for validating attempt delay backoff.
@@ -1366,6 +1558,8 @@ public com.google.protobuf.Duration.Builder getAttemptDelayBuilder() {
         return getAttemptDelayFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The server perceived delay between sending the last response and
        * receiving this attempt. Used for validating attempt delay backoff.
@@ -1377,11 +1571,14 @@ public com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder() {
         if (attemptDelayBuilder_ != null) {
           return attemptDelayBuilder_.getMessageOrBuilder();
         } else {
-          return attemptDelay_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : attemptDelay_;
+          return attemptDelay_ == null
+              ? com.google.protobuf.Duration.getDefaultInstance()
+              : attemptDelay_;
         }
       }
       /**
+       *
+       *
        * 
        * The server perceived delay between sending the last response and
        * receiving this attempt. Used for validating attempt delay backoff.
@@ -1390,14 +1587,17 @@ public com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder() {
        * .google.protobuf.Duration attempt_delay = 4;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
           getAttemptDelayFieldBuilder() {
         if (attemptDelayBuilder_ == null) {
-          attemptDelayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getAttemptDelay(),
-                  getParentForChildren(),
-                  isClean());
+          attemptDelayBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getAttemptDelay(), getParentForChildren(), isClean());
           attemptDelay_ = null;
         }
         return attemptDelayBuilder_;
@@ -1405,24 +1605,31 @@ public com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder() {
 
       private com.google.rpc.Status status_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_;
+              com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+          statusBuilder_;
       /**
+       *
+       *
        * 
        * The status returned to the attempt.
        * 
* * .google.rpc.Status status = 5; + * * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
        * The status returned to the attempt.
        * 
* * .google.rpc.Status status = 5; + * * @return The status. */ public com.google.rpc.Status getStatus() { @@ -1433,6 +1640,8 @@ public com.google.rpc.Status getStatus() { } } /** + * + * *
        * The status returned to the attempt.
        * 
@@ -1453,14 +1662,15 @@ public Builder setStatus(com.google.rpc.Status value) { return this; } /** + * + * *
        * The status returned to the attempt.
        * 
* * .google.rpc.Status status = 5; */ - public Builder setStatus( - com.google.rpc.Status.Builder builderForValue) { + public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { @@ -1471,6 +1681,8 @@ public Builder setStatus( return this; } /** + * + * *
        * The status returned to the attempt.
        * 
@@ -1479,9 +1691,9 @@ public Builder setStatus( */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - status_ != null && - status_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; @@ -1496,6 +1708,8 @@ public Builder mergeStatus(com.google.rpc.Status value) { return this; } /** + * + * *
        * The status returned to the attempt.
        * 
@@ -1513,6 +1727,8 @@ public Builder clearStatus() { return this; } /** + * + * *
        * The status returned to the attempt.
        * 
@@ -1525,6 +1741,8 @@ public com.google.rpc.Status.Builder getStatusBuilder() { return getStatusFieldBuilder().getBuilder(); } /** + * + * *
        * The status returned to the attempt.
        * 
@@ -1535,11 +1753,12 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? - com.google.rpc.Status.getDefaultInstance() : status_; + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } } /** + * + * *
        * The status returned to the attempt.
        * 
@@ -1547,18 +1766,19 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * .google.rpc.Status status = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1571,12 +1791,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.StreamingSequenceReport.Attempt) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.StreamingSequenceReport.Attempt) - private static final com.google.showcase.v1beta1.StreamingSequenceReport.Attempt DEFAULT_INSTANCE; + private static final com.google.showcase.v1beta1.StreamingSequenceReport.Attempt + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.StreamingSequenceReport.Attempt(); } @@ -1585,27 +1806,28 @@ public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Attempt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Attempt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1620,14 +1842,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1636,8 +1859,7 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1645,16 +1867,15 @@ public java.lang.String getName() { } /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1663,9 +1884,12 @@ public java.lang.String getName() { } public static final int ATTEMPTS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List attempts_; /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
@@ -1673,10 +1897,13 @@ public java.lang.String getName() { * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; */ @java.lang.Override - public java.util.List getAttemptsList() { + public java.util.List + getAttemptsList() { return attempts_; } /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
@@ -1684,11 +1911,14 @@ public java.util.Listrepeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder> getAttemptsOrBuilderList() { return attempts_; } /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
@@ -1700,6 +1930,8 @@ public int getAttemptsCount() { return attempts_.size(); } /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
@@ -1711,6 +1943,8 @@ public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt getAttempts(i return attempts_.get(index); } /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
@@ -1724,6 +1958,7 @@ public com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder getA } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1735,8 +1970,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1756,8 +1990,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < attempts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, attempts_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, attempts_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1767,17 +2000,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.StreamingSequenceReport)) { return super.equals(obj); } - com.google.showcase.v1beta1.StreamingSequenceReport other = (com.google.showcase.v1beta1.StreamingSequenceReport) obj; + com.google.showcase.v1beta1.StreamingSequenceReport other = + (com.google.showcase.v1beta1.StreamingSequenceReport) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getAttemptsList() - .equals(other.getAttemptsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getAttemptsList().equals(other.getAttemptsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1801,127 +2033,127 @@ public int hashCode() { } public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.StreamingSequenceReport parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.StreamingSequenceReport parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.StreamingSequenceReport parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.StreamingSequenceReport parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.StreamingSequenceReport prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.StreamingSequenceReport} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.StreamingSequenceReport} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.StreamingSequenceReport) com.google.showcase.v1beta1.StreamingSequenceReportOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_StreamingSequenceReport_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_fieldAccessorTable + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_StreamingSequenceReport_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.StreamingSequenceReport.class, com.google.showcase.v1beta1.StreamingSequenceReport.Builder.class); + com.google.showcase.v1beta1.StreamingSequenceReport.class, + com.google.showcase.v1beta1.StreamingSequenceReport.Builder.class); } // Construct using com.google.showcase.v1beta1.StreamingSequenceReport.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1938,9 +2170,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.SequenceOuterClass.internal_static_google_showcase_v1beta1_StreamingSequenceReport_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.SequenceOuterClass + .internal_static_google_showcase_v1beta1_StreamingSequenceReport_descriptor; } @java.lang.Override @@ -1959,14 +2191,18 @@ public com.google.showcase.v1beta1.StreamingSequenceReport build() { @java.lang.Override public com.google.showcase.v1beta1.StreamingSequenceReport buildPartial() { - com.google.showcase.v1beta1.StreamingSequenceReport result = new com.google.showcase.v1beta1.StreamingSequenceReport(this); + com.google.showcase.v1beta1.StreamingSequenceReport result = + new com.google.showcase.v1beta1.StreamingSequenceReport(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.showcase.v1beta1.StreamingSequenceReport result) { + private void buildPartialRepeatedFields( + com.google.showcase.v1beta1.StreamingSequenceReport result) { if (attemptsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { attempts_ = java.util.Collections.unmodifiableList(attempts_); @@ -1989,38 +2225,39 @@ private void buildPartial0(com.google.showcase.v1beta1.StreamingSequenceReport r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.StreamingSequenceReport) { - return mergeFrom((com.google.showcase.v1beta1.StreamingSequenceReport)other); + return mergeFrom((com.google.showcase.v1beta1.StreamingSequenceReport) other); } else { super.mergeFrom(other); return this; @@ -2028,7 +2265,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.StreamingSequenceReport other) { - if (other == com.google.showcase.v1beta1.StreamingSequenceReport.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.StreamingSequenceReport.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -2052,9 +2290,10 @@ public Builder mergeFrom(com.google.showcase.v1beta1.StreamingSequenceReport oth attemptsBuilder_ = null; attempts_ = other.attempts_; bitField0_ = (bitField0_ & ~0x00000002); - attemptsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAttemptsFieldBuilder() : null; + attemptsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAttemptsFieldBuilder() + : null; } else { attemptsBuilder_.addAllMessages(other.attempts_); } @@ -2086,30 +2325,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.showcase.v1beta1.StreamingSequenceReport.Attempt m = - input.readMessage( - com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.parser(), - extensionRegistry); - if (attemptsBuilder_ == null) { - ensureAttemptsIsMutable(); - attempts_.add(m); - } else { - attemptsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt m = + input.readMessage( + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.parser(), + extensionRegistry); + if (attemptsBuilder_ == null) { + ensureAttemptsIsMutable(); + attempts_.add(m); + } else { + attemptsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2119,18 +2361,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2140,15 +2383,14 @@ public java.lang.String getName() { } /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2157,12 +2399,14 @@ public java.lang.String getName() { } /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); @@ -2170,6 +2414,7 @@ public Builder setName( } /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2180,12 +2425,14 @@ public Builder clearName() { } /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2194,25 +2441,34 @@ public Builder setNameBytes( } private java.util.List attempts_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAttemptsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - attempts_ = new java.util.ArrayList(attempts_); + attempts_ = + new java.util.ArrayList( + attempts_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.StreamingSequenceReport.Attempt, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder, com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder> attemptsBuilder_; + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt, + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder, + com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder> + attemptsBuilder_; /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
* * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; */ - public java.util.List getAttemptsList() { + public java.util.List + getAttemptsList() { if (attemptsBuilder_ == null) { return java.util.Collections.unmodifiableList(attempts_); } else { @@ -2220,6 +2476,8 @@ public java.util.List * The set of RPC attempts received by the server for a Sequence. *
@@ -2234,6 +2492,8 @@ public int getAttemptsCount() { } } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2248,6 +2508,8 @@ public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt getAttempts(i } } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2269,6 +2531,8 @@ public Builder setAttempts( return this; } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2276,7 +2540,8 @@ public Builder setAttempts( * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; */ public Builder setAttempts( - int index, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder builderForValue) { + int index, + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder builderForValue) { if (attemptsBuilder_ == null) { ensureAttemptsIsMutable(); attempts_.set(index, builderForValue.build()); @@ -2287,6 +2552,8 @@ public Builder setAttempts( return this; } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2307,6 +2574,8 @@ public Builder addAttempts(com.google.showcase.v1beta1.StreamingSequenceReport.A return this; } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2328,6 +2597,8 @@ public Builder addAttempts( return this; } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2346,6 +2617,8 @@ public Builder addAttempts( return this; } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2353,7 +2626,8 @@ public Builder addAttempts( * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; */ public Builder addAttempts( - int index, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder builderForValue) { + int index, + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder builderForValue) { if (attemptsBuilder_ == null) { ensureAttemptsIsMutable(); attempts_.add(index, builderForValue.build()); @@ -2364,6 +2638,8 @@ public Builder addAttempts( return this; } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2371,11 +2647,11 @@ public Builder addAttempts( * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; */ public Builder addAllAttempts( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (attemptsBuilder_ == null) { ensureAttemptsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, attempts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attempts_); onChanged(); } else { attemptsBuilder_.addAllMessages(values); @@ -2383,6 +2659,8 @@ public Builder addAllAttempts( return this; } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2400,6 +2678,8 @@ public Builder clearAttempts() { return this; } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2417,6 +2697,8 @@ public Builder removeAttempts(int index) { return this; } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2428,28 +2710,34 @@ public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder getAt return getAttemptsFieldBuilder().getBuilder(index); } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
* * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; */ - public com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder getAttemptsOrBuilder( - int index) { + public com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder + getAttemptsOrBuilder(int index) { if (attemptsBuilder_ == null) { - return attempts_.get(index); } else { + return attempts_.get(index); + } else { return attemptsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
* * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; */ - public java.util.List - getAttemptsOrBuilderList() { + public java.util.List< + ? extends com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder> + getAttemptsOrBuilderList() { if (attemptsBuilder_ != null) { return attemptsBuilder_.getMessageOrBuilderList(); } else { @@ -2457,17 +2745,23 @@ public com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder getA } } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
* * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; */ - public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder addAttemptsBuilder() { - return getAttemptsFieldBuilder().addBuilder( - com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.getDefaultInstance()); + public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder + addAttemptsBuilder() { + return getAttemptsFieldBuilder() + .addBuilder( + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.getDefaultInstance()); } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
@@ -2476,37 +2770,44 @@ public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder addAt */ public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder addAttemptsBuilder( int index) { - return getAttemptsFieldBuilder().addBuilder( - index, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.getDefaultInstance()); + return getAttemptsFieldBuilder() + .addBuilder( + index, + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.getDefaultInstance()); } /** + * + * *
      * The set of RPC attempts received by the server for a Sequence.
      * 
* * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; */ - public java.util.List - getAttemptsBuilderList() { + public java.util.List + getAttemptsBuilderList() { return getAttemptsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.StreamingSequenceReport.Attempt, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder, com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder> + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt, + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder, + com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder> getAttemptsFieldBuilder() { if (attemptsBuilder_ == null) { - attemptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.StreamingSequenceReport.Attempt, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder, com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder>( - attempts_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + attemptsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt, + com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder, + com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder>( + attempts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); attempts_ = null; } return attemptsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2516,12 +2817,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.StreamingSequenceReport) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.StreamingSequenceReport) private static final com.google.showcase.v1beta1.StreamingSequenceReport DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.StreamingSequenceReport(); } @@ -2530,27 +2831,27 @@ public static com.google.showcase.v1beta1.StreamingSequenceReport getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingSequenceReport parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingSequenceReport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2565,6 +2866,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.StreamingSequenceReport getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java similarity index 100% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportOrBuilder.java similarity index 70% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportOrBuilder.java index f4e1808ba4..ce2878f089 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportOrBuilder.java @@ -1,35 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/sequence.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface StreamingSequenceReportOrBuilder extends +public interface StreamingSequenceReportOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.StreamingSequenceReport) com.google.protobuf.MessageOrBuilder { /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
* * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; */ - java.util.List - getAttemptsList(); + java.util.List getAttemptsList(); /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
@@ -38,6 +58,8 @@ public interface StreamingSequenceReportOrBuilder extends */ com.google.showcase.v1beta1.StreamingSequenceReport.Attempt getAttempts(int index); /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
@@ -46,15 +68,19 @@ public interface StreamingSequenceReportOrBuilder extends */ int getAttemptsCount(); /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
* * repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2; */ - java.util.List + java.util.List getAttemptsOrBuilderList(); /** + * + * *
    * The set of RPC attempts received by the server for a Sequence.
    * 
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Test.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Test.java similarity index 75% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Test.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Test.java index 65be49e88d..5237024441 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Test.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/Test.java @@ -1,21 +1,35 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -/** - * Protobuf type {@code google.showcase.v1beta1.Test} - */ -public final class Test extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.showcase.v1beta1.Test} */ +public final class Test extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.Test) TestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Test.newBuilder() to construct. private Test(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Test() { name_ = ""; expectationLevel_ = 0; @@ -25,38 +39,39 @@ private Test() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Test(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_Test_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_Test_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.showcase.v1beta1.Test.class, com.google.showcase.v1beta1.Test.Builder.class); } /** + * + * *
    * Whether or not a test is required, recommended, or optional.
    * 
* * Protobuf enum {@code google.showcase.v1beta1.Test.ExpectationLevel} */ - public enum ExpectationLevel - implements com.google.protobuf.ProtocolMessageEnum { - /** - * EXPECTATION_LEVEL_UNSPECIFIED = 0; - */ + public enum ExpectationLevel implements com.google.protobuf.ProtocolMessageEnum { + /** EXPECTATION_LEVEL_UNSPECIFIED = 0; */ EXPECTATION_LEVEL_UNSPECIFIED(0), /** + * + * *
      * This test is strictly required.
      * 
@@ -65,6 +80,8 @@ public enum ExpectationLevel */ REQUIRED(1), /** + * + * *
      * This test is recommended.
      *
@@ -79,6 +96,8 @@ public enum ExpectationLevel
      */
     RECOMMENDED(2),
     /**
+     *
+     *
      * 
      * This test is optional.
      *
@@ -96,11 +115,11 @@ public enum ExpectationLevel
     UNRECOGNIZED(-1),
     ;
 
-    /**
-     * EXPECTATION_LEVEL_UNSPECIFIED = 0;
-     */
+    /** EXPECTATION_LEVEL_UNSPECIFIED = 0; */
     public static final int EXPECTATION_LEVEL_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * This test is strictly required.
      * 
@@ -109,6 +128,8 @@ public enum ExpectationLevel */ public static final int REQUIRED_VALUE = 1; /** + * + * *
      * This test is recommended.
      *
@@ -123,6 +144,8 @@ public enum ExpectationLevel
      */
     public static final int RECOMMENDED_VALUE = 2;
     /**
+     *
+     *
      * 
      * This test is optional.
      *
@@ -138,7 +161,6 @@ public enum ExpectationLevel
      */
     public static final int OPTIONAL_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -163,40 +185,44 @@ public static ExpectationLevel valueOf(int value) {
      */
     public static ExpectationLevel forNumber(int value) {
       switch (value) {
-        case 0: return EXPECTATION_LEVEL_UNSPECIFIED;
-        case 1: return REQUIRED;
-        case 2: return RECOMMENDED;
-        case 3: return OPTIONAL;
-        default: return null;
+        case 0:
+          return EXPECTATION_LEVEL_UNSPECIFIED;
+        case 1:
+          return REQUIRED;
+        case 2:
+          return RECOMMENDED;
+        case 3:
+          return OPTIONAL;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        ExpectationLevel> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public ExpectationLevel findValueByNumber(int number) {
-              return ExpectationLevel.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public ExpectationLevel findValueByNumber(int number) {
+                return ExpectationLevel.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.showcase.v1beta1.Test.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -205,8 +231,7 @@ public ExpectationLevel findValueByNumber(int number) {
     public static ExpectationLevel valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -223,69 +248,88 @@ private ExpectationLevel(int value) {
     // @@protoc_insertion_point(enum_scope:google.showcase.v1beta1.Test.ExpectationLevel)
   }
 
-  public interface BlueprintOrBuilder extends
+  public interface BlueprintOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.Test.Blueprint)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The name of this blueprint.
      * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * The name of this blueprint.
      * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * A description of this blueprint.
      * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
      * A description of this blueprint.
      * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
      * The initial request to trigger this test.
      * 
* * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + * * @return Whether the request field is set. */ boolean hasRequest(); /** + * + * *
      * The initial request to trigger this test.
      * 
* * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + * * @return The request. */ com.google.showcase.v1beta1.Test.Blueprint.Invocation getRequest(); /** + * + * *
      * The initial request to trigger this test.
      * 
@@ -295,50 +339,67 @@ public interface BlueprintOrBuilder extends com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder getRequestOrBuilder(); /** + * + * *
      * An ordered list of method calls that can be called to trigger this test.
      * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ - java.util.List + java.util.List getAdditionalRequestsList(); /** + * + * *
      * An ordered list of method calls that can be called to trigger this test.
      * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ com.google.showcase.v1beta1.Test.Blueprint.Invocation getAdditionalRequests(int index); /** + * + * *
      * An ordered list of method calls that can be called to trigger this test.
      * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ int getAdditionalRequestsCount(); /** + * + * *
      * An ordered list of method calls that can be called to trigger this test.
      * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ - java.util.List + java.util.List getAdditionalRequestsOrBuilderList(); /** + * + * *
      * An ordered list of method calls that can be called to trigger this test.
      * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder getAdditionalRequestsOrBuilder( int index); } /** + * + * *
    * A blueprint is an explicit definition of methods and requests that are needed
    * to be made to test this specific test case. Ideally this would be represented
@@ -348,15 +409,16 @@ com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder getAdditionalRequ
    *
    * Protobuf type {@code google.showcase.v1beta1.Test.Blueprint}
    */
-  public static final class Blueprint extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Blueprint extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.Test.Blueprint)
       BlueprintOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Blueprint.newBuilder() to construct.
     private Blueprint(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Blueprint() {
       name_ = "";
       description_ = "";
@@ -365,74 +427,87 @@ private Blueprint() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Blueprint();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.TestingOuterClass
+          .internal_static_google_showcase_v1beta1_Test_Blueprint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_fieldAccessorTable
+      return com.google.showcase.v1beta1.TestingOuterClass
+          .internal_static_google_showcase_v1beta1_Test_Blueprint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.Test.Blueprint.class, com.google.showcase.v1beta1.Test.Blueprint.Builder.class);
+              com.google.showcase.v1beta1.Test.Blueprint.class,
+              com.google.showcase.v1beta1.Test.Blueprint.Builder.class);
     }
 
-    public interface InvocationOrBuilder extends
+    public interface InvocationOrBuilder
+        extends
         // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.Test.Blueprint.Invocation)
         com.google.protobuf.MessageOrBuilder {
 
       /**
+       *
+       *
        * 
        * The fully qualified name of the showcase method to be invoked.
        * 
* * string method = 1; + * * @return The method. */ java.lang.String getMethod(); /** + * + * *
        * The fully qualified name of the showcase method to be invoked.
        * 
* * string method = 1; + * * @return The bytes for method. */ - com.google.protobuf.ByteString - getMethodBytes(); + com.google.protobuf.ByteString getMethodBytes(); /** + * + * *
        * The request to be made if a specific request is necessary.
        * 
* * bytes serialized_request = 2; + * * @return The serializedRequest. */ com.google.protobuf.ByteString getSerializedRequest(); } /** + * + * *
      * A message representing a method invocation.
      * 
* * Protobuf type {@code google.showcase.v1beta1.Test.Blueprint.Invocation} */ - public static final class Invocation extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Invocation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.Test.Blueprint.Invocation) InvocationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Invocation.newBuilder() to construct. private Invocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Invocation() { method_ = ""; serializedRequest_ = com.google.protobuf.ByteString.EMPTY; @@ -440,33 +515,38 @@ private Invocation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Invocation(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.Test.Blueprint.Invocation.class, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder.class); + com.google.showcase.v1beta1.Test.Blueprint.Invocation.class, + com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder.class); } public static final int METHOD_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object method_ = ""; /** + * + * *
        * The fully qualified name of the showcase method to be invoked.
        * 
* * string method = 1; + * * @return The method. */ @java.lang.Override @@ -475,29 +555,29 @@ public java.lang.String getMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); method_ = s; return s; } } /** + * + * *
        * The fully qualified name of the showcase method to be invoked.
        * 
* * string method = 1; + * * @return The bytes for method. */ @java.lang.Override - public com.google.protobuf.ByteString - getMethodBytes() { + public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); method_ = b; return b; } else { @@ -506,13 +586,17 @@ public java.lang.String getMethod() { } public static final int SERIALIZED_REQUEST_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString serializedRequest_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedRequest_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
        * The request to be made if a specific request is necessary.
        * 
* * bytes serialized_request = 2; + * * @return The serializedRequest. */ @java.lang.Override @@ -521,6 +605,7 @@ public com.google.protobuf.ByteString getSerializedRequest() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -532,8 +617,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); } @@ -553,8 +637,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_); } if (!serializedRequest_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, serializedRequest_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, serializedRequest_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -564,17 +647,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.Test.Blueprint.Invocation)) { return super.equals(obj); } - com.google.showcase.v1beta1.Test.Blueprint.Invocation other = (com.google.showcase.v1beta1.Test.Blueprint.Invocation) obj; + com.google.showcase.v1beta1.Test.Blueprint.Invocation other = + (com.google.showcase.v1beta1.Test.Blueprint.Invocation) obj; - if (!getMethod() - .equals(other.getMethod())) return false; - if (!getSerializedRequest() - .equals(other.getSerializedRequest())) return false; + if (!getMethod().equals(other.getMethod())) return false; + if (!getSerializedRequest().equals(other.getSerializedRequest())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -596,89 +678,94 @@ public int hashCode() { } public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.Test.Blueprint.Invocation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.showcase.v1beta1.Test.Blueprint.Invocation prototype) { + + public static Builder newBuilder( + com.google.showcase.v1beta1.Test.Blueprint.Invocation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -688,39 +775,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * A message representing a method invocation.
        * 
* * Protobuf type {@code google.showcase.v1beta1.Test.Blueprint.Invocation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.Test.Blueprint.Invocation) com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.Test.Blueprint.Invocation.class, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder.class); + com.google.showcase.v1beta1.Test.Blueprint.Invocation.class, + com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder.class); } // Construct using com.google.showcase.v1beta1.Test.Blueprint.Invocation.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -731,9 +820,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_descriptor; } @java.lang.Override @@ -752,8 +841,11 @@ public com.google.showcase.v1beta1.Test.Blueprint.Invocation build() { @java.lang.Override public com.google.showcase.v1beta1.Test.Blueprint.Invocation buildPartial() { - com.google.showcase.v1beta1.Test.Blueprint.Invocation result = new com.google.showcase.v1beta1.Test.Blueprint.Invocation(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.Test.Blueprint.Invocation result = + new com.google.showcase.v1beta1.Test.Blueprint.Invocation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -772,38 +864,41 @@ private void buildPartial0(com.google.showcase.v1beta1.Test.Blueprint.Invocation public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.Test.Blueprint.Invocation) { - return mergeFrom((com.google.showcase.v1beta1.Test.Blueprint.Invocation)other); + return mergeFrom((com.google.showcase.v1beta1.Test.Blueprint.Invocation) other); } else { super.mergeFrom(other); return this; @@ -811,7 +906,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.showcase.v1beta1.Test.Blueprint.Invocation other) { - if (other == com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance()) return this; + if (other == com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance()) + return this; if (!other.getMethod().isEmpty()) { method_ = other.method_; bitField0_ |= 0x00000001; @@ -846,22 +942,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - method_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - serializedRequest_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + method_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + serializedRequest_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -871,22 +970,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object method_ = ""; /** + * + * *
          * The fully qualified name of the showcase method to be invoked.
          * 
* * string method = 1; + * * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); method_ = s; return s; @@ -895,20 +997,21 @@ public java.lang.String getMethod() { } } /** + * + * *
          * The fully qualified name of the showcase method to be invoked.
          * 
* * string method = 1; + * * @return The bytes for method. */ - public com.google.protobuf.ByteString - getMethodBytes() { + public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); method_ = b; return b; } else { @@ -916,28 +1019,35 @@ public java.lang.String getMethod() { } } /** + * + * *
          * The fully qualified name of the showcase method to be invoked.
          * 
* * string method = 1; + * * @param value The method to set. * @return This builder for chaining. */ - public Builder setMethod( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } method_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * The fully qualified name of the showcase method to be invoked.
          * 
* * string method = 1; + * * @return This builder for chaining. */ public Builder clearMethod() { @@ -947,17 +1057,21 @@ public Builder clearMethod() { return this; } /** + * + * *
          * The fully qualified name of the showcase method to be invoked.
          * 
* * string method = 1; + * * @param value The bytes for method to set. * @return This builder for chaining. */ - public Builder setMethodBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); method_ = value; bitField0_ |= 0x00000001; @@ -965,13 +1079,17 @@ public Builder setMethodBytes( return this; } - private com.google.protobuf.ByteString serializedRequest_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedRequest_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
          * The request to be made if a specific request is necessary.
          * 
* * bytes serialized_request = 2; + * * @return The serializedRequest. */ @java.lang.Override @@ -979,27 +1097,35 @@ public com.google.protobuf.ByteString getSerializedRequest() { return serializedRequest_; } /** + * + * *
          * The request to be made if a specific request is necessary.
          * 
* * bytes serialized_request = 2; + * * @param value The serializedRequest to set. * @return This builder for chaining. */ public Builder setSerializedRequest(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } serializedRequest_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
          * The request to be made if a specific request is necessary.
          * 
* * bytes serialized_request = 2; + * * @return This builder for chaining. */ public Builder clearSerializedRequest() { @@ -1008,6 +1134,7 @@ public Builder clearSerializedRequest() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1020,12 +1147,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.Test.Blueprint.Invocation) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.Test.Blueprint.Invocation) private static final com.google.showcase.v1beta1.Test.Blueprint.Invocation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.Test.Blueprint.Invocation(); } @@ -1034,27 +1161,28 @@ public static com.google.showcase.v1beta1.Test.Blueprint.Invocation getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Invocation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Invocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1069,19 +1197,22 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.Test.Blueprint.Invocation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
      * The name of this blueprint.
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -1090,29 +1221,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * The name of this blueprint.
      * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1121,14 +1252,18 @@ public java.lang.String getName() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
      * A description of this blueprint.
      * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -1137,29 +1272,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
      * A description of this blueprint.
      * 
* * string description = 2; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1170,11 +1305,14 @@ public java.lang.String getDescription() { public static final int REQUEST_FIELD_NUMBER = 3; private com.google.showcase.v1beta1.Test.Blueprint.Invocation request_; /** + * + * *
      * The initial request to trigger this test.
      * 
* * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + * * @return Whether the request field is set. */ @java.lang.Override @@ -1182,18 +1320,25 @@ public boolean hasRequest() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The initial request to trigger this test.
      * 
* * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + * * @return The request. */ @java.lang.Override public com.google.showcase.v1beta1.Test.Blueprint.Invocation getRequest() { - return request_ == null ? com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance() : request_; + return request_ == null + ? com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance() + : request_; } /** + * + * *
      * The initial request to trigger this test.
      * 
@@ -1202,71 +1347,92 @@ public com.google.showcase.v1beta1.Test.Blueprint.Invocation getRequest() { */ @java.lang.Override public com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder getRequestOrBuilder() { - return request_ == null ? com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance() : request_; + return request_ == null + ? com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance() + : request_; } public static final int ADDITIONAL_REQUESTS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") - private java.util.List additionalRequests_; + private java.util.List + additionalRequests_; /** + * + * *
      * An ordered list of method calls that can be called to trigger this test.
      * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ @java.lang.Override - public java.util.List getAdditionalRequestsList() { + public java.util.List + getAdditionalRequestsList() { return additionalRequests_; } /** + * + * *
      * An ordered list of method calls that can be called to trigger this test.
      * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ @java.lang.Override - public java.util.List + public java.util.List getAdditionalRequestsOrBuilderList() { return additionalRequests_; } /** + * + * *
      * An ordered list of method calls that can be called to trigger this test.
      * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ @java.lang.Override public int getAdditionalRequestsCount() { return additionalRequests_.size(); } /** + * + * *
      * An ordered list of method calls that can be called to trigger this test.
      * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ @java.lang.Override public com.google.showcase.v1beta1.Test.Blueprint.Invocation getAdditionalRequests(int index) { return additionalRequests_.get(index); } /** + * + * *
      * An ordered list of method calls that can be called to trigger this test.
      * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ @java.lang.Override - public com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder getAdditionalRequestsOrBuilder( - int index) { + public com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder + getAdditionalRequestsOrBuilder(int index) { return additionalRequests_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1278,8 +1444,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1308,12 +1473,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRequest()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequest()); } for (int i = 0; i < additionalRequests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, additionalRequests_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, additionalRequests_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1323,24 +1487,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.Test.Blueprint)) { return super.equals(obj); } - com.google.showcase.v1beta1.Test.Blueprint other = (com.google.showcase.v1beta1.Test.Blueprint) obj; + com.google.showcase.v1beta1.Test.Blueprint other = + (com.google.showcase.v1beta1.Test.Blueprint) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasRequest() != other.hasRequest()) return false; if (hasRequest()) { - if (!getRequest() - .equals(other.getRequest())) return false; + if (!getRequest().equals(other.getRequest())) return false; } - if (!getAdditionalRequestsList() - .equals(other.getAdditionalRequestsList())) return false; + if (!getAdditionalRequestsList().equals(other.getAdditionalRequestsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1369,90 +1530,94 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.Test.Blueprint parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.Test.Blueprint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Test.Blueprint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.Test.Blueprint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Test.Blueprint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.Test.Blueprint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.Test.Blueprint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.Test.Blueprint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.Test.Blueprint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.Test.Blueprint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.Test.Blueprint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.Test.Blueprint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.Test.Blueprint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.Test.Blueprint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.Test.Blueprint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1462,6 +1627,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A blueprint is an explicit definition of methods and requests that are needed
      * to be made to test this specific test case. Ideally this would be represented
@@ -1471,21 +1638,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.showcase.v1beta1.Test.Blueprint}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.Test.Blueprint)
         com.google.showcase.v1beta1.Test.BlueprintOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.showcase.v1beta1.TestingOuterClass
+            .internal_static_google_showcase_v1beta1_Test_Blueprint_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_fieldAccessorTable
+        return com.google.showcase.v1beta1.TestingOuterClass
+            .internal_static_google_showcase_v1beta1_Test_Blueprint_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.showcase.v1beta1.Test.Blueprint.class, com.google.showcase.v1beta1.Test.Blueprint.Builder.class);
+                com.google.showcase.v1beta1.Test.Blueprint.class,
+                com.google.showcase.v1beta1.Test.Blueprint.Builder.class);
       }
 
       // Construct using com.google.showcase.v1beta1.Test.Blueprint.newBuilder()
@@ -1493,18 +1663,18 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
           getRequestFieldBuilder();
           getAdditionalRequestsFieldBuilder();
         }
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1527,9 +1697,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_Blueprint_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.showcase.v1beta1.TestingOuterClass
+            .internal_static_google_showcase_v1beta1_Test_Blueprint_descriptor;
       }
 
       @java.lang.Override
@@ -1548,9 +1718,12 @@ public com.google.showcase.v1beta1.Test.Blueprint build() {
 
       @java.lang.Override
       public com.google.showcase.v1beta1.Test.Blueprint buildPartial() {
-        com.google.showcase.v1beta1.Test.Blueprint result = new com.google.showcase.v1beta1.Test.Blueprint(this);
+        com.google.showcase.v1beta1.Test.Blueprint result =
+            new com.google.showcase.v1beta1.Test.Blueprint(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -1577,9 +1750,7 @@ private void buildPartial0(com.google.showcase.v1beta1.Test.Blueprint result) {
         }
         int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000004) != 0)) {
-          result.request_ = requestBuilder_ == null
-              ? request_
-              : requestBuilder_.build();
+          result.request_ = requestBuilder_ == null ? request_ : requestBuilder_.build();
           to_bitField0_ |= 0x00000001;
         }
         result.bitField0_ |= to_bitField0_;
@@ -1589,38 +1760,41 @@ private void buildPartial0(com.google.showcase.v1beta1.Test.Blueprint result) {
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.showcase.v1beta1.Test.Blueprint) {
-          return mergeFrom((com.google.showcase.v1beta1.Test.Blueprint)other);
+          return mergeFrom((com.google.showcase.v1beta1.Test.Blueprint) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1660,9 +1834,10 @@ public Builder mergeFrom(com.google.showcase.v1beta1.Test.Blueprint other) {
               additionalRequestsBuilder_ = null;
               additionalRequests_ = other.additionalRequests_;
               bitField0_ = (bitField0_ & ~0x00000008);
-              additionalRequestsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getAdditionalRequestsFieldBuilder() : null;
+              additionalRequestsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getAdditionalRequestsFieldBuilder()
+                      : null;
             } else {
               additionalRequestsBuilder_.addAllMessages(other.additionalRequests_);
             }
@@ -1694,42 +1869,45 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              case 26: {
-                input.readMessage(
-                    getRequestFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-              case 34: {
-                com.google.showcase.v1beta1.Test.Blueprint.Invocation m =
-                    input.readMessage(
-                        com.google.showcase.v1beta1.Test.Blueprint.Invocation.parser(),
-                        extensionRegistry);
-                if (additionalRequestsBuilder_ == null) {
-                  ensureAdditionalRequestsIsMutable();
-                  additionalRequests_.add(m);
-                } else {
-                  additionalRequestsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 34
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  name_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  description_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              case 26:
+                {
+                  input.readMessage(getRequestFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 26
+              case 34:
+                {
+                  com.google.showcase.v1beta1.Test.Blueprint.Invocation m =
+                      input.readMessage(
+                          com.google.showcase.v1beta1.Test.Blueprint.Invocation.parser(),
+                          extensionRegistry);
+                  if (additionalRequestsBuilder_ == null) {
+                    ensureAdditionalRequestsIsMutable();
+                    additionalRequests_.add(m);
+                  } else {
+                    additionalRequestsBuilder_.addMessage(m);
+                  }
+                  break;
+                } // case 34
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1739,22 +1917,25 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private java.lang.Object name_ = "";
       /**
+       *
+       *
        * 
        * The name of this blueprint.
        * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1763,20 +1944,21 @@ public java.lang.String getName() { } } /** + * + * *
        * The name of this blueprint.
        * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1784,28 +1966,35 @@ public java.lang.String getName() { } } /** + * + * *
        * The name of this blueprint.
        * 
* * 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(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The name of this blueprint.
        * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1815,17 +2004,21 @@ public Builder clearName() { return this; } /** + * + * *
        * The name of this blueprint.
        * 
* * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1835,18 +2028,20 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
        * A description of this blueprint.
        * 
* * string description = 2; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1855,20 +2050,21 @@ public java.lang.String getDescription() { } } /** + * + * *
        * A description of this blueprint.
        * 
* * string description = 2; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1876,28 +2072,35 @@ public java.lang.String getDescription() { } } /** + * + * *
        * A description of this blueprint.
        * 
* * string description = 2; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * A description of this blueprint.
        * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1907,17 +2110,21 @@ public Builder clearDescription() { return this; } /** + * + * *
        * A description of this blueprint.
        * 
* * string description = 2; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; @@ -1927,34 +2134,47 @@ public Builder setDescriptionBytes( private com.google.showcase.v1beta1.Test.Blueprint.Invocation request_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Test.Blueprint.Invocation, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder, com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder> requestBuilder_; + com.google.showcase.v1beta1.Test.Blueprint.Invocation, + com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder, + com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder> + requestBuilder_; /** + * + * *
        * The initial request to trigger this test.
        * 
* * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + * * @return Whether the request field is set. */ public boolean hasRequest() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * The initial request to trigger this test.
        * 
* * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; + * * @return The request. */ public com.google.showcase.v1beta1.Test.Blueprint.Invocation getRequest() { if (requestBuilder_ == null) { - return request_ == null ? com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance() : request_; + return request_ == null + ? com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance() + : request_; } else { return requestBuilder_.getMessage(); } } /** + * + * *
        * The initial request to trigger this test.
        * 
@@ -1975,6 +2195,8 @@ public Builder setRequest(com.google.showcase.v1beta1.Test.Blueprint.Invocation return this; } /** + * + * *
        * The initial request to trigger this test.
        * 
@@ -1993,6 +2215,8 @@ public Builder setRequest( return this; } /** + * + * *
        * The initial request to trigger this test.
        * 
@@ -2001,9 +2225,10 @@ public Builder setRequest( */ public Builder mergeRequest(com.google.showcase.v1beta1.Test.Blueprint.Invocation value) { if (requestBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - request_ != null && - request_ != com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && request_ != null + && request_ + != com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance()) { getRequestBuilder().mergeFrom(value); } else { request_ = value; @@ -2018,6 +2243,8 @@ public Builder mergeRequest(com.google.showcase.v1beta1.Test.Blueprint.Invocatio return this; } /** + * + * *
        * The initial request to trigger this test.
        * 
@@ -2035,6 +2262,8 @@ public Builder clearRequest() { return this; } /** + * + * *
        * The initial request to trigger this test.
        * 
@@ -2047,6 +2276,8 @@ public com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder getRequestB return getRequestFieldBuilder().getBuilder(); } /** + * + * *
        * The initial request to trigger this test.
        * 
@@ -2057,11 +2288,14 @@ public com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder getRequest if (requestBuilder_ != null) { return requestBuilder_.getMessageOrBuilder(); } else { - return request_ == null ? - com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance() : request_; + return request_ == null + ? com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance() + : request_; } } /** + * + * *
        * The initial request to trigger this test.
        * 
@@ -2069,39 +2303,52 @@ public com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder getRequest * .google.showcase.v1beta1.Test.Blueprint.Invocation request = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Test.Blueprint.Invocation, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder, com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder> + com.google.showcase.v1beta1.Test.Blueprint.Invocation, + com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder, + com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder> getRequestFieldBuilder() { if (requestBuilder_ == null) { - requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Test.Blueprint.Invocation, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder, com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder>( - getRequest(), - getParentForChildren(), - isClean()); + requestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Test.Blueprint.Invocation, + com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder, + com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder>( + getRequest(), getParentForChildren(), isClean()); request_ = null; } return requestBuilder_; } - private java.util.List additionalRequests_ = - java.util.Collections.emptyList(); + private java.util.List + additionalRequests_ = java.util.Collections.emptyList(); + private void ensureAdditionalRequestsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - additionalRequests_ = new java.util.ArrayList(additionalRequests_); + additionalRequests_ = + new java.util.ArrayList( + additionalRequests_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.Test.Blueprint.Invocation, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder, com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder> additionalRequestsBuilder_; + com.google.showcase.v1beta1.Test.Blueprint.Invocation, + com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder, + com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder> + additionalRequestsBuilder_; /** + * + * *
        * An ordered list of method calls that can be called to trigger this test.
        * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ - public java.util.List getAdditionalRequestsList() { + public java.util.List + getAdditionalRequestsList() { if (additionalRequestsBuilder_ == null) { return java.util.Collections.unmodifiableList(additionalRequests_); } else { @@ -2109,11 +2356,14 @@ public java.util.List get } } /** + * + * *
        * An ordered list of method calls that can be called to trigger this test.
        * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ public int getAdditionalRequestsCount() { if (additionalRequestsBuilder_ == null) { @@ -2123,13 +2373,17 @@ public int getAdditionalRequestsCount() { } } /** + * + * *
        * An ordered list of method calls that can be called to trigger this test.
        * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ - public com.google.showcase.v1beta1.Test.Blueprint.Invocation getAdditionalRequests(int index) { + public com.google.showcase.v1beta1.Test.Blueprint.Invocation getAdditionalRequests( + int index) { if (additionalRequestsBuilder_ == null) { return additionalRequests_.get(index); } else { @@ -2137,11 +2391,14 @@ public com.google.showcase.v1beta1.Test.Blueprint.Invocation getAdditionalReques } } /** + * + * *
        * An ordered list of method calls that can be called to trigger this test.
        * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ public Builder setAdditionalRequests( int index, com.google.showcase.v1beta1.Test.Blueprint.Invocation value) { @@ -2158,14 +2415,18 @@ public Builder setAdditionalRequests( return this; } /** + * + * *
        * An ordered list of method calls that can be called to trigger this test.
        * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ public Builder setAdditionalRequests( - int index, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder builderForValue) { + int index, + com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder builderForValue) { if (additionalRequestsBuilder_ == null) { ensureAdditionalRequestsIsMutable(); additionalRequests_.set(index, builderForValue.build()); @@ -2176,13 +2437,17 @@ public Builder setAdditionalRequests( return this; } /** + * + * *
        * An ordered list of method calls that can be called to trigger this test.
        * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ - public Builder addAdditionalRequests(com.google.showcase.v1beta1.Test.Blueprint.Invocation value) { + public Builder addAdditionalRequests( + com.google.showcase.v1beta1.Test.Blueprint.Invocation value) { if (additionalRequestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2196,11 +2461,14 @@ public Builder addAdditionalRequests(com.google.showcase.v1beta1.Test.Blueprint. return this; } /** + * + * *
        * An ordered list of method calls that can be called to trigger this test.
        * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ public Builder addAdditionalRequests( int index, com.google.showcase.v1beta1.Test.Blueprint.Invocation value) { @@ -2217,11 +2485,14 @@ public Builder addAdditionalRequests( return this; } /** + * + * *
        * An ordered list of method calls that can be called to trigger this test.
        * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ public Builder addAdditionalRequests( com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder builderForValue) { @@ -2235,14 +2506,18 @@ public Builder addAdditionalRequests( return this; } /** + * + * *
        * An ordered list of method calls that can be called to trigger this test.
        * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ public Builder addAdditionalRequests( - int index, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder builderForValue) { + int index, + com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder builderForValue) { if (additionalRequestsBuilder_ == null) { ensureAdditionalRequestsIsMutable(); additionalRequests_.add(index, builderForValue.build()); @@ -2253,18 +2528,21 @@ public Builder addAdditionalRequests( return this; } /** + * + * *
        * An ordered list of method calls that can be called to trigger this test.
        * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ public Builder addAllAdditionalRequests( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (additionalRequestsBuilder_ == null) { ensureAdditionalRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, additionalRequests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalRequests_); onChanged(); } else { additionalRequestsBuilder_.addAllMessages(values); @@ -2272,11 +2550,14 @@ public Builder addAllAdditionalRequests( return this; } /** + * + * *
        * An ordered list of method calls that can be called to trigger this test.
        * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ public Builder clearAdditionalRequests() { if (additionalRequestsBuilder_ == null) { @@ -2289,11 +2570,14 @@ public Builder clearAdditionalRequests() { return this; } /** + * + * *
        * An ordered list of method calls that can be called to trigger this test.
        * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ public Builder removeAdditionalRequests(int index) { if (additionalRequestsBuilder_ == null) { @@ -2306,39 +2590,50 @@ public Builder removeAdditionalRequests(int index) { return this; } /** + * + * *
        * An ordered list of method calls that can be called to trigger this test.
        * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ - public com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder getAdditionalRequestsBuilder( - int index) { + public com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder + getAdditionalRequestsBuilder(int index) { return getAdditionalRequestsFieldBuilder().getBuilder(index); } /** + * + * *
        * An ordered list of method calls that can be called to trigger this test.
        * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ - public com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder getAdditionalRequestsOrBuilder( - int index) { + public com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder + getAdditionalRequestsOrBuilder(int index) { if (additionalRequestsBuilder_ == null) { - return additionalRequests_.get(index); } else { + return additionalRequests_.get(index); + } else { return additionalRequestsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * An ordered list of method calls that can be called to trigger this test.
        * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ - public java.util.List - getAdditionalRequestsOrBuilderList() { + public java.util.List< + ? extends com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder> + getAdditionalRequestsOrBuilderList() { if (additionalRequestsBuilder_ != null) { return additionalRequestsBuilder_.getMessageOrBuilderList(); } else { @@ -2346,45 +2641,62 @@ public com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder getAdditio } } /** + * + * *
        * An ordered list of method calls that can be called to trigger this test.
        * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ - public com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder addAdditionalRequestsBuilder() { - return getAdditionalRequestsFieldBuilder().addBuilder( - com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance()); + public com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder + addAdditionalRequestsBuilder() { + return getAdditionalRequestsFieldBuilder() + .addBuilder(com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance()); } /** + * + * *
        * An ordered list of method calls that can be called to trigger this test.
        * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ - public com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder addAdditionalRequestsBuilder( - int index) { - return getAdditionalRequestsFieldBuilder().addBuilder( - index, com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance()); + public com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder + addAdditionalRequestsBuilder(int index) { + return getAdditionalRequestsFieldBuilder() + .addBuilder( + index, com.google.showcase.v1beta1.Test.Blueprint.Invocation.getDefaultInstance()); } /** + * + * *
        * An ordered list of method calls that can be called to trigger this test.
        * 
* - * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * repeated .google.showcase.v1beta1.Test.Blueprint.Invocation additional_requests = 4; + * */ - public java.util.List - getAdditionalRequestsBuilderList() { + public java.util.List + getAdditionalRequestsBuilderList() { return getAdditionalRequestsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.Test.Blueprint.Invocation, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder, com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder> + com.google.showcase.v1beta1.Test.Blueprint.Invocation, + com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder, + com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder> getAdditionalRequestsFieldBuilder() { if (additionalRequestsBuilder_ == null) { - additionalRequestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.Test.Blueprint.Invocation, com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder, com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder>( + additionalRequestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.showcase.v1beta1.Test.Blueprint.Invocation, + com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder, + com.google.showcase.v1beta1.Test.Blueprint.InvocationOrBuilder>( additionalRequests_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -2393,6 +2705,7 @@ public com.google.showcase.v1beta1.Test.Blueprint.Invocation.Builder addAddition } return additionalRequestsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2405,12 +2718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.Test.Blueprint) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.Test.Blueprint) private static final com.google.showcase.v1beta1.Test.Blueprint DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.Test.Blueprint(); } @@ -2419,27 +2732,28 @@ public static com.google.showcase.v1beta1.Test.Blueprint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Blueprint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Blueprint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2454,13 +2768,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.Test.Blueprint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The name of the test.
    * The tests/* portion of the names are hard-coded, and do not change
@@ -2468,6 +2784,7 @@ public com.google.showcase.v1beta1.Test.Blueprint getDefaultInstanceForType() {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -2476,14 +2793,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the test.
    * The tests/* portion of the names are hard-coded, and do not change
@@ -2491,16 +2809,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2511,38 +2828,51 @@ public java.lang.String getName() { public static final int EXPECTATION_LEVEL_FIELD_NUMBER = 2; private int expectationLevel_ = 0; /** + * + * *
    * The expectation level for this test.
    * 
* * .google.showcase.v1beta1.Test.ExpectationLevel expectation_level = 2; + * * @return The enum numeric value on the wire for expectationLevel. */ - @java.lang.Override public int getExpectationLevelValue() { + @java.lang.Override + public int getExpectationLevelValue() { return expectationLevel_; } /** + * + * *
    * The expectation level for this test.
    * 
* * .google.showcase.v1beta1.Test.ExpectationLevel expectation_level = 2; + * * @return The expectationLevel. */ - @java.lang.Override public com.google.showcase.v1beta1.Test.ExpectationLevel getExpectationLevel() { - com.google.showcase.v1beta1.Test.ExpectationLevel result = com.google.showcase.v1beta1.Test.ExpectationLevel.forNumber(expectationLevel_); + @java.lang.Override + public com.google.showcase.v1beta1.Test.ExpectationLevel getExpectationLevel() { + com.google.showcase.v1beta1.Test.ExpectationLevel result = + com.google.showcase.v1beta1.Test.ExpectationLevel.forNumber(expectationLevel_); return result == null ? com.google.showcase.v1beta1.Test.ExpectationLevel.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * A description of the test.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -2551,29 +2881,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * A description of the test.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -2582,9 +2912,12 @@ public java.lang.String getDescription() { } public static final int BLUEPRINTS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List blueprints_; /** + * + * *
    * The blueprints that will satisfy this test. There may be multiple blueprints
    * that can signal to the server that this test case is being exercised. Although
@@ -2599,6 +2932,8 @@ public java.util.List getBlueprintsL
     return blueprints_;
   }
   /**
+   *
+   *
    * 
    * The blueprints that will satisfy this test. There may be multiple blueprints
    * that can signal to the server that this test case is being exercised. Although
@@ -2609,11 +2944,13 @@ public java.util.List getBlueprintsL
    * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getBlueprintsOrBuilderList() {
     return blueprints_;
   }
   /**
+   *
+   *
    * 
    * The blueprints that will satisfy this test. There may be multiple blueprints
    * that can signal to the server that this test case is being exercised. Although
@@ -2628,6 +2965,8 @@ public int getBlueprintsCount() {
     return blueprints_.size();
   }
   /**
+   *
+   *
    * 
    * The blueprints that will satisfy this test. There may be multiple blueprints
    * that can signal to the server that this test case is being exercised. Although
@@ -2642,6 +2981,8 @@ public com.google.showcase.v1beta1.Test.Blueprint getBlueprints(int index) {
     return blueprints_.get(index);
   }
   /**
+   *
+   *
    * 
    * The blueprints that will satisfy this test. There may be multiple blueprints
    * that can signal to the server that this test case is being exercised. Although
@@ -2652,12 +2993,12 @@ public com.google.showcase.v1beta1.Test.Blueprint getBlueprints(int index) {
    * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4;
    */
   @java.lang.Override
-  public com.google.showcase.v1beta1.Test.BlueprintOrBuilder getBlueprintsOrBuilder(
-      int index) {
+  public com.google.showcase.v1beta1.Test.BlueprintOrBuilder getBlueprintsOrBuilder(int index) {
     return blueprints_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -2669,12 +3010,13 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
-    if (expectationLevel_ != com.google.showcase.v1beta1.Test.ExpectationLevel.EXPECTATION_LEVEL_UNSPECIFIED.getNumber()) {
+    if (expectationLevel_
+        != com.google.showcase.v1beta1.Test.ExpectationLevel.EXPECTATION_LEVEL_UNSPECIFIED
+            .getNumber()) {
       output.writeEnum(2, expectationLevel_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
@@ -2695,16 +3037,16 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    if (expectationLevel_ != com.google.showcase.v1beta1.Test.ExpectationLevel.EXPECTATION_LEVEL_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(2, expectationLevel_);
+    if (expectationLevel_
+        != com.google.showcase.v1beta1.Test.ExpectationLevel.EXPECTATION_LEVEL_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, expectationLevel_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
     }
     for (int i = 0; i < blueprints_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, blueprints_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, blueprints_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -2714,20 +3056,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.showcase.v1beta1.Test)) {
       return super.equals(obj);
     }
     com.google.showcase.v1beta1.Test other = (com.google.showcase.v1beta1.Test) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (expectationLevel_ != other.expectationLevel_) return false;
-    if (!getDescription()
-        .equals(other.getDescription())) return false;
-    if (!getBlueprintsList()
-        .equals(other.getBlueprintsList())) return false;
+    if (!getDescription().equals(other.getDescription())) return false;
+    if (!getBlueprintsList().equals(other.getBlueprintsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -2754,128 +3093,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.showcase.v1beta1.Test parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.showcase.v1beta1.Test parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.Test parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.showcase.v1beta1.Test parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.showcase.v1beta1.Test parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.Test parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.Test parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.Test parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.Test parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.Test parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   public static com.google.showcase.v1beta1.Test parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.showcase.v1beta1.Test parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.Test parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.Test parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.showcase.v1beta1.Test prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
-  /**
-   * Protobuf type {@code google.showcase.v1beta1.Test}
-   */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  /** Protobuf type {@code google.showcase.v1beta1.Test} */
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.Test)
       com.google.showcase.v1beta1.TestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.TestingOuterClass
+          .internal_static_google_showcase_v1beta1_Test_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_fieldAccessorTable
+      return com.google.showcase.v1beta1.TestingOuterClass
+          .internal_static_google_showcase_v1beta1_Test_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.Test.class, com.google.showcase.v1beta1.Test.Builder.class);
+              com.google.showcase.v1beta1.Test.class,
+              com.google.showcase.v1beta1.Test.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.Test.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2894,9 +3232,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_Test_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.TestingOuterClass
+          .internal_static_google_showcase_v1beta1_Test_descriptor;
     }
 
     @java.lang.Override
@@ -2917,7 +3255,9 @@ public com.google.showcase.v1beta1.Test build() {
     public com.google.showcase.v1beta1.Test buildPartial() {
       com.google.showcase.v1beta1.Test result = new com.google.showcase.v1beta1.Test(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -2951,38 +3291,39 @@ private void buildPartial0(com.google.showcase.v1beta1.Test result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.Test) {
-        return mergeFrom((com.google.showcase.v1beta1.Test)other);
+        return mergeFrom((com.google.showcase.v1beta1.Test) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3022,9 +3363,10 @@ public Builder mergeFrom(com.google.showcase.v1beta1.Test other) {
             blueprintsBuilder_ = null;
             blueprints_ = other.blueprints_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            blueprintsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getBlueprintsFieldBuilder() : null;
+            blueprintsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getBlueprintsFieldBuilder()
+                    : null;
           } else {
             blueprintsBuilder_.addAllMessages(other.blueprints_);
           }
@@ -3056,40 +3398,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              expectationLevel_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.showcase.v1beta1.Test.Blueprint m =
-                  input.readMessage(
-                      com.google.showcase.v1beta1.Test.Blueprint.parser(),
-                      extensionRegistry);
-              if (blueprintsBuilder_ == null) {
-                ensureBlueprintsIsMutable();
-                blueprints_.add(m);
-              } else {
-                blueprintsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                expectationLevel_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.showcase.v1beta1.Test.Blueprint m =
+                    input.readMessage(
+                        com.google.showcase.v1beta1.Test.Blueprint.parser(), extensionRegistry);
+                if (blueprintsBuilder_ == null) {
+                  ensureBlueprintsIsMutable();
+                  blueprints_.add(m);
+                } else {
+                  blueprintsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3099,10 +3445,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the test.
      * The tests/* portion of the names are hard-coded, and do not change
@@ -3110,13 +3459,13 @@ public Builder mergeFrom(
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3125,6 +3474,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the test.
      * The tests/* portion of the names are hard-coded, and do not change
@@ -3132,15 +3483,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -3148,6 +3498,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the test.
      * The tests/* portion of the names are hard-coded, and do not change
@@ -3155,18 +3507,22 @@ public java.lang.String getName() {
      * 
* * 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(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the test.
      * The tests/* portion of the names are hard-coded, and do not change
@@ -3174,6 +3530,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -3183,6 +3540,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the test.
      * The tests/* portion of the names are hard-coded, and do not change
@@ -3190,12 +3549,14 @@ public Builder clearName() {
      * 
* * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -3205,22 +3566,29 @@ public Builder setNameBytes( private int expectationLevel_ = 0; /** + * + * *
      * The expectation level for this test.
      * 
* * .google.showcase.v1beta1.Test.ExpectationLevel expectation_level = 2; + * * @return The enum numeric value on the wire for expectationLevel. */ - @java.lang.Override public int getExpectationLevelValue() { + @java.lang.Override + public int getExpectationLevelValue() { return expectationLevel_; } /** + * + * *
      * The expectation level for this test.
      * 
* * .google.showcase.v1beta1.Test.ExpectationLevel expectation_level = 2; + * * @param value The enum numeric value on the wire for expectationLevel to set. * @return This builder for chaining. */ @@ -3231,24 +3599,33 @@ public Builder setExpectationLevelValue(int value) { return this; } /** + * + * *
      * The expectation level for this test.
      * 
* * .google.showcase.v1beta1.Test.ExpectationLevel expectation_level = 2; + * * @return The expectationLevel. */ @java.lang.Override public com.google.showcase.v1beta1.Test.ExpectationLevel getExpectationLevel() { - com.google.showcase.v1beta1.Test.ExpectationLevel result = com.google.showcase.v1beta1.Test.ExpectationLevel.forNumber(expectationLevel_); - return result == null ? com.google.showcase.v1beta1.Test.ExpectationLevel.UNRECOGNIZED : result; + com.google.showcase.v1beta1.Test.ExpectationLevel result = + com.google.showcase.v1beta1.Test.ExpectationLevel.forNumber(expectationLevel_); + return result == null + ? com.google.showcase.v1beta1.Test.ExpectationLevel.UNRECOGNIZED + : result; } /** + * + * *
      * The expectation level for this test.
      * 
* * .google.showcase.v1beta1.Test.ExpectationLevel expectation_level = 2; + * * @param value The expectationLevel to set. * @return This builder for chaining. */ @@ -3262,11 +3639,14 @@ public Builder setExpectationLevel(com.google.showcase.v1beta1.Test.ExpectationL return this; } /** + * + * *
      * The expectation level for this test.
      * 
* * .google.showcase.v1beta1.Test.ExpectationLevel expectation_level = 2; + * * @return This builder for chaining. */ public Builder clearExpectationLevel() { @@ -3278,18 +3658,20 @@ public Builder clearExpectationLevel() { private java.lang.Object description_ = ""; /** + * + * *
      * A description of the test.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -3298,20 +3680,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A description of the test.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -3319,28 +3702,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A description of the test.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A description of the test.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -3350,17 +3740,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * A description of the test.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000004; @@ -3369,18 +3763,25 @@ public Builder setDescriptionBytes( } private java.util.List blueprints_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBlueprintsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - blueprints_ = new java.util.ArrayList(blueprints_); + blueprints_ = + new java.util.ArrayList(blueprints_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.showcase.v1beta1.Test.Blueprint, com.google.showcase.v1beta1.Test.Blueprint.Builder, com.google.showcase.v1beta1.Test.BlueprintOrBuilder> blueprintsBuilder_; + com.google.showcase.v1beta1.Test.Blueprint, + com.google.showcase.v1beta1.Test.Blueprint.Builder, + com.google.showcase.v1beta1.Test.BlueprintOrBuilder> + blueprintsBuilder_; /** + * + * *
      * The blueprints that will satisfy this test. There may be multiple blueprints
      * that can signal to the server that this test case is being exercised. Although
@@ -3398,6 +3799,8 @@ public java.util.List getBlueprintsL
       }
     }
     /**
+     *
+     *
      * 
      * The blueprints that will satisfy this test. There may be multiple blueprints
      * that can signal to the server that this test case is being exercised. Although
@@ -3415,6 +3818,8 @@ public int getBlueprintsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The blueprints that will satisfy this test. There may be multiple blueprints
      * that can signal to the server that this test case is being exercised. Although
@@ -3432,6 +3837,8 @@ public com.google.showcase.v1beta1.Test.Blueprint getBlueprints(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The blueprints that will satisfy this test. There may be multiple blueprints
      * that can signal to the server that this test case is being exercised. Although
@@ -3441,8 +3848,7 @@ public com.google.showcase.v1beta1.Test.Blueprint getBlueprints(int index) {
      *
      * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4;
      */
-    public Builder setBlueprints(
-        int index, com.google.showcase.v1beta1.Test.Blueprint value) {
+    public Builder setBlueprints(int index, com.google.showcase.v1beta1.Test.Blueprint value) {
       if (blueprintsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3456,6 +3862,8 @@ public Builder setBlueprints(
       return this;
     }
     /**
+     *
+     *
      * 
      * The blueprints that will satisfy this test. There may be multiple blueprints
      * that can signal to the server that this test case is being exercised. Although
@@ -3477,6 +3885,8 @@ public Builder setBlueprints(
       return this;
     }
     /**
+     *
+     *
      * 
      * The blueprints that will satisfy this test. There may be multiple blueprints
      * that can signal to the server that this test case is being exercised. Although
@@ -3500,6 +3910,8 @@ public Builder addBlueprints(com.google.showcase.v1beta1.Test.Blueprint value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The blueprints that will satisfy this test. There may be multiple blueprints
      * that can signal to the server that this test case is being exercised. Although
@@ -3509,8 +3921,7 @@ public Builder addBlueprints(com.google.showcase.v1beta1.Test.Blueprint value) {
      *
      * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4;
      */
-    public Builder addBlueprints(
-        int index, com.google.showcase.v1beta1.Test.Blueprint value) {
+    public Builder addBlueprints(int index, com.google.showcase.v1beta1.Test.Blueprint value) {
       if (blueprintsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3524,6 +3935,8 @@ public Builder addBlueprints(
       return this;
     }
     /**
+     *
+     *
      * 
      * The blueprints that will satisfy this test. There may be multiple blueprints
      * that can signal to the server that this test case is being exercised. Although
@@ -3545,6 +3958,8 @@ public Builder addBlueprints(
       return this;
     }
     /**
+     *
+     *
      * 
      * The blueprints that will satisfy this test. There may be multiple blueprints
      * that can signal to the server that this test case is being exercised. Although
@@ -3566,6 +3981,8 @@ public Builder addBlueprints(
       return this;
     }
     /**
+     *
+     *
      * 
      * The blueprints that will satisfy this test. There may be multiple blueprints
      * that can signal to the server that this test case is being exercised. Although
@@ -3579,8 +3996,7 @@ public Builder addAllBlueprints(
         java.lang.Iterable values) {
       if (blueprintsBuilder_ == null) {
         ensureBlueprintsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, blueprints_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blueprints_);
         onChanged();
       } else {
         blueprintsBuilder_.addAllMessages(values);
@@ -3588,6 +4004,8 @@ public Builder addAllBlueprints(
       return this;
     }
     /**
+     *
+     *
      * 
      * The blueprints that will satisfy this test. There may be multiple blueprints
      * that can signal to the server that this test case is being exercised. Although
@@ -3608,6 +4026,8 @@ public Builder clearBlueprints() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The blueprints that will satisfy this test. There may be multiple blueprints
      * that can signal to the server that this test case is being exercised. Although
@@ -3628,6 +4048,8 @@ public Builder removeBlueprints(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The blueprints that will satisfy this test. There may be multiple blueprints
      * that can signal to the server that this test case is being exercised. Although
@@ -3637,11 +4059,12 @@ public Builder removeBlueprints(int index) {
      *
      * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4;
      */
-    public com.google.showcase.v1beta1.Test.Blueprint.Builder getBlueprintsBuilder(
-        int index) {
+    public com.google.showcase.v1beta1.Test.Blueprint.Builder getBlueprintsBuilder(int index) {
       return getBlueprintsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The blueprints that will satisfy this test. There may be multiple blueprints
      * that can signal to the server that this test case is being exercised. Although
@@ -3651,14 +4074,16 @@ public com.google.showcase.v1beta1.Test.Blueprint.Builder getBlueprintsBuilder(
      *
      * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4;
      */
-    public com.google.showcase.v1beta1.Test.BlueprintOrBuilder getBlueprintsOrBuilder(
-        int index) {
+    public com.google.showcase.v1beta1.Test.BlueprintOrBuilder getBlueprintsOrBuilder(int index) {
       if (blueprintsBuilder_ == null) {
-        return blueprints_.get(index);  } else {
+        return blueprints_.get(index);
+      } else {
         return blueprintsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The blueprints that will satisfy this test. There may be multiple blueprints
      * that can signal to the server that this test case is being exercised. Although
@@ -3668,8 +4093,8 @@ public com.google.showcase.v1beta1.Test.BlueprintOrBuilder getBlueprintsOrBuilde
      *
      * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4;
      */
-    public java.util.List 
-         getBlueprintsOrBuilderList() {
+    public java.util.List
+        getBlueprintsOrBuilderList() {
       if (blueprintsBuilder_ != null) {
         return blueprintsBuilder_.getMessageOrBuilderList();
       } else {
@@ -3677,6 +4102,8 @@ public com.google.showcase.v1beta1.Test.BlueprintOrBuilder getBlueprintsOrBuilde
       }
     }
     /**
+     *
+     *
      * 
      * The blueprints that will satisfy this test. There may be multiple blueprints
      * that can signal to the server that this test case is being exercised. Although
@@ -3687,10 +4114,12 @@ public com.google.showcase.v1beta1.Test.BlueprintOrBuilder getBlueprintsOrBuilde
      * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4;
      */
     public com.google.showcase.v1beta1.Test.Blueprint.Builder addBlueprintsBuilder() {
-      return getBlueprintsFieldBuilder().addBuilder(
-          com.google.showcase.v1beta1.Test.Blueprint.getDefaultInstance());
+      return getBlueprintsFieldBuilder()
+          .addBuilder(com.google.showcase.v1beta1.Test.Blueprint.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The blueprints that will satisfy this test. There may be multiple blueprints
      * that can signal to the server that this test case is being exercised. Although
@@ -3700,12 +4129,13 @@ public com.google.showcase.v1beta1.Test.Blueprint.Builder addBlueprintsBuilder()
      *
      * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4;
      */
-    public com.google.showcase.v1beta1.Test.Blueprint.Builder addBlueprintsBuilder(
-        int index) {
-      return getBlueprintsFieldBuilder().addBuilder(
-          index, com.google.showcase.v1beta1.Test.Blueprint.getDefaultInstance());
+    public com.google.showcase.v1beta1.Test.Blueprint.Builder addBlueprintsBuilder(int index) {
+      return getBlueprintsFieldBuilder()
+          .addBuilder(index, com.google.showcase.v1beta1.Test.Blueprint.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The blueprints that will satisfy this test. There may be multiple blueprints
      * that can signal to the server that this test case is being exercised. Although
@@ -3715,27 +4145,30 @@ public com.google.showcase.v1beta1.Test.Blueprint.Builder addBlueprintsBuilder(
      *
      * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4;
      */
-    public java.util.List 
-         getBlueprintsBuilderList() {
+    public java.util.List
+        getBlueprintsBuilderList() {
       return getBlueprintsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.showcase.v1beta1.Test.Blueprint, com.google.showcase.v1beta1.Test.Blueprint.Builder, com.google.showcase.v1beta1.Test.BlueprintOrBuilder> 
+            com.google.showcase.v1beta1.Test.Blueprint,
+            com.google.showcase.v1beta1.Test.Blueprint.Builder,
+            com.google.showcase.v1beta1.Test.BlueprintOrBuilder>
         getBlueprintsFieldBuilder() {
       if (blueprintsBuilder_ == null) {
-        blueprintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.showcase.v1beta1.Test.Blueprint, com.google.showcase.v1beta1.Test.Blueprint.Builder, com.google.showcase.v1beta1.Test.BlueprintOrBuilder>(
-                blueprints_,
-                ((bitField0_ & 0x00000008) != 0),
-                getParentForChildren(),
-                isClean());
+        blueprintsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.showcase.v1beta1.Test.Blueprint,
+                com.google.showcase.v1beta1.Test.Blueprint.Builder,
+                com.google.showcase.v1beta1.Test.BlueprintOrBuilder>(
+                blueprints_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
         blueprints_ = null;
       }
       return blueprintsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -3745,12 +4178,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.Test)
   }
 
   // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.Test)
   private static final com.google.showcase.v1beta1.Test DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.showcase.v1beta1.Test();
   }
@@ -3759,27 +4192,27 @@ public static com.google.showcase.v1beta1.Test getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Test parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Test parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3794,6 +4227,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.showcase.v1beta1.Test getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java
similarity index 100%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestOrBuilder.java
similarity index 80%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestOrBuilder.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestOrBuilder.java
index b1437afb5c..8cc5fb208d 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestOrBuilder.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestOrBuilder.java
@@ -1,14 +1,32 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/testing.proto
 
 // Protobuf Java Version: 3.25.5
 package com.google.showcase.v1beta1;
 
-public interface TestOrBuilder extends
+public interface TestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.Test)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The name of the test.
    * The tests/* portion of the names are hard-coded, and do not change
@@ -16,10 +34,13 @@ public interface TestOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the test.
    * The tests/* portion of the names are hard-coded, and do not change
@@ -27,51 +48,64 @@ public interface TestOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The expectation level for this test.
    * 
* * .google.showcase.v1beta1.Test.ExpectationLevel expectation_level = 2; + * * @return The enum numeric value on the wire for expectationLevel. */ int getExpectationLevelValue(); /** + * + * *
    * The expectation level for this test.
    * 
* * .google.showcase.v1beta1.Test.ExpectationLevel expectation_level = 2; + * * @return The expectationLevel. */ com.google.showcase.v1beta1.Test.ExpectationLevel getExpectationLevel(); /** + * + * *
    * A description of the test.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A description of the test.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * The blueprints that will satisfy this test. There may be multiple blueprints
    * that can signal to the server that this test case is being exercised. Although
@@ -81,9 +115,10 @@ public interface TestOrBuilder extends
    *
    * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4;
    */
-  java.util.List 
-      getBlueprintsList();
+  java.util.List getBlueprintsList();
   /**
+   *
+   *
    * 
    * The blueprints that will satisfy this test. There may be multiple blueprints
    * that can signal to the server that this test case is being exercised. Although
@@ -95,6 +130,8 @@ public interface TestOrBuilder extends
    */
   com.google.showcase.v1beta1.Test.Blueprint getBlueprints(int index);
   /**
+   *
+   *
    * 
    * The blueprints that will satisfy this test. There may be multiple blueprints
    * that can signal to the server that this test case is being exercised. Although
@@ -106,6 +143,8 @@ public interface TestOrBuilder extends
    */
   int getBlueprintsCount();
   /**
+   *
+   *
    * 
    * The blueprints that will satisfy this test. There may be multiple blueprints
    * that can signal to the server that this test case is being exercised. Although
@@ -115,9 +154,11 @@ public interface TestOrBuilder extends
    *
    * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4;
    */
-  java.util.List 
+  java.util.List
       getBlueprintsOrBuilderList();
   /**
+   *
+   *
    * 
    * The blueprints that will satisfy this test. There may be multiple blueprints
    * that can signal to the server that this test case is being exercised. Although
@@ -127,6 +168,5 @@ public interface TestOrBuilder extends
    *
    * repeated .google.showcase.v1beta1.Test.Blueprint blueprints = 4;
    */
-  com.google.showcase.v1beta1.Test.BlueprintOrBuilder getBlueprintsOrBuilder(
-      int index);
+  com.google.showcase.v1beta1.Test.BlueprintOrBuilder getBlueprintsOrBuilder(int index);
 }
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRun.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRun.java
similarity index 69%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRun.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRun.java
index efc0d8f7a6..5a1d9e168d 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRun.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRun.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/testing.proto
 
@@ -5,50 +20,57 @@
 package com.google.showcase.v1beta1;
 
 /**
+ *
+ *
  * 
  * A TestRun is the result of running a Test.
  * 
* * Protobuf type {@code google.showcase.v1beta1.TestRun} */ -public final class TestRun extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TestRun extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.TestRun) TestRunOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TestRun.newBuilder() to construct. private TestRun(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TestRun() { test_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TestRun(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_TestRun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_TestRun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_TestRun_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_TestRun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.TestRun.class, com.google.showcase.v1beta1.TestRun.Builder.class); + com.google.showcase.v1beta1.TestRun.class, + com.google.showcase.v1beta1.TestRun.Builder.class); } private int bitField0_; public static final int TEST_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object test_ = ""; /** + * + * *
    * The name of the test.
    * The tests/* portion of the names are hard-coded, and do not change
@@ -56,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * string test = 1 [(.google.api.resource_reference) = { ... } + * * @return The test. */ @java.lang.Override @@ -64,14 +87,15 @@ public java.lang.String getTest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); test_ = s; return s; } } /** + * + * *
    * The name of the test.
    * The tests/* portion of the names are hard-coded, and do not change
@@ -79,16 +103,15 @@ public java.lang.String getTest() {
    * 
* * string test = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for test. */ @java.lang.Override - public com.google.protobuf.ByteString - getTestBytes() { + public com.google.protobuf.ByteString getTestBytes() { java.lang.Object ref = test_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); test_ = b; return b; } else { @@ -99,11 +122,14 @@ public java.lang.String getTest() { public static final int ISSUE_FIELD_NUMBER = 2; private com.google.showcase.v1beta1.Issue issue_; /** + * + * *
    * An issue found with the test run. If empty, this test run was successful.
    * 
* * .google.showcase.v1beta1.Issue issue = 2; + * * @return Whether the issue field is set. */ @java.lang.Override @@ -111,11 +137,14 @@ public boolean hasIssue() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * An issue found with the test run. If empty, this test run was successful.
    * 
* * .google.showcase.v1beta1.Issue issue = 2; + * * @return The issue. */ @java.lang.Override @@ -123,6 +152,8 @@ public com.google.showcase.v1beta1.Issue getIssue() { return issue_ == null ? com.google.showcase.v1beta1.Issue.getDefaultInstance() : issue_; } /** + * + * *
    * An issue found with the test run. If empty, this test run was successful.
    * 
@@ -135,6 +166,7 @@ public com.google.showcase.v1beta1.IssueOrBuilder getIssueOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,8 +178,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(test_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, test_); } @@ -167,8 +198,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, test_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getIssue()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIssue()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -178,19 +208,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.TestRun)) { return super.equals(obj); } com.google.showcase.v1beta1.TestRun other = (com.google.showcase.v1beta1.TestRun) obj; - if (!getTest() - .equals(other.getTest())) return false; + if (!getTest().equals(other.getTest())) return false; if (hasIssue() != other.hasIssue()) return false; if (hasIssue()) { - if (!getIssue() - .equals(other.getIssue())) return false; + if (!getIssue().equals(other.getIssue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -214,120 +242,126 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.TestRun parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.TestRun parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.TestRun parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.TestRun parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.showcase.v1beta1.TestRun parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.TestRun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.TestRun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.TestRun parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.TestRun parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.TestRun parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.showcase.v1beta1.TestRun parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.TestRun parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.TestRun parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.TestRun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.TestRun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A TestRun is the result of running a Test.
    * 
* * Protobuf type {@code google.showcase.v1beta1.TestRun} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.TestRun) com.google.showcase.v1beta1.TestRunOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_TestRun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_TestRun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_TestRun_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_TestRun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.TestRun.class, com.google.showcase.v1beta1.TestRun.Builder.class); + com.google.showcase.v1beta1.TestRun.class, + com.google.showcase.v1beta1.TestRun.Builder.class); } // Construct using com.google.showcase.v1beta1.TestRun.newBuilder() @@ -335,17 +369,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getIssueFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -360,9 +394,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_TestRun_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_TestRun_descriptor; } @java.lang.Override @@ -382,7 +416,9 @@ public com.google.showcase.v1beta1.TestRun build() { @java.lang.Override public com.google.showcase.v1beta1.TestRun buildPartial() { com.google.showcase.v1beta1.TestRun result = new com.google.showcase.v1beta1.TestRun(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -394,9 +430,7 @@ private void buildPartial0(com.google.showcase.v1beta1.TestRun result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.issue_ = issueBuilder_ == null - ? issue_ - : issueBuilder_.build(); + result.issue_ = issueBuilder_ == null ? issue_ : issueBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -406,38 +440,39 @@ private void buildPartial0(com.google.showcase.v1beta1.TestRun result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.TestRun) { - return mergeFrom((com.google.showcase.v1beta1.TestRun)other); + return mergeFrom((com.google.showcase.v1beta1.TestRun) other); } else { super.mergeFrom(other); return this; @@ -480,24 +515,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - test_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getIssueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + test_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getIssueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -507,10 +543,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object test_ = ""; /** + * + * *
      * The name of the test.
      * The tests/* portion of the names are hard-coded, and do not change
@@ -518,13 +557,13 @@ public Builder mergeFrom(
      * 
* * string test = 1 [(.google.api.resource_reference) = { ... } + * * @return The test. */ public java.lang.String getTest() { java.lang.Object ref = test_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); test_ = s; return s; @@ -533,6 +572,8 @@ public java.lang.String getTest() { } } /** + * + * *
      * The name of the test.
      * The tests/* portion of the names are hard-coded, and do not change
@@ -540,15 +581,14 @@ public java.lang.String getTest() {
      * 
* * string test = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for test. */ - public com.google.protobuf.ByteString - getTestBytes() { + public com.google.protobuf.ByteString getTestBytes() { java.lang.Object ref = test_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); test_ = b; return b; } else { @@ -556,6 +596,8 @@ public java.lang.String getTest() { } } /** + * + * *
      * The name of the test.
      * The tests/* portion of the names are hard-coded, and do not change
@@ -563,18 +605,22 @@ public java.lang.String getTest() {
      * 
* * string test = 1 [(.google.api.resource_reference) = { ... } + * * @param value The test to set. * @return This builder for chaining. */ - public Builder setTest( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTest(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } test_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the test.
      * The tests/* portion of the names are hard-coded, and do not change
@@ -582,6 +628,7 @@ public Builder setTest(
      * 
* * string test = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearTest() { @@ -591,6 +638,8 @@ public Builder clearTest() { return this; } /** + * + * *
      * The name of the test.
      * The tests/* portion of the names are hard-coded, and do not change
@@ -598,12 +647,14 @@ public Builder clearTest() {
      * 
* * string test = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for test to set. * @return This builder for chaining. */ - public Builder setTestBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTestBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); test_ = value; bitField0_ |= 0x00000001; @@ -613,24 +664,33 @@ public Builder setTestBytes( private com.google.showcase.v1beta1.Issue issue_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Issue, com.google.showcase.v1beta1.Issue.Builder, com.google.showcase.v1beta1.IssueOrBuilder> issueBuilder_; + com.google.showcase.v1beta1.Issue, + com.google.showcase.v1beta1.Issue.Builder, + com.google.showcase.v1beta1.IssueOrBuilder> + issueBuilder_; /** + * + * *
      * An issue found with the test run. If empty, this test run was successful.
      * 
* * .google.showcase.v1beta1.Issue issue = 2; + * * @return Whether the issue field is set. */ public boolean hasIssue() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * An issue found with the test run. If empty, this test run was successful.
      * 
* * .google.showcase.v1beta1.Issue issue = 2; + * * @return The issue. */ public com.google.showcase.v1beta1.Issue getIssue() { @@ -641,6 +701,8 @@ public com.google.showcase.v1beta1.Issue getIssue() { } } /** + * + * *
      * An issue found with the test run. If empty, this test run was successful.
      * 
@@ -661,14 +723,15 @@ public Builder setIssue(com.google.showcase.v1beta1.Issue value) { return this; } /** + * + * *
      * An issue found with the test run. If empty, this test run was successful.
      * 
* * .google.showcase.v1beta1.Issue issue = 2; */ - public Builder setIssue( - com.google.showcase.v1beta1.Issue.Builder builderForValue) { + public Builder setIssue(com.google.showcase.v1beta1.Issue.Builder builderForValue) { if (issueBuilder_ == null) { issue_ = builderForValue.build(); } else { @@ -679,6 +742,8 @@ public Builder setIssue( return this; } /** + * + * *
      * An issue found with the test run. If empty, this test run was successful.
      * 
@@ -687,9 +752,9 @@ public Builder setIssue( */ public Builder mergeIssue(com.google.showcase.v1beta1.Issue value) { if (issueBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - issue_ != null && - issue_ != com.google.showcase.v1beta1.Issue.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && issue_ != null + && issue_ != com.google.showcase.v1beta1.Issue.getDefaultInstance()) { getIssueBuilder().mergeFrom(value); } else { issue_ = value; @@ -704,6 +769,8 @@ public Builder mergeIssue(com.google.showcase.v1beta1.Issue value) { return this; } /** + * + * *
      * An issue found with the test run. If empty, this test run was successful.
      * 
@@ -721,6 +788,8 @@ public Builder clearIssue() { return this; } /** + * + * *
      * An issue found with the test run. If empty, this test run was successful.
      * 
@@ -733,6 +802,8 @@ public com.google.showcase.v1beta1.Issue.Builder getIssueBuilder() { return getIssueFieldBuilder().getBuilder(); } /** + * + * *
      * An issue found with the test run. If empty, this test run was successful.
      * 
@@ -743,11 +814,12 @@ public com.google.showcase.v1beta1.IssueOrBuilder getIssueOrBuilder() { if (issueBuilder_ != null) { return issueBuilder_.getMessageOrBuilder(); } else { - return issue_ == null ? - com.google.showcase.v1beta1.Issue.getDefaultInstance() : issue_; + return issue_ == null ? com.google.showcase.v1beta1.Issue.getDefaultInstance() : issue_; } } /** + * + * *
      * An issue found with the test run. If empty, this test run was successful.
      * 
@@ -755,21 +827,24 @@ public com.google.showcase.v1beta1.IssueOrBuilder getIssueOrBuilder() { * .google.showcase.v1beta1.Issue issue = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Issue, com.google.showcase.v1beta1.Issue.Builder, com.google.showcase.v1beta1.IssueOrBuilder> + com.google.showcase.v1beta1.Issue, + com.google.showcase.v1beta1.Issue.Builder, + com.google.showcase.v1beta1.IssueOrBuilder> getIssueFieldBuilder() { if (issueBuilder_ == null) { - issueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Issue, com.google.showcase.v1beta1.Issue.Builder, com.google.showcase.v1beta1.IssueOrBuilder>( - getIssue(), - getParentForChildren(), - isClean()); + issueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Issue, + com.google.showcase.v1beta1.Issue.Builder, + com.google.showcase.v1beta1.IssueOrBuilder>( + getIssue(), getParentForChildren(), isClean()); issue_ = null; } return issueBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -779,12 +854,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.TestRun) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.TestRun) private static final com.google.showcase.v1beta1.TestRun DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.TestRun(); } @@ -793,27 +868,27 @@ public static com.google.showcase.v1beta1.TestRun getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TestRun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TestRun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -828,6 +903,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.TestRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRunOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRunOrBuilder.java similarity index 68% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRunOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRunOrBuilder.java index 795b644076..a26900b104 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRunOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestRunOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface TestRunOrBuilder extends +public interface TestRunOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.TestRun) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the test.
    * The tests/* portion of the names are hard-coded, and do not change
@@ -16,10 +34,13 @@ public interface TestRunOrBuilder extends
    * 
* * string test = 1 [(.google.api.resource_reference) = { ... } + * * @return The test. */ java.lang.String getTest(); /** + * + * *
    * The name of the test.
    * The tests/* portion of the names are hard-coded, and do not change
@@ -27,30 +48,38 @@ public interface TestRunOrBuilder extends
    * 
* * string test = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for test. */ - com.google.protobuf.ByteString - getTestBytes(); + com.google.protobuf.ByteString getTestBytes(); /** + * + * *
    * An issue found with the test run. If empty, this test run was successful.
    * 
* * .google.showcase.v1beta1.Issue issue = 2; + * * @return Whether the issue field is set. */ boolean hasIssue(); /** + * + * *
    * An issue found with the test run. If empty, this test run was successful.
    * 
* * .google.showcase.v1beta1.Issue issue = 2; + * * @return The issue. */ com.google.showcase.v1beta1.Issue getIssue(); /** + * + * *
    * An issue found with the test run. If empty, this test run was successful.
    * 
diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestingOuterClass.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestingOuterClass.java new file mode 100644 index 0000000000..d9ec31c18a --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestingOuterClass.java @@ -0,0 +1,378 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/testing.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public final class TestingOuterClass { + private TestingOuterClass() {} + + 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_showcase_v1beta1_Session_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_Session_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_CreateSessionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_CreateSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_GetSessionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_GetSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListSessionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListSessionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListSessionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListSessionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_DeleteSessionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_DeleteSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ReportSessionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ReportSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ReportSessionResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ReportSessionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_Test_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_Test_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_Test_Blueprint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_Test_Blueprint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_Issue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_Issue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListTestsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListTestsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ListTestsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ListTestsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_TestRun_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_TestRun_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_DeleteTestRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_DeleteTestRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_VerifyTestRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_VerifyTestRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_VerifyTestResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_VerifyTestResponse_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,schema/google/showcase/v1beta1/testing" + + ".proto\022\027google.showcase.v1beta1\032\034google/" + + "api/annotations.proto\032\027google/api/client" + + ".proto\032\031google/api/resource.proto\032\033googl" + + "e/protobuf/empty.proto\"\311\001\n\007Session\022\014\n\004na" + + "me\030\001 \001(\t\0229\n\007version\030\002 \001(\0162(.google.showc" + + "ase.v1beta1.Session.Version\";\n\007Version\022\027" + + "\n\023VERSION_UNSPECIFIED\020\000\022\r\n\tV1_LATEST\020\001\022\010" + + "\n\004V1_0\020\002:8\352A5\n\037showcase.googleapis.com/S" + + "ession\022\022sessions/{session}\"I\n\024CreateSess" + + "ionRequest\0221\n\007session\030\001 \001(\0132 .google.sho" + + "wcase.v1beta1.Session\"G\n\021GetSessionReque" + + "st\0222\n\004name\030\001 \001(\tB$\372A!\n\037showcase.googleap" + + "is.com/Session\"<\n\023ListSessionsRequest\022\021\n" + + "\tpage_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"c\n\024" + + "ListSessionsResponse\0222\n\010sessions\030\001 \003(\0132 " + + ".google.showcase.v1beta1.Session\022\027\n\017next" + + "_page_token\030\002 \001(\t\"J\n\024DeleteSessionReques" + + "t\0222\n\004name\030\001 \001(\tB$\372A!\n\037showcase.googleapi" + + "s.com/Session\"J\n\024ReportSessionRequest\0222\n" + + "\004name\030\001 \001(\tB$\372A!\n\037showcase.googleapis.co" + + "m/Session\"\335\001\n\025ReportSessionResponse\022E\n\006r" + + "esult\030\001 \001(\01625.google.showcase.v1beta1.Re" + + "portSessionResponse.Result\0223\n\ttest_runs\030" + + "\002 \003(\0132 .google.showcase.v1beta1.TestRun\"" + + "H\n\006Result\022\026\n\022RESULT_UNSPECIFIED\020\000\022\n\n\006PAS" + + "SED\020\001\022\n\n\006FAILED\020\002\022\016\n\nINCOMPLETE\020\003\"\272\005\n\004Te" + + "st\022\014\n\004name\030\001 \001(\t\022I\n\021expectation_level\030\002 " + + "\001(\0162..google.showcase.v1beta1.Test.Expec" + + "tationLevel\022\023\n\013description\030\003 \001(\t\022;\n\nblue" + + "prints\030\004 \003(\0132\'.google.showcase.v1beta1.T" + + "est.Blueprint\032\336\002\n\tBlueprint\022\014\n\004name\030\001 \001(" + + "\t\022\023\n\013description\030\002 \001(\t\022C\n\007request\030\003 \001(\0132" + + "2.google.showcase.v1beta1.Test.Blueprint" + + ".Invocation\022O\n\023additional_requests\030\004 \003(\013" + + "22.google.showcase.v1beta1.Test.Blueprin" + + "t.Invocation\0328\n\nInvocation\022\016\n\006method\030\001 \001" + + "(\t\022\032\n\022serialized_request\030\002 \001(\014:^\352A[\n!sho" + + "wcase.googleapis.com/Blueprint\0226sessions" + + "/{session}/tests/{test}/blueprints/{blue" + + "print}\"b\n\020ExpectationLevel\022!\n\035EXPECTATIO" + + "N_LEVEL_UNSPECIFIED\020\000\022\014\n\010REQUIRED\020\001\022\017\n\013R" + + "ECOMMENDED\020\002\022\014\n\010OPTIONAL\020\003:B\352A?\n\034showcas" + + "e.googleapis.com/Test\022\037sessions/{session" + + "}/tests/{test}\"\234\002\n\005Issue\0221\n\004type\030\001 \001(\0162#" + + ".google.showcase.v1beta1.Issue.Type\0229\n\010s" + + "everity\030\002 \001(\0162\'.google.showcase.v1beta1." + + "Issue.Severity\022\023\n\013description\030\003 \001(\t\"R\n\004T" + + "ype\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007SKIPPED\020\001\022\013" + + "\n\007PENDING\020\002\022\032\n\026INCORRECT_CONFIRMATION\020\003\"" + + "<\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\t\n" + + "\005ERROR\020\001\022\013\n\007WARNING\020\002\"o\n\020ListTestsReques" + + "t\0224\n\006parent\030\001 \001(\tB$\372A!\n\037showcase.googlea" + + "pis.com/Session\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\"Z\n\021ListTestsResponse\022,\n\005t" + + "ests\030\001 \003(\0132\035.google.showcase.v1beta1.Tes" + + "t\022\027\n\017next_page_token\030\002 \001(\t\"i\n\007TestRun\022/\n" + + "\004test\030\001 \001(\tB!\372A\036\n\034showcase.googleapis.co" + + "m/Test\022-\n\005issue\030\002 \001(\0132\036.google.showcase." + + "v1beta1.Issue\"D\n\021DeleteTestRequest\022/\n\004na" + + "me\030\001 \001(\tB!\372A\036\n\034showcase.googleapis.com/T" + + "est\"e\n\021VerifyTestRequest\022/\n\004name\030\001 \001(\tB!" + + "\372A\036\n\034showcase.googleapis.com/Test\022\016\n\006ans" + + "wer\030\002 \001(\014\022\017\n\007answers\030\003 \003(\014\"C\n\022VerifyTest" + + "Response\022-\n\005issue\030\001 \001(\0132\036.google.showcas" + + "e.v1beta1.Issue2\355\010\n\007Testing\022\204\001\n\rCreateSe" + + "ssion\022-.google.showcase.v1beta1.CreateSe" + + "ssionRequest\032 .google.showcase.v1beta1.S" + + "ession\"\"\202\323\344\223\002\034\"\021/v1beta1/sessions:\007sessi" + + "on\022~\n\nGetSession\022*.google.showcase.v1bet" + + "a1.GetSessionRequest\032 .google.showcase.v" + + "1beta1.Session\"\"\202\323\344\223\002\034\022\032/v1beta1/{name=s" + + "essions/*}\022\206\001\n\014ListSessions\022,.google.sho" + + "wcase.v1beta1.ListSessionsRequest\032-.goog" + + "le.showcase.v1beta1.ListSessionsResponse" + + "\"\031\202\323\344\223\002\023\022\021/v1beta1/sessions\022z\n\rDeleteSes" + + "sion\022-.google.showcase.v1beta1.DeleteSes" + + "sionRequest\032\026.google.protobuf.Empty\"\"\202\323\344" + + "\223\002\034*\032/v1beta1/{name=sessions/*}\022\231\001\n\rRepo" + + "rtSession\022-.google.showcase.v1beta1.Repo" + + "rtSessionRequest\032..google.showcase.v1bet" + + "a1.ReportSessionResponse\")\202\323\344\223\002#\"!/v1bet" + + "a1/{name=sessions/*}:report\022\216\001\n\tListTest" + + "s\022).google.showcase.v1beta1.ListTestsReq" + + "uest\032*.google.showcase.v1beta1.ListTests" + + "Response\"*\202\323\344\223\002$\022\"/v1beta1/{parent=sessi" + + "ons/*}/tests\022|\n\nDeleteTest\022*.google.show" + + "case.v1beta1.DeleteTestRequest\032\026.google." + + "protobuf.Empty\"*\202\323\344\223\002$*\"/v1beta1/{name=s" + + "essions/*/tests/*}\022\227\001\n\nVerifyTest\022*.goog" + + "le.showcase.v1beta1.VerifyTestRequest\032+." + + "google.showcase.v1beta1.VerifyTestRespon" + + "se\"0\202\323\344\223\002*\"(/v1beta1/{name=sessions/*/te" + + "sts/*}:check\032\021\312A\016localhost:7469Bq\n\033com.g" + + "oogle.showcase.v1beta1P\001Z4github.com/goo" + + "gleapis/gapic-showcase/server/genproto\352\002" + + "\031Google::Showcase::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + internal_static_google_showcase_v1beta1_Session_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_showcase_v1beta1_Session_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_Session_descriptor, + new java.lang.String[] { + "Name", "Version", + }); + internal_static_google_showcase_v1beta1_CreateSessionRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_showcase_v1beta1_CreateSessionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_CreateSessionRequest_descriptor, + new java.lang.String[] { + "Session", + }); + internal_static_google_showcase_v1beta1_GetSessionRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_showcase_v1beta1_GetSessionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_GetSessionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_showcase_v1beta1_ListSessionsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_showcase_v1beta1_ListSessionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListSessionsRequest_descriptor, + new java.lang.String[] { + "PageSize", "PageToken", + }); + internal_static_google_showcase_v1beta1_ListSessionsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_showcase_v1beta1_ListSessionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListSessionsResponse_descriptor, + new java.lang.String[] { + "Sessions", "NextPageToken", + }); + internal_static_google_showcase_v1beta1_DeleteSessionRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_showcase_v1beta1_DeleteSessionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_DeleteSessionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_showcase_v1beta1_ReportSessionRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_showcase_v1beta1_ReportSessionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ReportSessionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_showcase_v1beta1_ReportSessionResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_showcase_v1beta1_ReportSessionResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ReportSessionResponse_descriptor, + new java.lang.String[] { + "Result", "TestRuns", + }); + internal_static_google_showcase_v1beta1_Test_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_showcase_v1beta1_Test_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_Test_descriptor, + new java.lang.String[] { + "Name", "ExpectationLevel", "Description", "Blueprints", + }); + internal_static_google_showcase_v1beta1_Test_Blueprint_descriptor = + internal_static_google_showcase_v1beta1_Test_descriptor.getNestedTypes().get(0); + internal_static_google_showcase_v1beta1_Test_Blueprint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_Test_Blueprint_descriptor, + new java.lang.String[] { + "Name", "Description", "Request", "AdditionalRequests", + }); + internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_descriptor = + internal_static_google_showcase_v1beta1_Test_Blueprint_descriptor.getNestedTypes().get(0); + internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_Test_Blueprint_Invocation_descriptor, + new java.lang.String[] { + "Method", "SerializedRequest", + }); + internal_static_google_showcase_v1beta1_Issue_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_showcase_v1beta1_Issue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_Issue_descriptor, + new java.lang.String[] { + "Type", "Severity", "Description", + }); + internal_static_google_showcase_v1beta1_ListTestsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_showcase_v1beta1_ListTestsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListTestsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_showcase_v1beta1_ListTestsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_showcase_v1beta1_ListTestsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ListTestsResponse_descriptor, + new java.lang.String[] { + "Tests", "NextPageToken", + }); + internal_static_google_showcase_v1beta1_TestRun_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_showcase_v1beta1_TestRun_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_TestRun_descriptor, + new java.lang.String[] { + "Test", "Issue", + }); + internal_static_google_showcase_v1beta1_DeleteTestRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_showcase_v1beta1_DeleteTestRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_DeleteTestRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_showcase_v1beta1_VerifyTestRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_showcase_v1beta1_VerifyTestRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_VerifyTestRequest_descriptor, + new java.lang.String[] { + "Name", "Answer", "Answers", + }); + internal_static_google_showcase_v1beta1_VerifyTestResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_showcase_v1beta1_VerifyTestResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_VerifyTestResponse_descriptor, + new java.lang.String[] { + "Issue", + }); + 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.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequest.java similarity index 70% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequest.java index 2876f51c58..ad0c9b935b 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/messaging.proto @@ -5,6 +20,8 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request message for the google.showcase.v1beta1.Messaging\UpdateBlurb
  * method.
@@ -12,47 +29,51 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.UpdateBlurbRequest}
  */
-public final class UpdateBlurbRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateBlurbRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.UpdateBlurbRequest)
     UpdateBlurbRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateBlurbRequest.newBuilder() to construct.
   private UpdateBlurbRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private UpdateBlurbRequest() {
-  }
+
+  private UpdateBlurbRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateBlurbRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateBlurbRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_UpdateBlurbRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.UpdateBlurbRequest.class, com.google.showcase.v1beta1.UpdateBlurbRequest.Builder.class);
+            com.google.showcase.v1beta1.UpdateBlurbRequest.class,
+            com.google.showcase.v1beta1.UpdateBlurbRequest.Builder.class);
   }
 
   private int bitField0_;
   public static final int BLURB_FIELD_NUMBER = 1;
   private com.google.showcase.v1beta1.Blurb blurb_;
   /**
+   *
+   *
    * 
    * The blurb to update.
    * 
* * .google.showcase.v1beta1.Blurb blurb = 1; + * * @return Whether the blurb field is set. */ @java.lang.Override @@ -60,11 +81,14 @@ public boolean hasBlurb() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The blurb to update.
    * 
* * .google.showcase.v1beta1.Blurb blurb = 1; + * * @return The blurb. */ @java.lang.Override @@ -72,6 +96,8 @@ public com.google.showcase.v1beta1.Blurb getBlurb() { return blurb_ == null ? com.google.showcase.v1beta1.Blurb.getDefaultInstance() : blurb_; } /** + * + * *
    * The blurb to update.
    * 
@@ -86,12 +112,15 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The field mask to determine wich fields are to be updated. If empty, the
    * server will assume all fields are to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -99,12 +128,15 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * The field mask to determine wich fields are to be updated. If empty, the
    * server will assume all fields are to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -112,6 +144,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The field mask to determine wich fields are to be updated. If empty, the
    * server will assume all fields are to be updated.
@@ -125,6 +159,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -136,8 +171,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(1, getBlurb());
     }
@@ -154,12 +188,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getBlurb());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBlurb());
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -169,22 +201,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.showcase.v1beta1.UpdateBlurbRequest)) {
       return super.equals(obj);
     }
-    com.google.showcase.v1beta1.UpdateBlurbRequest other = (com.google.showcase.v1beta1.UpdateBlurbRequest) obj;
+    com.google.showcase.v1beta1.UpdateBlurbRequest other =
+        (com.google.showcase.v1beta1.UpdateBlurbRequest) obj;
 
     if (hasBlurb() != other.hasBlurb()) return false;
     if (hasBlurb()) {
-      if (!getBlurb()
-          .equals(other.getBlurb())) return false;
+      if (!getBlurb().equals(other.getBlurb())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -210,99 +241,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.showcase.v1beta1.UpdateBlurbRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.showcase.v1beta1.UpdateBlurbRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.showcase.v1beta1.UpdateBlurbRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.UpdateBlurbRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.showcase.v1beta1.UpdateBlurbRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The request message for the google.showcase.v1beta1.Messaging\UpdateBlurb
    * method.
@@ -310,21 +346,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.UpdateBlurbRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.UpdateBlurbRequest)
       com.google.showcase.v1beta1.UpdateBlurbRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateBlurbRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_UpdateBlurbRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.UpdateBlurbRequest.class, com.google.showcase.v1beta1.UpdateBlurbRequest.Builder.class);
+              com.google.showcase.v1beta1.UpdateBlurbRequest.class,
+              com.google.showcase.v1beta1.UpdateBlurbRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.UpdateBlurbRequest.newBuilder()
@@ -332,18 +370,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getBlurbFieldBuilder();
         getUpdateMaskFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -362,9 +400,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor;
     }
 
     @java.lang.Override
@@ -383,8 +421,11 @@ public com.google.showcase.v1beta1.UpdateBlurbRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.UpdateBlurbRequest buildPartial() {
-      com.google.showcase.v1beta1.UpdateBlurbRequest result = new com.google.showcase.v1beta1.UpdateBlurbRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.UpdateBlurbRequest result =
+          new com.google.showcase.v1beta1.UpdateBlurbRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -393,15 +434,11 @@ private void buildPartial0(com.google.showcase.v1beta1.UpdateBlurbRequest result
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.blurb_ = blurbBuilder_ == null
-            ? blurb_
-            : blurbBuilder_.build();
+        result.blurb_ = blurbBuilder_ == null ? blurb_ : blurbBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       result.bitField0_ |= to_bitField0_;
@@ -411,38 +448,39 @@ private void buildPartial0(com.google.showcase.v1beta1.UpdateBlurbRequest result
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.UpdateBlurbRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.UpdateBlurbRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.UpdateBlurbRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -483,26 +521,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getBlurbFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getBlurbFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -512,28 +549,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.showcase.v1beta1.Blurb blurb_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> blurbBuilder_;
+            com.google.showcase.v1beta1.Blurb,
+            com.google.showcase.v1beta1.Blurb.Builder,
+            com.google.showcase.v1beta1.BlurbOrBuilder>
+        blurbBuilder_;
     /**
+     *
+     *
      * 
      * The blurb to update.
      * 
* * .google.showcase.v1beta1.Blurb blurb = 1; + * * @return Whether the blurb field is set. */ public boolean hasBlurb() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The blurb to update.
      * 
* * .google.showcase.v1beta1.Blurb blurb = 1; + * * @return The blurb. */ public com.google.showcase.v1beta1.Blurb getBlurb() { @@ -544,6 +591,8 @@ public com.google.showcase.v1beta1.Blurb getBlurb() { } } /** + * + * *
      * The blurb to update.
      * 
@@ -564,14 +613,15 @@ public Builder setBlurb(com.google.showcase.v1beta1.Blurb value) { return this; } /** + * + * *
      * The blurb to update.
      * 
* * .google.showcase.v1beta1.Blurb blurb = 1; */ - public Builder setBlurb( - com.google.showcase.v1beta1.Blurb.Builder builderForValue) { + public Builder setBlurb(com.google.showcase.v1beta1.Blurb.Builder builderForValue) { if (blurbBuilder_ == null) { blurb_ = builderForValue.build(); } else { @@ -582,6 +632,8 @@ public Builder setBlurb( return this; } /** + * + * *
      * The blurb to update.
      * 
@@ -590,9 +642,9 @@ public Builder setBlurb( */ public Builder mergeBlurb(com.google.showcase.v1beta1.Blurb value) { if (blurbBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - blurb_ != null && - blurb_ != com.google.showcase.v1beta1.Blurb.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && blurb_ != null + && blurb_ != com.google.showcase.v1beta1.Blurb.getDefaultInstance()) { getBlurbBuilder().mergeFrom(value); } else { blurb_ = value; @@ -607,6 +659,8 @@ public Builder mergeBlurb(com.google.showcase.v1beta1.Blurb value) { return this; } /** + * + * *
      * The blurb to update.
      * 
@@ -624,6 +678,8 @@ public Builder clearBlurb() { return this; } /** + * + * *
      * The blurb to update.
      * 
@@ -636,6 +692,8 @@ public com.google.showcase.v1beta1.Blurb.Builder getBlurbBuilder() { return getBlurbFieldBuilder().getBuilder(); } /** + * + * *
      * The blurb to update.
      * 
@@ -646,11 +704,12 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { if (blurbBuilder_ != null) { return blurbBuilder_.getMessageOrBuilder(); } else { - return blurb_ == null ? - com.google.showcase.v1beta1.Blurb.getDefaultInstance() : blurb_; + return blurb_ == null ? com.google.showcase.v1beta1.Blurb.getDefaultInstance() : blurb_; } } /** + * + * *
      * The blurb to update.
      * 
@@ -658,14 +717,17 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { * .google.showcase.v1beta1.Blurb blurb = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder> + com.google.showcase.v1beta1.Blurb, + com.google.showcase.v1beta1.Blurb.Builder, + com.google.showcase.v1beta1.BlurbOrBuilder> getBlurbFieldBuilder() { if (blurbBuilder_ == null) { - blurbBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Blurb, com.google.showcase.v1beta1.Blurb.Builder, com.google.showcase.v1beta1.BlurbOrBuilder>( - getBlurb(), - getParentForChildren(), - isClean()); + blurbBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Blurb, + com.google.showcase.v1beta1.Blurb.Builder, + com.google.showcase.v1beta1.BlurbOrBuilder>( + getBlurb(), getParentForChildren(), isClean()); blurb_ = null; } return blurbBuilder_; @@ -673,36 +735,49 @@ public com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The field mask to determine wich fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The field mask to determine wich fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The field mask to determine wich fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -724,6 +799,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The field mask to determine wich fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -731,8 +808,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
       } else {
@@ -743,6 +819,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The field mask to determine wich fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -752,9 +830,9 @@ public Builder setUpdateMask(
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          updateMask_ != null &&
-          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && updateMask_ != null
+            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -769,6 +847,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The field mask to determine wich fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -787,6 +867,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The field mask to determine wich fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -800,6 +882,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The field mask to determine wich fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -811,11 +895,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The field mask to determine wich fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -824,21 +911,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -848,12 +938,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.UpdateBlurbRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.UpdateBlurbRequest)
   private static final com.google.showcase.v1beta1.UpdateBlurbRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.showcase.v1beta1.UpdateBlurbRequest();
   }
@@ -862,27 +952,27 @@ public static com.google.showcase.v1beta1.UpdateBlurbRequest getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateBlurbRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateBlurbRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -897,6 +987,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.showcase.v1beta1.UpdateBlurbRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequestOrBuilder.java
similarity index 71%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequestOrBuilder.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequestOrBuilder.java
index 4c0a7fa3fb..492f4cc7c5 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequestOrBuilder.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateBlurbRequestOrBuilder.java
@@ -1,32 +1,56 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/messaging.proto
 
 // Protobuf Java Version: 3.25.5
 package com.google.showcase.v1beta1;
 
-public interface UpdateBlurbRequestOrBuilder extends
+public interface UpdateBlurbRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.UpdateBlurbRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The blurb to update.
    * 
* * .google.showcase.v1beta1.Blurb blurb = 1; + * * @return Whether the blurb field is set. */ boolean hasBlurb(); /** + * + * *
    * The blurb to update.
    * 
* * .google.showcase.v1beta1.Blurb blurb = 1; + * * @return The blurb. */ com.google.showcase.v1beta1.Blurb getBlurb(); /** + * + * *
    * The blurb to update.
    * 
@@ -36,26 +60,34 @@ public interface UpdateBlurbRequestOrBuilder extends com.google.showcase.v1beta1.BlurbOrBuilder getBlurbOrBuilder(); /** + * + * *
    * The field mask to determine wich fields are to be updated. If empty, the
    * server will assume all fields are to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The field mask to determine wich fields are to be updated. If empty, the
    * server will assume all fields are to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The field mask to determine wich fields are to be updated. If empty, the
    * server will assume all fields are to be updated.
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequest.java
similarity index 70%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequest.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequest.java
index b52286936e..18f0575d86 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequest.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequest.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/messaging.proto
 
@@ -5,6 +20,8 @@
 package com.google.showcase.v1beta1;
 
 /**
+ *
+ *
  * 
  * The request message for the google.showcase.v1beta1.Messaging\UpdateRoom
  * method.
@@ -12,47 +29,51 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.UpdateRoomRequest}
  */
-public final class UpdateRoomRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateRoomRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.UpdateRoomRequest)
     UpdateRoomRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateRoomRequest.newBuilder() to construct.
   private UpdateRoomRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private UpdateRoomRequest() {
-  }
+
+  private UpdateRoomRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateRoomRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateRoomRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.MessagingOuterClass
+        .internal_static_google_showcase_v1beta1_UpdateRoomRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.UpdateRoomRequest.class, com.google.showcase.v1beta1.UpdateRoomRequest.Builder.class);
+            com.google.showcase.v1beta1.UpdateRoomRequest.class,
+            com.google.showcase.v1beta1.UpdateRoomRequest.Builder.class);
   }
 
   private int bitField0_;
   public static final int ROOM_FIELD_NUMBER = 1;
   private com.google.showcase.v1beta1.Room room_;
   /**
+   *
+   *
    * 
    * The room to update.
    * 
* * .google.showcase.v1beta1.Room room = 1; + * * @return Whether the room field is set. */ @java.lang.Override @@ -60,11 +81,14 @@ public boolean hasRoom() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The room to update.
    * 
* * .google.showcase.v1beta1.Room room = 1; + * * @return The room. */ @java.lang.Override @@ -72,6 +96,8 @@ public com.google.showcase.v1beta1.Room getRoom() { return room_ == null ? com.google.showcase.v1beta1.Room.getDefaultInstance() : room_; } /** + * + * *
    * The room to update.
    * 
@@ -86,12 +112,15 @@ public com.google.showcase.v1beta1.RoomOrBuilder getRoomOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The field mask to determine which fields are to be updated. If empty, the
    * server will assume all fields are to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -99,12 +128,15 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * The field mask to determine which fields are to be updated. If empty, the
    * server will assume all fields are to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -112,6 +144,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The field mask to determine which fields are to be updated. If empty, the
    * server will assume all fields are to be updated.
@@ -125,6 +159,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -136,8 +171,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(1, getRoom());
     }
@@ -154,12 +188,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getRoom());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRoom());
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -169,22 +201,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.showcase.v1beta1.UpdateRoomRequest)) {
       return super.equals(obj);
     }
-    com.google.showcase.v1beta1.UpdateRoomRequest other = (com.google.showcase.v1beta1.UpdateRoomRequest) obj;
+    com.google.showcase.v1beta1.UpdateRoomRequest other =
+        (com.google.showcase.v1beta1.UpdateRoomRequest) obj;
 
     if (hasRoom() != other.hasRoom()) return false;
     if (hasRoom()) {
-      if (!getRoom()
-          .equals(other.getRoom())) return false;
+      if (!getRoom().equals(other.getRoom())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -210,99 +241,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.showcase.v1beta1.UpdateRoomRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.showcase.v1beta1.UpdateRoomRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.showcase.v1beta1.UpdateRoomRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.UpdateRoomRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.showcase.v1beta1.UpdateRoomRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The request message for the google.showcase.v1beta1.Messaging\UpdateRoom
    * method.
@@ -310,21 +346,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.UpdateRoomRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.UpdateRoomRequest)
       com.google.showcase.v1beta1.UpdateRoomRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateRoomRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_UpdateRoomRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.UpdateRoomRequest.class, com.google.showcase.v1beta1.UpdateRoomRequest.Builder.class);
+              com.google.showcase.v1beta1.UpdateRoomRequest.class,
+              com.google.showcase.v1beta1.UpdateRoomRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.UpdateRoomRequest.newBuilder()
@@ -332,18 +370,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getRoomFieldBuilder();
         getUpdateMaskFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -362,9 +400,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.MessagingOuterClass.internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.MessagingOuterClass
+          .internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor;
     }
 
     @java.lang.Override
@@ -383,8 +421,11 @@ public com.google.showcase.v1beta1.UpdateRoomRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.UpdateRoomRequest buildPartial() {
-      com.google.showcase.v1beta1.UpdateRoomRequest result = new com.google.showcase.v1beta1.UpdateRoomRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.UpdateRoomRequest result =
+          new com.google.showcase.v1beta1.UpdateRoomRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -393,15 +434,11 @@ private void buildPartial0(com.google.showcase.v1beta1.UpdateRoomRequest result)
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.room_ = roomBuilder_ == null
-            ? room_
-            : roomBuilder_.build();
+        result.room_ = roomBuilder_ == null ? room_ : roomBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       result.bitField0_ |= to_bitField0_;
@@ -411,38 +448,39 @@ private void buildPartial0(com.google.showcase.v1beta1.UpdateRoomRequest result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.UpdateRoomRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.UpdateRoomRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.UpdateRoomRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -483,26 +521,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getRoomFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getRoomFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -512,28 +549,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.showcase.v1beta1.Room room_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.Room, com.google.showcase.v1beta1.Room.Builder, com.google.showcase.v1beta1.RoomOrBuilder> roomBuilder_;
+            com.google.showcase.v1beta1.Room,
+            com.google.showcase.v1beta1.Room.Builder,
+            com.google.showcase.v1beta1.RoomOrBuilder>
+        roomBuilder_;
     /**
+     *
+     *
      * 
      * The room to update.
      * 
* * .google.showcase.v1beta1.Room room = 1; + * * @return Whether the room field is set. */ public boolean hasRoom() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The room to update.
      * 
* * .google.showcase.v1beta1.Room room = 1; + * * @return The room. */ public com.google.showcase.v1beta1.Room getRoom() { @@ -544,6 +591,8 @@ public com.google.showcase.v1beta1.Room getRoom() { } } /** + * + * *
      * The room to update.
      * 
@@ -564,14 +613,15 @@ public Builder setRoom(com.google.showcase.v1beta1.Room value) { return this; } /** + * + * *
      * The room to update.
      * 
* * .google.showcase.v1beta1.Room room = 1; */ - public Builder setRoom( - com.google.showcase.v1beta1.Room.Builder builderForValue) { + public Builder setRoom(com.google.showcase.v1beta1.Room.Builder builderForValue) { if (roomBuilder_ == null) { room_ = builderForValue.build(); } else { @@ -582,6 +632,8 @@ public Builder setRoom( return this; } /** + * + * *
      * The room to update.
      * 
@@ -590,9 +642,9 @@ public Builder setRoom( */ public Builder mergeRoom(com.google.showcase.v1beta1.Room value) { if (roomBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - room_ != null && - room_ != com.google.showcase.v1beta1.Room.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && room_ != null + && room_ != com.google.showcase.v1beta1.Room.getDefaultInstance()) { getRoomBuilder().mergeFrom(value); } else { room_ = value; @@ -607,6 +659,8 @@ public Builder mergeRoom(com.google.showcase.v1beta1.Room value) { return this; } /** + * + * *
      * The room to update.
      * 
@@ -624,6 +678,8 @@ public Builder clearRoom() { return this; } /** + * + * *
      * The room to update.
      * 
@@ -636,6 +692,8 @@ public com.google.showcase.v1beta1.Room.Builder getRoomBuilder() { return getRoomFieldBuilder().getBuilder(); } /** + * + * *
      * The room to update.
      * 
@@ -646,11 +704,12 @@ public com.google.showcase.v1beta1.RoomOrBuilder getRoomOrBuilder() { if (roomBuilder_ != null) { return roomBuilder_.getMessageOrBuilder(); } else { - return room_ == null ? - com.google.showcase.v1beta1.Room.getDefaultInstance() : room_; + return room_ == null ? com.google.showcase.v1beta1.Room.getDefaultInstance() : room_; } } /** + * + * *
      * The room to update.
      * 
@@ -658,14 +717,17 @@ public com.google.showcase.v1beta1.RoomOrBuilder getRoomOrBuilder() { * .google.showcase.v1beta1.Room room = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Room, com.google.showcase.v1beta1.Room.Builder, com.google.showcase.v1beta1.RoomOrBuilder> + com.google.showcase.v1beta1.Room, + com.google.showcase.v1beta1.Room.Builder, + com.google.showcase.v1beta1.RoomOrBuilder> getRoomFieldBuilder() { if (roomBuilder_ == null) { - roomBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Room, com.google.showcase.v1beta1.Room.Builder, com.google.showcase.v1beta1.RoomOrBuilder>( - getRoom(), - getParentForChildren(), - isClean()); + roomBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Room, + com.google.showcase.v1beta1.Room.Builder, + com.google.showcase.v1beta1.RoomOrBuilder>( + getRoom(), getParentForChildren(), isClean()); room_ = null; } return roomBuilder_; @@ -673,36 +735,49 @@ public com.google.showcase.v1beta1.RoomOrBuilder getRoomOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The field mask to determine which fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The field mask to determine which fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The field mask to determine which fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -724,6 +799,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The field mask to determine which fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -731,8 +808,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
       } else {
@@ -743,6 +819,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The field mask to determine which fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -752,9 +830,9 @@ public Builder setUpdateMask(
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          updateMask_ != null &&
-          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && updateMask_ != null
+            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -769,6 +847,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The field mask to determine which fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -787,6 +867,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The field mask to determine which fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -800,6 +882,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The field mask to determine which fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -811,11 +895,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The field mask to determine which fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -824,21 +911,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -848,12 +938,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.UpdateRoomRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.UpdateRoomRequest)
   private static final com.google.showcase.v1beta1.UpdateRoomRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.showcase.v1beta1.UpdateRoomRequest();
   }
@@ -862,27 +952,27 @@ public static com.google.showcase.v1beta1.UpdateRoomRequest getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateRoomRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateRoomRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -897,6 +987,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.showcase.v1beta1.UpdateRoomRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequestOrBuilder.java
similarity index 71%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequestOrBuilder.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequestOrBuilder.java
index 50c354b2ff..1ed02fb593 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequestOrBuilder.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateRoomRequestOrBuilder.java
@@ -1,32 +1,56 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/messaging.proto
 
 // Protobuf Java Version: 3.25.5
 package com.google.showcase.v1beta1;
 
-public interface UpdateRoomRequestOrBuilder extends
+public interface UpdateRoomRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.UpdateRoomRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The room to update.
    * 
* * .google.showcase.v1beta1.Room room = 1; + * * @return Whether the room field is set. */ boolean hasRoom(); /** + * + * *
    * The room to update.
    * 
* * .google.showcase.v1beta1.Room room = 1; + * * @return The room. */ com.google.showcase.v1beta1.Room getRoom(); /** + * + * *
    * The room to update.
    * 
@@ -36,26 +60,34 @@ public interface UpdateRoomRequestOrBuilder extends com.google.showcase.v1beta1.RoomOrBuilder getRoomOrBuilder(); /** + * + * *
    * The field mask to determine which fields are to be updated. If empty, the
    * server will assume all fields are to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The field mask to determine which fields are to be updated. If empty, the
    * server will assume all fields are to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The field mask to determine which fields are to be updated. If empty, the
    * server will assume all fields are to be updated.
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequest.java
similarity index 70%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequest.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequest.java
index 488fc2cced..390d68d147 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequest.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequest.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/identity.proto
 
@@ -5,6 +20,8 @@
 package com.google.showcase.v1beta1;
 
 /**
+ *
+ *
  * 
  * The request message for the google.showcase.v1beta1.Identity\UpdateUser
  * method.
@@ -12,47 +29,51 @@
  *
  * Protobuf type {@code google.showcase.v1beta1.UpdateUserRequest}
  */
-public final class UpdateUserRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateUserRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.UpdateUserRequest)
     UpdateUserRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateUserRequest.newBuilder() to construct.
   private UpdateUserRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private UpdateUserRequest() {
-  }
+
+  private UpdateUserRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateUserRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.showcase.v1beta1.IdentityOuterClass
+        .internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_UpdateUserRequest_fieldAccessorTable
+    return com.google.showcase.v1beta1.IdentityOuterClass
+        .internal_static_google_showcase_v1beta1_UpdateUserRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.showcase.v1beta1.UpdateUserRequest.class, com.google.showcase.v1beta1.UpdateUserRequest.Builder.class);
+            com.google.showcase.v1beta1.UpdateUserRequest.class,
+            com.google.showcase.v1beta1.UpdateUserRequest.Builder.class);
   }
 
   private int bitField0_;
   public static final int USER_FIELD_NUMBER = 1;
   private com.google.showcase.v1beta1.User user_;
   /**
+   *
+   *
    * 
    * The user to update.
    * 
* * .google.showcase.v1beta1.User user = 1; + * * @return Whether the user field is set. */ @java.lang.Override @@ -60,11 +81,14 @@ public boolean hasUser() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The user to update.
    * 
* * .google.showcase.v1beta1.User user = 1; + * * @return The user. */ @java.lang.Override @@ -72,6 +96,8 @@ public com.google.showcase.v1beta1.User getUser() { return user_ == null ? com.google.showcase.v1beta1.User.getDefaultInstance() : user_; } /** + * + * *
    * The user to update.
    * 
@@ -86,12 +112,15 @@ public com.google.showcase.v1beta1.UserOrBuilder getUserOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The field mask to determine which fields are to be updated. If empty, the
    * server will assume all fields are to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -99,12 +128,15 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * The field mask to determine which fields are to be updated. If empty, the
    * server will assume all fields are to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -112,6 +144,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The field mask to determine which fields are to be updated. If empty, the
    * server will assume all fields are to be updated.
@@ -125,6 +159,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -136,8 +171,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(1, getUser());
     }
@@ -154,12 +188,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getUser());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUser());
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -169,22 +201,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.showcase.v1beta1.UpdateUserRequest)) {
       return super.equals(obj);
     }
-    com.google.showcase.v1beta1.UpdateUserRequest other = (com.google.showcase.v1beta1.UpdateUserRequest) obj;
+    com.google.showcase.v1beta1.UpdateUserRequest other =
+        (com.google.showcase.v1beta1.UpdateUserRequest) obj;
 
     if (hasUser() != other.hasUser()) return false;
     if (hasUser()) {
-      if (!getUser()
-          .equals(other.getUser())) return false;
+      if (!getUser().equals(other.getUser())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -210,99 +241,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.showcase.v1beta1.UpdateUserRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.showcase.v1beta1.UpdateUserRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.showcase.v1beta1.UpdateUserRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.showcase.v1beta1.UpdateUserRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.showcase.v1beta1.UpdateUserRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The request message for the google.showcase.v1beta1.Identity\UpdateUser
    * method.
@@ -310,21 +346,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.showcase.v1beta1.UpdateUserRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.UpdateUserRequest)
       com.google.showcase.v1beta1.UpdateUserRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.showcase.v1beta1.IdentityOuterClass
+          .internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_UpdateUserRequest_fieldAccessorTable
+      return com.google.showcase.v1beta1.IdentityOuterClass
+          .internal_static_google_showcase_v1beta1_UpdateUserRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.showcase.v1beta1.UpdateUserRequest.class, com.google.showcase.v1beta1.UpdateUserRequest.Builder.class);
+              com.google.showcase.v1beta1.UpdateUserRequest.class,
+              com.google.showcase.v1beta1.UpdateUserRequest.Builder.class);
     }
 
     // Construct using com.google.showcase.v1beta1.UpdateUserRequest.newBuilder()
@@ -332,18 +370,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getUserFieldBuilder();
         getUpdateMaskFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -362,9 +400,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.showcase.v1beta1.IdentityOuterClass
+          .internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor;
     }
 
     @java.lang.Override
@@ -383,8 +421,11 @@ public com.google.showcase.v1beta1.UpdateUserRequest build() {
 
     @java.lang.Override
     public com.google.showcase.v1beta1.UpdateUserRequest buildPartial() {
-      com.google.showcase.v1beta1.UpdateUserRequest result = new com.google.showcase.v1beta1.UpdateUserRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.showcase.v1beta1.UpdateUserRequest result =
+          new com.google.showcase.v1beta1.UpdateUserRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -393,15 +434,11 @@ private void buildPartial0(com.google.showcase.v1beta1.UpdateUserRequest result)
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.user_ = userBuilder_ == null
-            ? user_
-            : userBuilder_.build();
+        result.user_ = userBuilder_ == null ? user_ : userBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       result.bitField0_ |= to_bitField0_;
@@ -411,38 +448,39 @@ private void buildPartial0(com.google.showcase.v1beta1.UpdateUserRequest result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.showcase.v1beta1.UpdateUserRequest) {
-        return mergeFrom((com.google.showcase.v1beta1.UpdateUserRequest)other);
+        return mergeFrom((com.google.showcase.v1beta1.UpdateUserRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -483,26 +521,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getUserFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getUserFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -512,28 +549,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.showcase.v1beta1.User user_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.User, com.google.showcase.v1beta1.User.Builder, com.google.showcase.v1beta1.UserOrBuilder> userBuilder_;
+            com.google.showcase.v1beta1.User,
+            com.google.showcase.v1beta1.User.Builder,
+            com.google.showcase.v1beta1.UserOrBuilder>
+        userBuilder_;
     /**
+     *
+     *
      * 
      * The user to update.
      * 
* * .google.showcase.v1beta1.User user = 1; + * * @return Whether the user field is set. */ public boolean hasUser() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The user to update.
      * 
* * .google.showcase.v1beta1.User user = 1; + * * @return The user. */ public com.google.showcase.v1beta1.User getUser() { @@ -544,6 +591,8 @@ public com.google.showcase.v1beta1.User getUser() { } } /** + * + * *
      * The user to update.
      * 
@@ -564,14 +613,15 @@ public Builder setUser(com.google.showcase.v1beta1.User value) { return this; } /** + * + * *
      * The user to update.
      * 
* * .google.showcase.v1beta1.User user = 1; */ - public Builder setUser( - com.google.showcase.v1beta1.User.Builder builderForValue) { + public Builder setUser(com.google.showcase.v1beta1.User.Builder builderForValue) { if (userBuilder_ == null) { user_ = builderForValue.build(); } else { @@ -582,6 +632,8 @@ public Builder setUser( return this; } /** + * + * *
      * The user to update.
      * 
@@ -590,9 +642,9 @@ public Builder setUser( */ public Builder mergeUser(com.google.showcase.v1beta1.User value) { if (userBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - user_ != null && - user_ != com.google.showcase.v1beta1.User.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && user_ != null + && user_ != com.google.showcase.v1beta1.User.getDefaultInstance()) { getUserBuilder().mergeFrom(value); } else { user_ = value; @@ -607,6 +659,8 @@ public Builder mergeUser(com.google.showcase.v1beta1.User value) { return this; } /** + * + * *
      * The user to update.
      * 
@@ -624,6 +678,8 @@ public Builder clearUser() { return this; } /** + * + * *
      * The user to update.
      * 
@@ -636,6 +692,8 @@ public com.google.showcase.v1beta1.User.Builder getUserBuilder() { return getUserFieldBuilder().getBuilder(); } /** + * + * *
      * The user to update.
      * 
@@ -646,11 +704,12 @@ public com.google.showcase.v1beta1.UserOrBuilder getUserOrBuilder() { if (userBuilder_ != null) { return userBuilder_.getMessageOrBuilder(); } else { - return user_ == null ? - com.google.showcase.v1beta1.User.getDefaultInstance() : user_; + return user_ == null ? com.google.showcase.v1beta1.User.getDefaultInstance() : user_; } } /** + * + * *
      * The user to update.
      * 
@@ -658,14 +717,17 @@ public com.google.showcase.v1beta1.UserOrBuilder getUserOrBuilder() { * .google.showcase.v1beta1.User user = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.User, com.google.showcase.v1beta1.User.Builder, com.google.showcase.v1beta1.UserOrBuilder> + com.google.showcase.v1beta1.User, + com.google.showcase.v1beta1.User.Builder, + com.google.showcase.v1beta1.UserOrBuilder> getUserFieldBuilder() { if (userBuilder_ == null) { - userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.User, com.google.showcase.v1beta1.User.Builder, com.google.showcase.v1beta1.UserOrBuilder>( - getUser(), - getParentForChildren(), - isClean()); + userBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.User, + com.google.showcase.v1beta1.User.Builder, + com.google.showcase.v1beta1.UserOrBuilder>( + getUser(), getParentForChildren(), isClean()); user_ = null; } return userBuilder_; @@ -673,36 +735,49 @@ public com.google.showcase.v1beta1.UserOrBuilder getUserOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The field mask to determine which fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The field mask to determine which fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The field mask to determine which fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -724,6 +799,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The field mask to determine which fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -731,8 +808,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
       } else {
@@ -743,6 +819,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The field mask to determine which fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -752,9 +830,9 @@ public Builder setUpdateMask(
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          updateMask_ != null &&
-          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && updateMask_ != null
+            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -769,6 +847,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The field mask to determine which fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -787,6 +867,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The field mask to determine which fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -800,6 +882,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The field mask to determine which fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -811,11 +895,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The field mask to determine which fields are to be updated. If empty, the
      * server will assume all fields are to be updated.
@@ -824,21 +911,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -848,12 +938,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.UpdateUserRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.UpdateUserRequest)
   private static final com.google.showcase.v1beta1.UpdateUserRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.showcase.v1beta1.UpdateUserRequest();
   }
@@ -862,27 +952,27 @@ public static com.google.showcase.v1beta1.UpdateUserRequest getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateUserRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateUserRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -897,6 +987,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.showcase.v1beta1.UpdateUserRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequestOrBuilder.java
similarity index 71%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequestOrBuilder.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequestOrBuilder.java
index afee1c4da0..99dfd1108b 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequestOrBuilder.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UpdateUserRequestOrBuilder.java
@@ -1,32 +1,56 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/identity.proto
 
 // Protobuf Java Version: 3.25.5
 package com.google.showcase.v1beta1;
 
-public interface UpdateUserRequestOrBuilder extends
+public interface UpdateUserRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.UpdateUserRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The user to update.
    * 
* * .google.showcase.v1beta1.User user = 1; + * * @return Whether the user field is set. */ boolean hasUser(); /** + * + * *
    * The user to update.
    * 
* * .google.showcase.v1beta1.User user = 1; + * * @return The user. */ com.google.showcase.v1beta1.User getUser(); /** + * + * *
    * The user to update.
    * 
@@ -36,26 +60,34 @@ public interface UpdateUserRequestOrBuilder extends com.google.showcase.v1beta1.UserOrBuilder getUserOrBuilder(); /** + * + * *
    * The field mask to determine which fields are to be updated. If empty, the
    * server will assume all fields are to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The field mask to determine which fields are to be updated. If empty, the
    * server will assume all fields are to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The field mask to determine which fields are to be updated. If empty, the
    * server will assume all fields are to be updated.
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/User.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/User.java
similarity index 71%
rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/User.java
rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/User.java
index c826a17503..c47263f465 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/User.java
+++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/User.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: schema/google/showcase/v1beta1/identity.proto
 
@@ -5,21 +20,24 @@
 package com.google.showcase.v1beta1;
 
 /**
+ *
+ *
  * 
  * A user.
  * 
* * Protobuf type {@code google.showcase.v1beta1.User} */ -public final class User extends - com.google.protobuf.GeneratedMessageV3 implements +public final class User extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.User) UserOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use User.newBuilder() to construct. private User(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private User() { name_ = ""; displayName_ = ""; @@ -29,34 +47,38 @@ private User() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new User(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_User_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.IdentityOuterClass + .internal_static_google_showcase_v1beta1_User_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_User_fieldAccessorTable + return com.google.showcase.v1beta1.IdentityOuterClass + .internal_static_google_showcase_v1beta1_User_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.showcase.v1beta1.User.class, com.google.showcase.v1beta1.User.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the user.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -65,29 +87,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the user.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,14 +118,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * The display_name of the user.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -112,29 +138,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * The display_name of the user.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -143,14 +169,18 @@ public java.lang.String getDisplayName() { } public static final int EMAIL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object email_ = ""; /** + * + * *
    * The email address of the user.
    * 
* * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The email. */ @java.lang.Override @@ -159,29 +189,29 @@ public java.lang.String getEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** + * + * *
    * The email address of the user.
    * 
* * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -192,11 +222,15 @@ public java.lang.String getEmail() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The timestamp at which the user was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -204,11 +238,15 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The timestamp at which the user was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -216,11 +254,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The timestamp at which the user was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -230,11 +271,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The latest timestamp at which the user was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -242,11 +287,15 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * The latest timestamp at which the user was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -254,11 +303,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The latest timestamp at which the user was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -268,11 +320,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int AGE_FIELD_NUMBER = 6; private int age_ = 0; /** + * + * *
    * The age of the user in years.
    * 
* * optional int32 age = 6; + * * @return Whether the age field is set. */ @java.lang.Override @@ -280,11 +335,14 @@ public boolean hasAge() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
    * The age of the user in years.
    * 
* * optional int32 age = 6; + * * @return The age. */ @java.lang.Override @@ -295,11 +353,14 @@ public int getAge() { public static final int HEIGHT_FEET_FIELD_NUMBER = 7; private double heightFeet_ = 0D; /** + * + * *
    * The height of the user in feet.
    * 
* * optional double height_feet = 7; + * * @return Whether the heightFeet field is set. */ @java.lang.Override @@ -307,11 +368,14 @@ public boolean hasHeightFeet() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
    * The height of the user in feet.
    * 
* * optional double height_feet = 7; + * * @return The heightFeet. */ @java.lang.Override @@ -320,9 +384,12 @@ public double getHeightFeet() { } public static final int NICKNAME_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object nickname_ = ""; /** + * + * *
    * The nickname of the user.
    *
@@ -331,6 +398,7 @@ public double getHeightFeet() {
    * 
* * optional string nickname = 8; + * * @return Whether the nickname field is set. */ @java.lang.Override @@ -338,6 +406,8 @@ public boolean hasNickname() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
    * The nickname of the user.
    *
@@ -346,6 +416,7 @@ public boolean hasNickname() {
    * 
* * optional string nickname = 8; + * * @return The nickname. */ @java.lang.Override @@ -354,14 +425,15 @@ public java.lang.String getNickname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nickname_ = s; return s; } } /** + * + * *
    * The nickname of the user.
    *
@@ -370,16 +442,15 @@ public java.lang.String getNickname() {
    * 
* * optional string nickname = 8; + * * @return The bytes for nickname. */ @java.lang.Override - public com.google.protobuf.ByteString - getNicknameBytes() { + public com.google.protobuf.ByteString getNicknameBytes() { java.lang.Object ref = nickname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nickname_ = b; return b; } else { @@ -390,6 +461,8 @@ public java.lang.String getNickname() { public static final int ENABLE_NOTIFICATIONS_FIELD_NUMBER = 9; private boolean enableNotifications_ = false; /** + * + * *
    * Enables the receiving of notifications. The default is true if unset.
    *
@@ -398,6 +471,7 @@ public java.lang.String getNickname() {
    * 
* * optional bool enable_notifications = 9; + * * @return Whether the enableNotifications field is set. */ @java.lang.Override @@ -405,6 +479,8 @@ public boolean hasEnableNotifications() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
    * Enables the receiving of notifications. The default is true if unset.
    *
@@ -413,6 +489,7 @@ public boolean hasEnableNotifications() {
    * 
* * optional bool enable_notifications = 9; + * * @return The enableNotifications. */ @java.lang.Override @@ -421,6 +498,7 @@ public boolean getEnableNotifications() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -432,8 +510,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -480,27 +557,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, email_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, age_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, age_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(7, heightFeet_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(7, heightFeet_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, nickname_); } if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, enableNotifications_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, enableNotifications_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -510,49 +582,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.User)) { return super.equals(obj); } com.google.showcase.v1beta1.User other = (com.google.showcase.v1beta1.User) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getEmail() - .equals(other.getEmail())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getEmail().equals(other.getEmail())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasAge() != other.hasAge()) return false; if (hasAge()) { - if (getAge() - != other.getAge()) return false; + if (getAge() != other.getAge()) return false; } if (hasHeightFeet() != other.hasHeightFeet()) return false; if (hasHeightFeet()) { if (java.lang.Double.doubleToLongBits(getHeightFeet()) - != java.lang.Double.doubleToLongBits( - other.getHeightFeet())) return false; + != java.lang.Double.doubleToLongBits(other.getHeightFeet())) return false; } if (hasNickname() != other.hasNickname()) return false; if (hasNickname()) { - if (!getNickname() - .equals(other.getNickname())) return false; + if (!getNickname().equals(other.getNickname())) return false; } if (hasEnableNotifications() != other.hasEnableNotifications()) return false; if (hasEnableNotifications()) { - if (getEnableNotifications() - != other.getEnableNotifications()) return false; + if (getEnableNotifications() != other.getEnableNotifications()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -585,8 +648,10 @@ public int hashCode() { } if (hasHeightFeet()) { hash = (37 * hash) + HEIGHT_FEET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getHeightFeet())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getHeightFeet())); } if (hasNickname()) { hash = (37 * hash) + NICKNAME_FIELD_NUMBER; @@ -594,128 +659,133 @@ public int hashCode() { } if (hasEnableNotifications()) { hash = (37 * hash) + ENABLE_NOTIFICATIONS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableNotifications()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableNotifications()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.showcase.v1beta1.User parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.User parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.User parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.showcase.v1beta1.User parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.showcase.v1beta1.User parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.User parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.User parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.User parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.User parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.User parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.showcase.v1beta1.User parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.User parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.User parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.User parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.User prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A user.
    * 
* * Protobuf type {@code google.showcase.v1beta1.User} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.User) com.google.showcase.v1beta1.UserOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_User_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.IdentityOuterClass + .internal_static_google_showcase_v1beta1_User_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_User_fieldAccessorTable + return com.google.showcase.v1beta1.IdentityOuterClass + .internal_static_google_showcase_v1beta1_User_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.User.class, com.google.showcase.v1beta1.User.Builder.class); + com.google.showcase.v1beta1.User.class, + com.google.showcase.v1beta1.User.Builder.class); } // Construct using com.google.showcase.v1beta1.User.newBuilder() @@ -723,18 +793,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -760,9 +830,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.IdentityOuterClass.internal_static_google_showcase_v1beta1_User_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.IdentityOuterClass + .internal_static_google_showcase_v1beta1_User_descriptor; } @java.lang.Override @@ -782,7 +852,9 @@ public com.google.showcase.v1beta1.User build() { @java.lang.Override public com.google.showcase.v1beta1.User buildPartial() { com.google.showcase.v1beta1.User result = new com.google.showcase.v1beta1.User(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -800,15 +872,11 @@ private void buildPartial0(com.google.showcase.v1beta1.User result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { @@ -834,38 +902,39 @@ private void buildPartial0(com.google.showcase.v1beta1.User result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.User) { - return mergeFrom((com.google.showcase.v1beta1.User)other); + return mergeFrom((com.google.showcase.v1beta1.User) other); } else { super.mergeFrom(other); return this; @@ -935,61 +1004,67 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - email_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - age_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 57: { - heightFeet_ = input.readDouble(); - bitField0_ |= 0x00000040; - break; - } // case 57 - case 66: { - nickname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 72: { - enableNotifications_ = input.readBool(); - bitField0_ |= 0x00000100; - break; - } // case 72 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + email_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + age_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 57: + { + heightFeet_ = input.readDouble(); + bitField0_ |= 0x00000040; + break; + } // case 57 + case 66: + { + nickname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: + { + enableNotifications_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -999,22 +1074,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the user.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1023,20 +1101,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the user.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1044,28 +1123,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the user.
      * 
* * 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(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the user.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1075,17 +1161,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the user.
      * 
* * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1095,18 +1185,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The display_name of the user.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1115,20 +1207,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The display_name of the user.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1136,28 +1229,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The display_name of the user.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The display_name of the user.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1167,17 +1267,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * The display_name of the user.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1187,18 +1291,20 @@ public Builder setDisplayNameBytes( private java.lang.Object email_ = ""; /** + * + * *
      * The email address of the user.
      * 
* * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; @@ -1207,20 +1313,21 @@ public java.lang.String getEmail() { } } /** + * + * *
      * The email address of the user.
      * 
* * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for email. */ - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -1228,28 +1335,35 @@ public java.lang.String getEmail() { } } /** + * + * *
      * The email address of the user.
      * 
* * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } email_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The email address of the user.
      * 
* * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearEmail() { @@ -1259,17 +1373,21 @@ public Builder clearEmail() { return this; } /** + * + * *
      * The email address of the user.
      * 
* * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); email_ = value; bitField0_ |= 0x00000004; @@ -1279,39 +1397,58 @@ public Builder setEmailBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The timestamp at which the user was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The timestamp at which the user was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The timestamp at which the user was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1327,14 +1464,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The timestamp at which the user was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1345,17 +1485,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The timestamp at which the user was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1370,11 +1514,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The timestamp at which the user was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1387,11 +1535,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The timestamp at which the user was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000008; @@ -1399,36 +1551,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The timestamp at which the user was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The timestamp at which the user was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1436,39 +1600,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * The latest timestamp at which the user was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * The latest timestamp at which the user was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * The latest timestamp at which the user was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1484,14 +1667,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The latest timestamp at which the user was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1502,17 +1688,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The latest timestamp at which the user was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1527,11 +1717,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The latest timestamp at which the user was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1544,11 +1738,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The latest timestamp at which the user was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000010; @@ -1556,48 +1754,63 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The latest timestamp at which the user was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The latest timestamp at which the user was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private int age_ ; + private int age_; /** + * + * *
      * The age of the user in years.
      * 
* * optional int32 age = 6; + * * @return Whether the age field is set. */ @java.lang.Override @@ -1605,11 +1818,14 @@ public boolean hasAge() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * The age of the user in years.
      * 
* * optional int32 age = 6; + * * @return The age. */ @java.lang.Override @@ -1617,11 +1833,14 @@ public int getAge() { return age_; } /** + * + * *
      * The age of the user in years.
      * 
* * optional int32 age = 6; + * * @param value The age to set. * @return This builder for chaining. */ @@ -1633,11 +1852,14 @@ public Builder setAge(int value) { return this; } /** + * + * *
      * The age of the user in years.
      * 
* * optional int32 age = 6; + * * @return This builder for chaining. */ public Builder clearAge() { @@ -1647,13 +1869,16 @@ public Builder clearAge() { return this; } - private double heightFeet_ ; + private double heightFeet_; /** + * + * *
      * The height of the user in feet.
      * 
* * optional double height_feet = 7; + * * @return Whether the heightFeet field is set. */ @java.lang.Override @@ -1661,11 +1886,14 @@ public boolean hasHeightFeet() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * The height of the user in feet.
      * 
* * optional double height_feet = 7; + * * @return The heightFeet. */ @java.lang.Override @@ -1673,11 +1901,14 @@ public double getHeightFeet() { return heightFeet_; } /** + * + * *
      * The height of the user in feet.
      * 
* * optional double height_feet = 7; + * * @param value The heightFeet to set. * @return This builder for chaining. */ @@ -1689,11 +1920,14 @@ public Builder setHeightFeet(double value) { return this; } /** + * + * *
      * The height of the user in feet.
      * 
* * optional double height_feet = 7; + * * @return This builder for chaining. */ public Builder clearHeightFeet() { @@ -1705,6 +1939,8 @@ public Builder clearHeightFeet() { private java.lang.Object nickname_ = ""; /** + * + * *
      * The nickname of the user.
      *
@@ -1713,12 +1949,15 @@ public Builder clearHeightFeet() {
      * 
* * optional string nickname = 8; + * * @return Whether the nickname field is set. */ public boolean hasNickname() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * The nickname of the user.
      *
@@ -1727,13 +1966,13 @@ public boolean hasNickname() {
      * 
* * optional string nickname = 8; + * * @return The nickname. */ public java.lang.String getNickname() { java.lang.Object ref = nickname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nickname_ = s; return s; @@ -1742,6 +1981,8 @@ public java.lang.String getNickname() { } } /** + * + * *
      * The nickname of the user.
      *
@@ -1750,15 +1991,14 @@ public java.lang.String getNickname() {
      * 
* * optional string nickname = 8; + * * @return The bytes for nickname. */ - public com.google.protobuf.ByteString - getNicknameBytes() { + public com.google.protobuf.ByteString getNicknameBytes() { java.lang.Object ref = nickname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nickname_ = b; return b; } else { @@ -1766,6 +2006,8 @@ public java.lang.String getNickname() { } } /** + * + * *
      * The nickname of the user.
      *
@@ -1774,18 +2016,22 @@ public java.lang.String getNickname() {
      * 
* * optional string nickname = 8; + * * @param value The nickname to set. * @return This builder for chaining. */ - public Builder setNickname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNickname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nickname_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
      * The nickname of the user.
      *
@@ -1794,6 +2040,7 @@ public Builder setNickname(
      * 
* * optional string nickname = 8; + * * @return This builder for chaining. */ public Builder clearNickname() { @@ -1803,6 +2050,8 @@ public Builder clearNickname() { return this; } /** + * + * *
      * The nickname of the user.
      *
@@ -1811,12 +2060,14 @@ public Builder clearNickname() {
      * 
* * optional string nickname = 8; + * * @param value The bytes for nickname to set. * @return This builder for chaining. */ - public Builder setNicknameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNicknameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nickname_ = value; bitField0_ |= 0x00000080; @@ -1824,8 +2075,10 @@ public Builder setNicknameBytes( return this; } - private boolean enableNotifications_ ; + private boolean enableNotifications_; /** + * + * *
      * Enables the receiving of notifications. The default is true if unset.
      *
@@ -1834,6 +2087,7 @@ public Builder setNicknameBytes(
      * 
* * optional bool enable_notifications = 9; + * * @return Whether the enableNotifications field is set. */ @java.lang.Override @@ -1841,6 +2095,8 @@ public boolean hasEnableNotifications() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Enables the receiving of notifications. The default is true if unset.
      *
@@ -1849,6 +2105,7 @@ public boolean hasEnableNotifications() {
      * 
* * optional bool enable_notifications = 9; + * * @return The enableNotifications. */ @java.lang.Override @@ -1856,6 +2113,8 @@ public boolean getEnableNotifications() { return enableNotifications_; } /** + * + * *
      * Enables the receiving of notifications. The default is true if unset.
      *
@@ -1864,6 +2123,7 @@ public boolean getEnableNotifications() {
      * 
* * optional bool enable_notifications = 9; + * * @param value The enableNotifications to set. * @return This builder for chaining. */ @@ -1875,6 +2135,8 @@ public Builder setEnableNotifications(boolean value) { return this; } /** + * + * *
      * Enables the receiving of notifications. The default is true if unset.
      *
@@ -1883,6 +2145,7 @@ public Builder setEnableNotifications(boolean value) {
      * 
* * optional bool enable_notifications = 9; + * * @return This builder for chaining. */ public Builder clearEnableNotifications() { @@ -1891,9 +2154,9 @@ public Builder clearEnableNotifications() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1903,12 +2166,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.User) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.User) private static final com.google.showcase.v1beta1.User DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.User(); } @@ -1917,27 +2180,27 @@ public static com.google.showcase.v1beta1.User getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public User parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public User parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1952,6 +2215,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.User getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java similarity index 100% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserOrBuilder.java similarity index 78% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserOrBuilder.java index a3f5da6a0d..448e1e73eb 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserOrBuilder.java @@ -1,166 +1,233 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/identity.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface UserOrBuilder extends +public interface UserOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.User) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the user.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the user.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The display_name of the user.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The display_name of the user.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The email address of the user.
    * 
* * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The email. */ java.lang.String getEmail(); /** + * + * *
    * The email address of the user.
    * 
* * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for email. */ - com.google.protobuf.ByteString - getEmailBytes(); + com.google.protobuf.ByteString getEmailBytes(); /** + * + * *
    * The timestamp at which the user was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The timestamp at which the user was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The timestamp at which the user was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The latest timestamp at which the user was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The latest timestamp at which the user was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The latest timestamp at which the user was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * The age of the user in years.
    * 
* * optional int32 age = 6; + * * @return Whether the age field is set. */ boolean hasAge(); /** + * + * *
    * The age of the user in years.
    * 
* * optional int32 age = 6; + * * @return The age. */ int getAge(); /** + * + * *
    * The height of the user in feet.
    * 
* * optional double height_feet = 7; + * * @return Whether the heightFeet field is set. */ boolean hasHeightFeet(); /** + * + * *
    * The height of the user in feet.
    * 
* * optional double height_feet = 7; + * * @return The heightFeet. */ double getHeightFeet(); /** + * + * *
    * The nickname of the user.
    *
@@ -169,10 +236,13 @@ public interface UserOrBuilder extends
    * 
* * optional string nickname = 8; + * * @return Whether the nickname field is set. */ boolean hasNickname(); /** + * + * *
    * The nickname of the user.
    *
@@ -181,10 +251,13 @@ public interface UserOrBuilder extends
    * 
* * optional string nickname = 8; + * * @return The nickname. */ java.lang.String getNickname(); /** + * + * *
    * The nickname of the user.
    *
@@ -193,12 +266,14 @@ public interface UserOrBuilder extends
    * 
* * optional string nickname = 8; + * * @return The bytes for nickname. */ - com.google.protobuf.ByteString - getNicknameBytes(); + com.google.protobuf.ByteString getNicknameBytes(); /** + * + * *
    * Enables the receiving of notifications. The default is true if unset.
    *
@@ -207,10 +282,13 @@ public interface UserOrBuilder extends
    * 
* * optional bool enable_notifications = 9; + * * @return Whether the enableNotifications field is set. */ boolean hasEnableNotifications(); /** + * + * *
    * Enables the receiving of notifications. The default is true if unset.
    *
@@ -219,6 +297,7 @@ public interface UserOrBuilder extends
    * 
* * optional bool enable_notifications = 9; + * * @return The enableNotifications. */ boolean getEnableNotifications(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequest.java similarity index 70% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequest.java index 177fc45f74..c36e7a3c3a 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequest.java @@ -1,21 +1,35 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -/** - * Protobuf type {@code google.showcase.v1beta1.VerifyTestRequest} - */ -public final class VerifyTestRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.showcase.v1beta1.VerifyTestRequest} */ +public final class VerifyTestRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.VerifyTestRequest) VerifyTestRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VerifyTestRequest.newBuilder() to construct. private VerifyTestRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VerifyTestRequest() { name_ = ""; answer_ = com.google.protobuf.ByteString.EMPTY; @@ -24,33 +38,38 @@ private VerifyTestRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VerifyTestRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_VerifyTestRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestRequest_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_VerifyTestRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.VerifyTestRequest.class, com.google.showcase.v1beta1.VerifyTestRequest.Builder.class); + com.google.showcase.v1beta1.VerifyTestRequest.class, + com.google.showcase.v1beta1.VerifyTestRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The test to have an answer registered to it.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -59,29 +78,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The test to have an answer registered to it.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -92,11 +111,14 @@ public java.lang.String getName() { public static final int ANSWER_FIELD_NUMBER = 2; private com.google.protobuf.ByteString answer_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * The answer from the test.
    * 
* * bytes answer = 2; + * * @return The answer. */ @java.lang.Override @@ -105,39 +127,48 @@ public com.google.protobuf.ByteString getAnswer() { } public static final int ANSWERS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.Internal.ProtobufList answers_ = emptyList(com.google.protobuf.ByteString.class); /** + * + * *
    * The answers from the test if multiple are to be checked
    * 
* * repeated bytes answers = 3; + * * @return A list containing the answers. */ @java.lang.Override - public java.util.List - getAnswersList() { + public java.util.List getAnswersList() { return answers_; } /** + * + * *
    * The answers from the test if multiple are to be checked
    * 
* * repeated bytes answers = 3; + * * @return The count of answers. */ public int getAnswersCount() { return answers_.size(); } /** + * + * *
    * The answers from the test if multiple are to be checked
    * 
* * repeated bytes answers = 3; + * * @param index The index of the element to return. * @return The answers at the given index. */ @@ -146,6 +177,7 @@ public com.google.protobuf.ByteString getAnswers(int index) { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +189,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -181,14 +212,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!answer_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, answer_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, answer_); } { int dataSize = 0; for (int i = 0; i < answers_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(answers_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(answers_.get(i)); } size += dataSize; size += 1 * getAnswersList().size(); @@ -201,19 +230,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.VerifyTestRequest)) { return super.equals(obj); } - com.google.showcase.v1beta1.VerifyTestRequest other = (com.google.showcase.v1beta1.VerifyTestRequest) obj; + com.google.showcase.v1beta1.VerifyTestRequest other = + (com.google.showcase.v1beta1.VerifyTestRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getAnswer() - .equals(other.getAnswer())) return false; - if (!getAnswersList() - .equals(other.getAnswersList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getAnswer().equals(other.getAnswer())) return false; + if (!getAnswersList().equals(other.getAnswersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,128 +265,128 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.VerifyTestRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.VerifyTestRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.VerifyTestRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.VerifyTestRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.VerifyTestRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.VerifyTestRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.VerifyTestRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.VerifyTestRequest) com.google.showcase.v1beta1.VerifyTestRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_VerifyTestRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestRequest_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_VerifyTestRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.VerifyTestRequest.class, com.google.showcase.v1beta1.VerifyTestRequest.Builder.class); + com.google.showcase.v1beta1.VerifyTestRequest.class, + com.google.showcase.v1beta1.VerifyTestRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.VerifyTestRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -371,9 +398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_VerifyTestRequest_descriptor; } @java.lang.Override @@ -392,8 +419,11 @@ public com.google.showcase.v1beta1.VerifyTestRequest build() { @java.lang.Override public com.google.showcase.v1beta1.VerifyTestRequest buildPartial() { - com.google.showcase.v1beta1.VerifyTestRequest result = new com.google.showcase.v1beta1.VerifyTestRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.VerifyTestRequest result = + new com.google.showcase.v1beta1.VerifyTestRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -416,38 +446,39 @@ private void buildPartial0(com.google.showcase.v1beta1.VerifyTestRequest result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.VerifyTestRequest) { - return mergeFrom((com.google.showcase.v1beta1.VerifyTestRequest)other); + return mergeFrom((com.google.showcase.v1beta1.VerifyTestRequest) other); } else { super.mergeFrom(other); return this; @@ -501,28 +532,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - answer_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.protobuf.ByteString v = input.readBytes(); - ensureAnswersIsMutable(); - answers_.add(v); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + answer_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.protobuf.ByteString v = input.readBytes(); + ensureAnswersIsMutable(); + answers_.add(v); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -532,22 +567,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The test to have an answer registered to it.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -556,20 +594,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The test to have an answer registered to it.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -577,28 +616,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The test to have an answer registered to it.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The test to have an answer registered to it.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { @@ -608,17 +654,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The test to have an answer registered to it.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -628,11 +678,14 @@ public Builder setNameBytes( private com.google.protobuf.ByteString answer_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * The answer from the test.
      * 
* * bytes answer = 2; + * * @return The answer. */ @java.lang.Override @@ -640,27 +693,35 @@ public com.google.protobuf.ByteString getAnswer() { return answer_; } /** + * + * *
      * The answer from the test.
      * 
* * bytes answer = 2; + * * @param value The answer to set. * @return This builder for chaining. */ public Builder setAnswer(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } answer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The answer from the test.
      * 
* * bytes answer = 2; + * * @return This builder for chaining. */ public Builder clearAnswer() { @@ -670,7 +731,9 @@ public Builder clearAnswer() { return this; } - private com.google.protobuf.Internal.ProtobufList answers_ = emptyList(com.google.protobuf.ByteString.class); + private com.google.protobuf.Internal.ProtobufList answers_ = + emptyList(com.google.protobuf.ByteString.class); + private void ensureAnswersIsMutable() { if (!answers_.isModifiable()) { answers_ = makeMutableCopy(answers_); @@ -678,35 +741,43 @@ private void ensureAnswersIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * The answers from the test if multiple are to be checked
      * 
* * repeated bytes answers = 3; + * * @return A list containing the answers. */ - public java.util.List - getAnswersList() { + public java.util.List getAnswersList() { answers_.makeImmutable(); return answers_; } /** + * + * *
      * The answers from the test if multiple are to be checked
      * 
* * repeated bytes answers = 3; + * * @return The count of answers. */ public int getAnswersCount() { return answers_.size(); } /** + * + * *
      * The answers from the test if multiple are to be checked
      * 
* * repeated bytes answers = 3; + * * @param index The index of the element to return. * @return The answers at the given index. */ @@ -714,18 +785,22 @@ public com.google.protobuf.ByteString getAnswers(int index) { return answers_.get(index); } /** + * + * *
      * The answers from the test if multiple are to be checked
      * 
* * repeated bytes answers = 3; + * * @param index The index to set the value at. * @param value The answers to set. * @return This builder for chaining. */ - public Builder setAnswers( - int index, com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAnswers(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } ensureAnswersIsMutable(); answers_.set(index, value); bitField0_ |= 0x00000004; @@ -733,16 +808,21 @@ public Builder setAnswers( return this; } /** + * + * *
      * The answers from the test if multiple are to be checked
      * 
* * repeated bytes answers = 3; + * * @param value The answers to add. * @return This builder for chaining. */ public Builder addAnswers(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } ensureAnswersIsMutable(); answers_.add(value); bitField0_ |= 0x00000004; @@ -750,29 +830,34 @@ public Builder addAnswers(com.google.protobuf.ByteString value) { return this; } /** + * + * *
      * The answers from the test if multiple are to be checked
      * 
* * repeated bytes answers = 3; + * * @param values The answers to add. * @return This builder for chaining. */ public Builder addAllAnswers( java.lang.Iterable values) { ensureAnswersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, answers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, answers_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The answers from the test if multiple are to be checked
      * 
* * repeated bytes answers = 3; + * * @return This builder for chaining. */ public Builder clearAnswers() { @@ -781,9 +866,9 @@ public Builder clearAnswers() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -793,12 +878,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.VerifyTestRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.VerifyTestRequest) private static final com.google.showcase.v1beta1.VerifyTestRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.VerifyTestRequest(); } @@ -807,27 +892,27 @@ public static com.google.showcase.v1beta1.VerifyTestRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerifyTestRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyTestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -842,6 +927,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.VerifyTestRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequestOrBuilder.java similarity index 68% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequestOrBuilder.java index 1be604a22e..5ea48ebeae 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestRequestOrBuilder.java @@ -1,67 +1,100 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface VerifyTestRequestOrBuilder extends +public interface VerifyTestRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.VerifyTestRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The test to have an answer registered to it.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The test to have an answer registered to it.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The answer from the test.
    * 
* * bytes answer = 2; + * * @return The answer. */ com.google.protobuf.ByteString getAnswer(); /** + * + * *
    * The answers from the test if multiple are to be checked
    * 
* * repeated bytes answers = 3; + * * @return A list containing the answers. */ java.util.List getAnswersList(); /** + * + * *
    * The answers from the test if multiple are to be checked
    * 
* * repeated bytes answers = 3; + * * @return The count of answers. */ int getAnswersCount(); /** + * + * *
    * The answers from the test if multiple are to be checked
    * 
* * repeated bytes answers = 3; + * * @param index The index of the element to return. * @return The answers at the given index. */ diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponse.java similarity index 67% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponse.java index f82f055846..c4b53add9c 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponse.java @@ -1,53 +1,70 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -/** - * Protobuf type {@code google.showcase.v1beta1.VerifyTestResponse} - */ -public final class VerifyTestResponse extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.showcase.v1beta1.VerifyTestResponse} */ +public final class VerifyTestResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.VerifyTestResponse) VerifyTestResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VerifyTestResponse.newBuilder() to construct. private VerifyTestResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VerifyTestResponse() { - } + + private VerifyTestResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VerifyTestResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_VerifyTestResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestResponse_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_VerifyTestResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.VerifyTestResponse.class, com.google.showcase.v1beta1.VerifyTestResponse.Builder.class); + com.google.showcase.v1beta1.VerifyTestResponse.class, + com.google.showcase.v1beta1.VerifyTestResponse.Builder.class); } private int bitField0_; public static final int ISSUE_FIELD_NUMBER = 1; private com.google.showcase.v1beta1.Issue issue_; /** + * + * *
    * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
    * 
* * .google.showcase.v1beta1.Issue issue = 1; + * * @return Whether the issue field is set. */ @java.lang.Override @@ -55,11 +72,14 @@ public boolean hasIssue() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
    * 
* * .google.showcase.v1beta1.Issue issue = 1; + * * @return The issue. */ @java.lang.Override @@ -67,6 +87,8 @@ public com.google.showcase.v1beta1.Issue getIssue() { return issue_ == null ? com.google.showcase.v1beta1.Issue.getDefaultInstance() : issue_; } /** + * + * *
    * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
    * 
@@ -79,6 +101,7 @@ public com.google.showcase.v1beta1.IssueOrBuilder getIssueOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -90,8 +113,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getIssue()); } @@ -105,8 +127,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getIssue()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIssue()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -116,17 +137,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.VerifyTestResponse)) { return super.equals(obj); } - com.google.showcase.v1beta1.VerifyTestResponse other = (com.google.showcase.v1beta1.VerifyTestResponse) obj; + com.google.showcase.v1beta1.VerifyTestResponse other = + (com.google.showcase.v1beta1.VerifyTestResponse) obj; if (hasIssue() != other.hasIssue()) return false; if (hasIssue()) { - if (!getIssue() - .equals(other.getIssue())) return false; + if (!getIssue().equals(other.getIssue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -148,116 +169,119 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.VerifyTestResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.VerifyTestResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.VerifyTestResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.VerifyTestResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.VerifyTestResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.showcase.v1beta1.VerifyTestResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.showcase.v1beta1.VerifyTestResponse} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.VerifyTestResponse) com.google.showcase.v1beta1.VerifyTestResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_VerifyTestResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestResponse_fieldAccessorTable + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_VerifyTestResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.VerifyTestResponse.class, com.google.showcase.v1beta1.VerifyTestResponse.Builder.class); + com.google.showcase.v1beta1.VerifyTestResponse.class, + com.google.showcase.v1beta1.VerifyTestResponse.Builder.class); } // Construct using com.google.showcase.v1beta1.VerifyTestResponse.newBuilder() @@ -265,17 +289,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getIssueFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +313,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.TestingOuterClass.internal_static_google_showcase_v1beta1_VerifyTestResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.TestingOuterClass + .internal_static_google_showcase_v1beta1_VerifyTestResponse_descriptor; } @java.lang.Override @@ -310,8 +334,11 @@ public com.google.showcase.v1beta1.VerifyTestResponse build() { @java.lang.Override public com.google.showcase.v1beta1.VerifyTestResponse buildPartial() { - com.google.showcase.v1beta1.VerifyTestResponse result = new com.google.showcase.v1beta1.VerifyTestResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.VerifyTestResponse result = + new com.google.showcase.v1beta1.VerifyTestResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -320,9 +347,7 @@ private void buildPartial0(com.google.showcase.v1beta1.VerifyTestResponse result int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.issue_ = issueBuilder_ == null - ? issue_ - : issueBuilder_.build(); + result.issue_ = issueBuilder_ == null ? issue_ : issueBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -332,38 +357,39 @@ private void buildPartial0(com.google.showcase.v1beta1.VerifyTestResponse result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.VerifyTestResponse) { - return mergeFrom((com.google.showcase.v1beta1.VerifyTestResponse)other); + return mergeFrom((com.google.showcase.v1beta1.VerifyTestResponse) other); } else { super.mergeFrom(other); return this; @@ -401,19 +427,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getIssueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getIssueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,28 +449,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.showcase.v1beta1.Issue issue_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Issue, com.google.showcase.v1beta1.Issue.Builder, com.google.showcase.v1beta1.IssueOrBuilder> issueBuilder_; + com.google.showcase.v1beta1.Issue, + com.google.showcase.v1beta1.Issue.Builder, + com.google.showcase.v1beta1.IssueOrBuilder> + issueBuilder_; /** + * + * *
      * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
      * 
* * .google.showcase.v1beta1.Issue issue = 1; + * * @return Whether the issue field is set. */ public boolean hasIssue() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
      * 
* * .google.showcase.v1beta1.Issue issue = 1; + * * @return The issue. */ public com.google.showcase.v1beta1.Issue getIssue() { @@ -455,6 +491,8 @@ public com.google.showcase.v1beta1.Issue getIssue() { } } /** + * + * *
      * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
      * 
@@ -475,14 +513,15 @@ public Builder setIssue(com.google.showcase.v1beta1.Issue value) { return this; } /** + * + * *
      * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
      * 
* * .google.showcase.v1beta1.Issue issue = 1; */ - public Builder setIssue( - com.google.showcase.v1beta1.Issue.Builder builderForValue) { + public Builder setIssue(com.google.showcase.v1beta1.Issue.Builder builderForValue) { if (issueBuilder_ == null) { issue_ = builderForValue.build(); } else { @@ -493,6 +532,8 @@ public Builder setIssue( return this; } /** + * + * *
      * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
      * 
@@ -501,9 +542,9 @@ public Builder setIssue( */ public Builder mergeIssue(com.google.showcase.v1beta1.Issue value) { if (issueBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - issue_ != null && - issue_ != com.google.showcase.v1beta1.Issue.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && issue_ != null + && issue_ != com.google.showcase.v1beta1.Issue.getDefaultInstance()) { getIssueBuilder().mergeFrom(value); } else { issue_ = value; @@ -518,6 +559,8 @@ public Builder mergeIssue(com.google.showcase.v1beta1.Issue value) { return this; } /** + * + * *
      * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
      * 
@@ -535,6 +578,8 @@ public Builder clearIssue() { return this; } /** + * + * *
      * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
      * 
@@ -547,6 +592,8 @@ public com.google.showcase.v1beta1.Issue.Builder getIssueBuilder() { return getIssueFieldBuilder().getBuilder(); } /** + * + * *
      * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
      * 
@@ -557,11 +604,12 @@ public com.google.showcase.v1beta1.IssueOrBuilder getIssueOrBuilder() { if (issueBuilder_ != null) { return issueBuilder_.getMessageOrBuilder(); } else { - return issue_ == null ? - com.google.showcase.v1beta1.Issue.getDefaultInstance() : issue_; + return issue_ == null ? com.google.showcase.v1beta1.Issue.getDefaultInstance() : issue_; } } /** + * + * *
      * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
      * 
@@ -569,21 +617,24 @@ public com.google.showcase.v1beta1.IssueOrBuilder getIssueOrBuilder() { * .google.showcase.v1beta1.Issue issue = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Issue, com.google.showcase.v1beta1.Issue.Builder, com.google.showcase.v1beta1.IssueOrBuilder> + com.google.showcase.v1beta1.Issue, + com.google.showcase.v1beta1.Issue.Builder, + com.google.showcase.v1beta1.IssueOrBuilder> getIssueFieldBuilder() { if (issueBuilder_ == null) { - issueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.Issue, com.google.showcase.v1beta1.Issue.Builder, com.google.showcase.v1beta1.IssueOrBuilder>( - getIssue(), - getParentForChildren(), - isClean()); + issueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.Issue, + com.google.showcase.v1beta1.Issue.Builder, + com.google.showcase.v1beta1.IssueOrBuilder>( + getIssue(), getParentForChildren(), isClean()); issue_ = null; } return issueBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -593,12 +644,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.VerifyTestResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.VerifyTestResponse) private static final com.google.showcase.v1beta1.VerifyTestResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.VerifyTestResponse(); } @@ -607,27 +658,27 @@ public static com.google.showcase.v1beta1.VerifyTestResponse getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerifyTestResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyTestResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -642,6 +693,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.VerifyTestResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponseOrBuilder.java similarity index 61% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponseOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponseOrBuilder.java index 55d3a7d822..dfbc105424 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponseOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/VerifyTestResponseOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/testing.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface VerifyTestResponseOrBuilder extends +public interface VerifyTestResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.VerifyTestResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
    * 
* * .google.showcase.v1beta1.Issue issue = 1; + * * @return Whether the issue field is set. */ boolean hasIssue(); /** + * + * *
    * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
    * 
* * .google.showcase.v1beta1.Issue issue = 1; + * * @return The issue. */ com.google.showcase.v1beta1.Issue getIssue(); /** + * + * *
    * An issue if check answer was unsuccessful. This will be empty if the check answer succeeded.
    * 
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadata.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadata.java similarity index 67% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadata.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadata.java index 6b67c9115d..b5ab1d8482 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadata.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadata.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto @@ -5,53 +20,59 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The metadata for Wait operation.
  * 
* * Protobuf type {@code google.showcase.v1beta1.WaitMetadata} */ -public final class WaitMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WaitMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.WaitMetadata) WaitMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WaitMetadata.newBuilder() to construct. private WaitMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WaitMetadata() { - } + + private WaitMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WaitMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_WaitMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitMetadata_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_WaitMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.WaitMetadata.class, com.google.showcase.v1beta1.WaitMetadata.Builder.class); + com.google.showcase.v1beta1.WaitMetadata.class, + com.google.showcase.v1beta1.WaitMetadata.Builder.class); } private int bitField0_; public static final int END_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time that this operation will complete.
    * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -59,11 +80,14 @@ public boolean hasEndTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The time that this operation will complete.
    * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return The endTime. */ @java.lang.Override @@ -71,6 +95,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time that this operation will complete.
    * 
@@ -83,6 +109,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -94,8 +121,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getEndTime()); } @@ -109,8 +135,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEndTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -120,7 +145,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.WaitMetadata)) { return super.equals(obj); @@ -129,8 +154,7 @@ public boolean equals(final java.lang.Object obj) { if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -152,120 +176,127 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.WaitMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.WaitMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.WaitMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.WaitMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.WaitMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.WaitMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.WaitMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.WaitMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.WaitMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.WaitMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.WaitMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.WaitMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.WaitMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.WaitMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.WaitMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The metadata for Wait operation.
    * 
* * Protobuf type {@code google.showcase.v1beta1.WaitMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.WaitMetadata) com.google.showcase.v1beta1.WaitMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_WaitMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitMetadata_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_WaitMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.WaitMetadata.class, com.google.showcase.v1beta1.WaitMetadata.Builder.class); + com.google.showcase.v1beta1.WaitMetadata.class, + com.google.showcase.v1beta1.WaitMetadata.Builder.class); } // Construct using com.google.showcase.v1beta1.WaitMetadata.newBuilder() @@ -273,17 +304,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getEndTimeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -297,9 +328,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_WaitMetadata_descriptor; } @java.lang.Override @@ -318,8 +349,11 @@ public com.google.showcase.v1beta1.WaitMetadata build() { @java.lang.Override public com.google.showcase.v1beta1.WaitMetadata buildPartial() { - com.google.showcase.v1beta1.WaitMetadata result = new com.google.showcase.v1beta1.WaitMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.WaitMetadata result = + new com.google.showcase.v1beta1.WaitMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -328,9 +362,7 @@ private void buildPartial0(com.google.showcase.v1beta1.WaitMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -340,38 +372,39 @@ private void buildPartial0(com.google.showcase.v1beta1.WaitMetadata result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.WaitMetadata) { - return mergeFrom((com.google.showcase.v1beta1.WaitMetadata)other); + return mergeFrom((com.google.showcase.v1beta1.WaitMetadata) other); } else { super.mergeFrom(other); return this; @@ -409,19 +442,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -431,28 +464,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time that this operation will complete.
      * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The time that this operation will complete.
      * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -463,6 +506,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time that this operation will complete.
      * 
@@ -483,14 +528,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time that this operation will complete.
      * 
* * .google.protobuf.Timestamp end_time = 1; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -501,6 +547,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The time that this operation will complete.
      * 
@@ -509,9 +557,9 @@ public Builder setEndTime( */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -526,6 +574,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time that this operation will complete.
      * 
@@ -543,6 +593,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The time that this operation will complete.
      * 
@@ -555,6 +607,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time that this operation will complete.
      * 
@@ -565,11 +619,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * The time that this operation will complete.
      * 
@@ -577,21 +632,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -601,12 +659,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.WaitMetadata) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.WaitMetadata) private static final com.google.showcase.v1beta1.WaitMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.WaitMetadata(); } @@ -615,27 +673,27 @@ public static com.google.showcase.v1beta1.WaitMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WaitMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WaitMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,6 +708,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.WaitMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadataOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadataOrBuilder.java similarity index 58% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadataOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadataOrBuilder.java index 47fc126ab7..80e7e72ef6 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadataOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitMetadataOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface WaitMetadataOrBuilder extends +public interface WaitMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.WaitMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time that this operation will complete.
    * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time that this operation will complete.
    * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time that this operation will complete.
    * 
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequest.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequest.java similarity index 72% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequest.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequest.java index 90b4646743..41da11f7ef 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequest.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto @@ -5,54 +20,61 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The request for Wait method.
  * 
* * Protobuf type {@code google.showcase.v1beta1.WaitRequest} */ -public final class WaitRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WaitRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.WaitRequest) WaitRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WaitRequest.newBuilder() to construct. private WaitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WaitRequest() { - } + + private WaitRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WaitRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_WaitRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitRequest_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_WaitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.WaitRequest.class, com.google.showcase.v1beta1.WaitRequest.Builder.class); + com.google.showcase.v1beta1.WaitRequest.class, + com.google.showcase.v1beta1.WaitRequest.Builder.class); } private int endCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object end_; + public enum EndCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { END_TIME(1), TTL(4), END_NOT_SET(0); private final int value; + private EndCase(int value) { this.value = value; } @@ -68,33 +90,40 @@ public static EndCase valueOf(int value) { public static EndCase forNumber(int value) { switch (value) { - case 1: return END_TIME; - case 4: return TTL; - case 0: return END_NOT_SET; - default: return null; + case 1: + return END_TIME; + case 4: + return TTL; + case 0: + return END_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public EndCase - getEndCase() { - return EndCase.forNumber( - endCase_); + public EndCase getEndCase() { + return EndCase.forNumber(endCase_); } private int responseCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object response_; + public enum ResponseCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ERROR(2), SUCCESS(3), RESPONSE_NOT_SET(0); private final int value; + private ResponseCase(int value) { this.value = value; } @@ -110,30 +139,36 @@ public static ResponseCase valueOf(int value) { public static ResponseCase forNumber(int value) { switch (value) { - case 2: return ERROR; - case 3: return SUCCESS; - case 0: return RESPONSE_NOT_SET; - default: return null; + case 2: + return ERROR; + case 3: + return SUCCESS; + case 0: + return RESPONSE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ResponseCase - getResponseCase() { - return ResponseCase.forNumber( - responseCase_); + public ResponseCase getResponseCase() { + return ResponseCase.forNumber(responseCase_); } public static final int END_TIME_FIELD_NUMBER = 1; /** + * + * *
    * The time that this operation will complete.
    * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -141,21 +176,26 @@ public boolean hasEndTime() { return endCase_ == 1; } /** + * + * *
    * The time that this operation will complete.
    * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return The endTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEndTime() { if (endCase_ == 1) { - return (com.google.protobuf.Timestamp) end_; + return (com.google.protobuf.Timestamp) end_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
    * The time that this operation will complete.
    * 
@@ -165,18 +205,21 @@ public com.google.protobuf.Timestamp getEndTime() { @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endCase_ == 1) { - return (com.google.protobuf.Timestamp) end_; + return (com.google.protobuf.Timestamp) end_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } public static final int TTL_FIELD_NUMBER = 4; /** + * + * *
    * The duration of this operation.
    * 
* * .google.protobuf.Duration ttl = 4; + * * @return Whether the ttl field is set. */ @java.lang.Override @@ -184,21 +227,26 @@ public boolean hasTtl() { return endCase_ == 4; } /** + * + * *
    * The duration of this operation.
    * 
* * .google.protobuf.Duration ttl = 4; + * * @return The ttl. */ @java.lang.Override public com.google.protobuf.Duration getTtl() { if (endCase_ == 4) { - return (com.google.protobuf.Duration) end_; + return (com.google.protobuf.Duration) end_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** + * + * *
    * The duration of this operation.
    * 
@@ -208,19 +256,22 @@ public com.google.protobuf.Duration getTtl() { @java.lang.Override public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { if (endCase_ == 4) { - return (com.google.protobuf.Duration) end_; + return (com.google.protobuf.Duration) end_; } return com.google.protobuf.Duration.getDefaultInstance(); } public static final int ERROR_FIELD_NUMBER = 2; /** + * + * *
    * The error that will be returned by the server. If this code is specified
    * to be the OK rpc code, an empty response will be returned.
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ @java.lang.Override @@ -228,22 +279,27 @@ public boolean hasError() { return responseCase_ == 2; } /** + * + * *
    * The error that will be returned by the server. If this code is specified
    * to be the OK rpc code, an empty response will be returned.
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ @java.lang.Override public com.google.rpc.Status getError() { if (responseCase_ == 2) { - return (com.google.rpc.Status) response_; + return (com.google.rpc.Status) response_; } return com.google.rpc.Status.getDefaultInstance(); } /** + * + * *
    * The error that will be returned by the server. If this code is specified
    * to be the OK rpc code, an empty response will be returned.
@@ -254,18 +310,21 @@ public com.google.rpc.Status getError() {
   @java.lang.Override
   public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
     if (responseCase_ == 2) {
-       return (com.google.rpc.Status) response_;
+      return (com.google.rpc.Status) response_;
     }
     return com.google.rpc.Status.getDefaultInstance();
   }
 
   public static final int SUCCESS_FIELD_NUMBER = 3;
   /**
+   *
+   *
    * 
    * The response to be returned on operation completion.
    * 
* * .google.showcase.v1beta1.WaitResponse success = 3; + * * @return Whether the success field is set. */ @java.lang.Override @@ -273,21 +332,26 @@ public boolean hasSuccess() { return responseCase_ == 3; } /** + * + * *
    * The response to be returned on operation completion.
    * 
* * .google.showcase.v1beta1.WaitResponse success = 3; + * * @return The success. */ @java.lang.Override public com.google.showcase.v1beta1.WaitResponse getSuccess() { if (responseCase_ == 3) { - return (com.google.showcase.v1beta1.WaitResponse) response_; + return (com.google.showcase.v1beta1.WaitResponse) response_; } return com.google.showcase.v1beta1.WaitResponse.getDefaultInstance(); } /** + * + * *
    * The response to be returned on operation completion.
    * 
@@ -297,12 +361,13 @@ public com.google.showcase.v1beta1.WaitResponse getSuccess() { @java.lang.Override public com.google.showcase.v1beta1.WaitResponseOrBuilder getSuccessOrBuilder() { if (responseCase_ == 3) { - return (com.google.showcase.v1beta1.WaitResponse) response_; + return (com.google.showcase.v1beta1.WaitResponse) response_; } return com.google.showcase.v1beta1.WaitResponse.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -314,8 +379,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (endCase_ == 1) { output.writeMessage(1, (com.google.protobuf.Timestamp) end_); } @@ -338,20 +402,24 @@ public int getSerializedSize() { size = 0; if (endCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.protobuf.Timestamp) end_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.protobuf.Timestamp) end_); } if (responseCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.rpc.Status) response_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.rpc.Status) response_); } if (responseCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.showcase.v1beta1.WaitResponse) response_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.showcase.v1beta1.WaitResponse) response_); } if (endCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.protobuf.Duration) end_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.protobuf.Duration) end_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -361,7 +429,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.WaitRequest)) { return super.equals(obj); @@ -371,12 +439,10 @@ public boolean equals(final java.lang.Object obj) { if (!getEndCase().equals(other.getEndCase())) return false; switch (endCase_) { case 1: - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; break; case 4: - if (!getTtl() - .equals(other.getTtl())) return false; + if (!getTtl().equals(other.getTtl())) return false; break; case 0: default: @@ -384,12 +450,10 @@ public boolean equals(final java.lang.Object obj) { if (!getResponseCase().equals(other.getResponseCase())) return false; switch (responseCase_) { case 2: - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; break; case 3: - if (!getSuccess() - .equals(other.getSuccess())) return false; + if (!getSuccess().equals(other.getSuccess())) return false; break; case 0: default: @@ -434,132 +498,136 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.WaitRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.WaitRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.WaitRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.WaitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.WaitRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.WaitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.WaitRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.WaitRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.WaitRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.WaitRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.WaitRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.WaitRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.WaitRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.WaitRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.WaitRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for Wait method.
    * 
* * Protobuf type {@code google.showcase.v1beta1.WaitRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.WaitRequest) com.google.showcase.v1beta1.WaitRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_WaitRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitRequest_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_WaitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.WaitRequest.class, com.google.showcase.v1beta1.WaitRequest.Builder.class); + com.google.showcase.v1beta1.WaitRequest.class, + com.google.showcase.v1beta1.WaitRequest.Builder.class); } // Construct using com.google.showcase.v1beta1.WaitRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -584,9 +652,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_WaitRequest_descriptor; } @java.lang.Override @@ -605,8 +673,11 @@ public com.google.showcase.v1beta1.WaitRequest build() { @java.lang.Override public com.google.showcase.v1beta1.WaitRequest buildPartial() { - com.google.showcase.v1beta1.WaitRequest result = new com.google.showcase.v1beta1.WaitRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.WaitRequest result = + new com.google.showcase.v1beta1.WaitRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -619,22 +690,18 @@ private void buildPartial0(com.google.showcase.v1beta1.WaitRequest result) { private void buildPartialOneofs(com.google.showcase.v1beta1.WaitRequest result) { result.endCase_ = endCase_; result.end_ = this.end_; - if (endCase_ == 1 && - endTimeBuilder_ != null) { + if (endCase_ == 1 && endTimeBuilder_ != null) { result.end_ = endTimeBuilder_.build(); } - if (endCase_ == 4 && - ttlBuilder_ != null) { + if (endCase_ == 4 && ttlBuilder_ != null) { result.end_ = ttlBuilder_.build(); } result.responseCase_ = responseCase_; result.response_ = this.response_; - if (responseCase_ == 2 && - errorBuilder_ != null) { + if (responseCase_ == 2 && errorBuilder_ != null) { result.response_ = errorBuilder_.build(); } - if (responseCase_ == 3 && - successBuilder_ != null) { + if (responseCase_ == 3 && successBuilder_ != null) { result.response_ = successBuilder_.build(); } } @@ -643,38 +710,39 @@ private void buildPartialOneofs(com.google.showcase.v1beta1.WaitRequest result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.WaitRequest) { - return mergeFrom((com.google.showcase.v1beta1.WaitRequest)other); + return mergeFrom((com.google.showcase.v1beta1.WaitRequest) other); } else { super.mergeFrom(other); return this; @@ -684,30 +752,36 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.showcase.v1beta1.WaitRequest other) { if (other == com.google.showcase.v1beta1.WaitRequest.getDefaultInstance()) return this; switch (other.getEndCase()) { - case END_TIME: { - mergeEndTime(other.getEndTime()); - break; - } - case TTL: { - mergeTtl(other.getTtl()); - break; - } - case END_NOT_SET: { - break; - } + case END_TIME: + { + mergeEndTime(other.getEndTime()); + break; + } + case TTL: + { + mergeTtl(other.getTtl()); + break; + } + case END_NOT_SET: + { + break; + } } switch (other.getResponseCase()) { - case ERROR: { - mergeError(other.getError()); - break; - } - case SUCCESS: { - mergeSuccess(other.getSuccess()); - break; - } - case RESPONSE_NOT_SET: { - break; - } + case ERROR: + { + mergeError(other.getError()); + break; + } + case SUCCESS: + { + mergeSuccess(other.getSuccess()); + break; + } + case RESPONSE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -735,40 +809,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - endCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getErrorFieldBuilder().getBuilder(), - extensionRegistry); - responseCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getSuccessFieldBuilder().getBuilder(), - extensionRegistry); - responseCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getTtlFieldBuilder().getBuilder(), - extensionRegistry); - endCase_ = 4; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + endCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getSuccessFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getTtlFieldBuilder().getBuilder(), extensionRegistry); + endCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -778,12 +849,12 @@ public Builder mergeFrom( } // finally return this; } + private int endCase_ = 0; private java.lang.Object end_; - public EndCase - getEndCase() { - return EndCase.forNumber( - endCase_); + + public EndCase getEndCase() { + return EndCase.forNumber(endCase_); } public Builder clearEnd() { @@ -795,10 +866,9 @@ public Builder clearEnd() { private int responseCase_ = 0; private java.lang.Object response_; - public ResponseCase - getResponseCase() { - return ResponseCase.forNumber( - responseCase_); + + public ResponseCase getResponseCase() { + return ResponseCase.forNumber(responseCase_); } public Builder clearResponse() { @@ -811,13 +881,19 @@ public Builder clearResponse() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time that this operation will complete.
      * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -825,11 +901,14 @@ public boolean hasEndTime() { return endCase_ == 1; } /** + * + * *
      * The time that this operation will complete.
      * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return The endTime. */ @java.lang.Override @@ -847,6 +926,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time that this operation will complete.
      * 
@@ -867,14 +948,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time that this operation will complete.
      * 
* * .google.protobuf.Timestamp end_time = 1; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { end_ = builderForValue.build(); onChanged(); @@ -885,6 +967,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The time that this operation will complete.
      * 
@@ -893,10 +977,11 @@ public Builder setEndTime( */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endCase_ == 1 && - end_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - end_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) end_) - .mergeFrom(value).buildPartial(); + if (endCase_ == 1 && end_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + end_ = + com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) end_) + .mergeFrom(value) + .buildPartial(); } else { end_ = value; } @@ -912,6 +997,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time that this operation will complete.
      * 
@@ -935,6 +1022,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The time that this operation will complete.
      * 
@@ -945,6 +1034,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time that this operation will complete.
      * 
@@ -963,6 +1054,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } } /** + * + * *
      * The time that this operation will complete.
      * 
@@ -970,17 +1063,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { if (!(endCase_ == 1)) { end_ = com.google.protobuf.Timestamp.getDefaultInstance(); } - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) end_, - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) end_, getParentForChildren(), isClean()); end_ = null; } endCase_ = 1; @@ -989,13 +1085,19 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + ttlBuilder_; /** + * + * *
      * The duration of this operation.
      * 
* * .google.protobuf.Duration ttl = 4; + * * @return Whether the ttl field is set. */ @java.lang.Override @@ -1003,11 +1105,14 @@ public boolean hasTtl() { return endCase_ == 4; } /** + * + * *
      * The duration of this operation.
      * 
* * .google.protobuf.Duration ttl = 4; + * * @return The ttl. */ @java.lang.Override @@ -1025,6 +1130,8 @@ public com.google.protobuf.Duration getTtl() { } } /** + * + * *
      * The duration of this operation.
      * 
@@ -1045,14 +1152,15 @@ public Builder setTtl(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * The duration of this operation.
      * 
* * .google.protobuf.Duration ttl = 4; */ - public Builder setTtl( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { if (ttlBuilder_ == null) { end_ = builderForValue.build(); onChanged(); @@ -1063,6 +1171,8 @@ public Builder setTtl( return this; } /** + * + * *
      * The duration of this operation.
      * 
@@ -1071,10 +1181,11 @@ public Builder setTtl( */ public Builder mergeTtl(com.google.protobuf.Duration value) { if (ttlBuilder_ == null) { - if (endCase_ == 4 && - end_ != com.google.protobuf.Duration.getDefaultInstance()) { - end_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) end_) - .mergeFrom(value).buildPartial(); + if (endCase_ == 4 && end_ != com.google.protobuf.Duration.getDefaultInstance()) { + end_ = + com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) end_) + .mergeFrom(value) + .buildPartial(); } else { end_ = value; } @@ -1090,6 +1201,8 @@ public Builder mergeTtl(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * The duration of this operation.
      * 
@@ -1113,6 +1226,8 @@ public Builder clearTtl() { return this; } /** + * + * *
      * The duration of this operation.
      * 
@@ -1123,6 +1238,8 @@ public com.google.protobuf.Duration.Builder getTtlBuilder() { return getTtlFieldBuilder().getBuilder(); } /** + * + * *
      * The duration of this operation.
      * 
@@ -1141,6 +1258,8 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { } } /** + * + * *
      * The duration of this operation.
      * 
@@ -1148,17 +1267,20 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { * .google.protobuf.Duration ttl = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getTtlFieldBuilder() { if (ttlBuilder_ == null) { if (!(endCase_ == 4)) { end_ = com.google.protobuf.Duration.getDefaultInstance(); } - ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - (com.google.protobuf.Duration) end_, - getParentForChildren(), - isClean()); + ttlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) end_, getParentForChildren(), isClean()); end_ = null; } endCase_ = 4; @@ -1167,14 +1289,18 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
      * The error that will be returned by the server. If this code is specified
      * to be the OK rpc code, an empty response will be returned.
      * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ @java.lang.Override @@ -1182,12 +1308,15 @@ public boolean hasError() { return responseCase_ == 2; } /** + * + * *
      * The error that will be returned by the server. If this code is specified
      * to be the OK rpc code, an empty response will be returned.
      * 
* * .google.rpc.Status error = 2; + * * @return The error. */ @java.lang.Override @@ -1205,6 +1334,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * The error that will be returned by the server. If this code is specified
      * to be the OK rpc code, an empty response will be returned.
@@ -1226,6 +1357,8 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The error that will be returned by the server. If this code is specified
      * to be the OK rpc code, an empty response will be returned.
@@ -1233,8 +1366,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 2;
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         response_ = builderForValue.build();
         onChanged();
@@ -1245,6 +1377,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * The error that will be returned by the server. If this code is specified
      * to be the OK rpc code, an empty response will be returned.
@@ -1254,10 +1388,11 @@ public Builder setError(
      */
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
-        if (responseCase_ == 2 &&
-            response_ != com.google.rpc.Status.getDefaultInstance()) {
-          response_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_)
-              .mergeFrom(value).buildPartial();
+        if (responseCase_ == 2 && response_ != com.google.rpc.Status.getDefaultInstance()) {
+          response_ =
+              com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           response_ = value;
         }
@@ -1273,6 +1408,8 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The error that will be returned by the server. If this code is specified
      * to be the OK rpc code, an empty response will be returned.
@@ -1297,6 +1434,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The error that will be returned by the server. If this code is specified
      * to be the OK rpc code, an empty response will be returned.
@@ -1308,6 +1447,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() {
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The error that will be returned by the server. If this code is specified
      * to be the OK rpc code, an empty response will be returned.
@@ -1327,6 +1468,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * The error that will be returned by the server. If this code is specified
      * to be the OK rpc code, an empty response will be returned.
@@ -1335,17 +1478,18 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
         if (!(responseCase_ == 2)) {
           response_ = com.google.rpc.Status.getDefaultInstance();
         }
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                (com.google.rpc.Status) response_,
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(
+                (com.google.rpc.Status) response_, getParentForChildren(), isClean());
         response_ = null;
       }
       responseCase_ = 2;
@@ -1354,13 +1498,19 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.showcase.v1beta1.WaitResponse, com.google.showcase.v1beta1.WaitResponse.Builder, com.google.showcase.v1beta1.WaitResponseOrBuilder> successBuilder_;
+            com.google.showcase.v1beta1.WaitResponse,
+            com.google.showcase.v1beta1.WaitResponse.Builder,
+            com.google.showcase.v1beta1.WaitResponseOrBuilder>
+        successBuilder_;
     /**
+     *
+     *
      * 
      * The response to be returned on operation completion.
      * 
* * .google.showcase.v1beta1.WaitResponse success = 3; + * * @return Whether the success field is set. */ @java.lang.Override @@ -1368,11 +1518,14 @@ public boolean hasSuccess() { return responseCase_ == 3; } /** + * + * *
      * The response to be returned on operation completion.
      * 
* * .google.showcase.v1beta1.WaitResponse success = 3; + * * @return The success. */ @java.lang.Override @@ -1390,6 +1543,8 @@ public com.google.showcase.v1beta1.WaitResponse getSuccess() { } } /** + * + * *
      * The response to be returned on operation completion.
      * 
@@ -1410,14 +1565,15 @@ public Builder setSuccess(com.google.showcase.v1beta1.WaitResponse value) { return this; } /** + * + * *
      * The response to be returned on operation completion.
      * 
* * .google.showcase.v1beta1.WaitResponse success = 3; */ - public Builder setSuccess( - com.google.showcase.v1beta1.WaitResponse.Builder builderForValue) { + public Builder setSuccess(com.google.showcase.v1beta1.WaitResponse.Builder builderForValue) { if (successBuilder_ == null) { response_ = builderForValue.build(); onChanged(); @@ -1428,6 +1584,8 @@ public Builder setSuccess( return this; } /** + * + * *
      * The response to be returned on operation completion.
      * 
@@ -1436,10 +1594,13 @@ public Builder setSuccess( */ public Builder mergeSuccess(com.google.showcase.v1beta1.WaitResponse value) { if (successBuilder_ == null) { - if (responseCase_ == 3 && - response_ != com.google.showcase.v1beta1.WaitResponse.getDefaultInstance()) { - response_ = com.google.showcase.v1beta1.WaitResponse.newBuilder((com.google.showcase.v1beta1.WaitResponse) response_) - .mergeFrom(value).buildPartial(); + if (responseCase_ == 3 + && response_ != com.google.showcase.v1beta1.WaitResponse.getDefaultInstance()) { + response_ = + com.google.showcase.v1beta1.WaitResponse.newBuilder( + (com.google.showcase.v1beta1.WaitResponse) response_) + .mergeFrom(value) + .buildPartial(); } else { response_ = value; } @@ -1455,6 +1616,8 @@ public Builder mergeSuccess(com.google.showcase.v1beta1.WaitResponse value) { return this; } /** + * + * *
      * The response to be returned on operation completion.
      * 
@@ -1478,6 +1641,8 @@ public Builder clearSuccess() { return this; } /** + * + * *
      * The response to be returned on operation completion.
      * 
@@ -1488,6 +1653,8 @@ public com.google.showcase.v1beta1.WaitResponse.Builder getSuccessBuilder() { return getSuccessFieldBuilder().getBuilder(); } /** + * + * *
      * The response to be returned on operation completion.
      * 
@@ -1506,6 +1673,8 @@ public com.google.showcase.v1beta1.WaitResponseOrBuilder getSuccessOrBuilder() { } } /** + * + * *
      * The response to be returned on operation completion.
      * 
@@ -1513,14 +1682,19 @@ public com.google.showcase.v1beta1.WaitResponseOrBuilder getSuccessOrBuilder() { * .google.showcase.v1beta1.WaitResponse success = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.WaitResponse, com.google.showcase.v1beta1.WaitResponse.Builder, com.google.showcase.v1beta1.WaitResponseOrBuilder> + com.google.showcase.v1beta1.WaitResponse, + com.google.showcase.v1beta1.WaitResponse.Builder, + com.google.showcase.v1beta1.WaitResponseOrBuilder> getSuccessFieldBuilder() { if (successBuilder_ == null) { if (!(responseCase_ == 3)) { response_ = com.google.showcase.v1beta1.WaitResponse.getDefaultInstance(); } - successBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.showcase.v1beta1.WaitResponse, com.google.showcase.v1beta1.WaitResponse.Builder, com.google.showcase.v1beta1.WaitResponseOrBuilder>( + successBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.WaitResponse, + com.google.showcase.v1beta1.WaitResponse.Builder, + com.google.showcase.v1beta1.WaitResponseOrBuilder>( (com.google.showcase.v1beta1.WaitResponse) response_, getParentForChildren(), isClean()); @@ -1530,9 +1704,9 @@ public com.google.showcase.v1beta1.WaitResponseOrBuilder getSuccessOrBuilder() { onChanged(); return successBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1542,12 +1716,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.WaitRequest) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.WaitRequest) private static final com.google.showcase.v1beta1.WaitRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.WaitRequest(); } @@ -1556,27 +1730,27 @@ public static com.google.showcase.v1beta1.WaitRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WaitRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WaitRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1591,6 +1765,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.WaitRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequestOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequestOrBuilder.java similarity index 80% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequestOrBuilder.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequestOrBuilder.java index f7794089e8..869bb60845 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequestOrBuilder.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitRequestOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto // Protobuf Java Version: 3.25.5 package com.google.showcase.v1beta1; -public interface WaitRequestOrBuilder extends +public interface WaitRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.WaitRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time that this operation will complete.
    * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time that this operation will complete.
    * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time that this operation will complete.
    * 
@@ -36,24 +60,32 @@ public interface WaitRequestOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * The duration of this operation.
    * 
* * .google.protobuf.Duration ttl = 4; + * * @return Whether the ttl field is set. */ boolean hasTtl(); /** + * + * *
    * The duration of this operation.
    * 
* * .google.protobuf.Duration ttl = 4; + * * @return The ttl. */ com.google.protobuf.Duration getTtl(); /** + * + * *
    * The duration of this operation.
    * 
@@ -63,26 +95,34 @@ public interface WaitRequestOrBuilder extends com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); /** + * + * *
    * The error that will be returned by the server. If this code is specified
    * to be the OK rpc code, an empty response will be returned.
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * The error that will be returned by the server. If this code is specified
    * to be the OK rpc code, an empty response will be returned.
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * The error that will be returned by the server. If this code is specified
    * to be the OK rpc code, an empty response will be returned.
@@ -93,24 +133,32 @@ public interface WaitRequestOrBuilder extends
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
+   *
+   *
    * 
    * The response to be returned on operation completion.
    * 
* * .google.showcase.v1beta1.WaitResponse success = 3; + * * @return Whether the success field is set. */ boolean hasSuccess(); /** + * + * *
    * The response to be returned on operation completion.
    * 
* * .google.showcase.v1beta1.WaitResponse success = 3; + * * @return The success. */ com.google.showcase.v1beta1.WaitResponse getSuccess(); /** + * + * *
    * The response to be returned on operation completion.
    * 
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponse.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponse.java similarity index 65% rename from showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponse.java rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponse.java index aeed1fe654..3e07a050ac 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponse.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: schema/google/showcase/v1beta1/echo.proto @@ -5,54 +20,62 @@ package com.google.showcase.v1beta1; /** + * + * *
  * The result of the Wait operation.
  * 
* * Protobuf type {@code google.showcase.v1beta1.WaitResponse} */ -public final class WaitResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WaitResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.WaitResponse) WaitResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WaitResponse.newBuilder() to construct. private WaitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WaitResponse() { content_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WaitResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_WaitResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitResponse_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_WaitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.WaitResponse.class, com.google.showcase.v1beta1.WaitResponse.Builder.class); + com.google.showcase.v1beta1.WaitResponse.class, + com.google.showcase.v1beta1.WaitResponse.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object content_ = ""; /** + * + * *
    * This content of the result.
    * 
* * string content = 1; + * * @return The content. */ @java.lang.Override @@ -61,29 +84,29 @@ public java.lang.String getContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** + * + * *
    * This content of the result.
    * 
* * string content = 1; + * * @return The bytes for content. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -92,6 +115,7 @@ public java.lang.String getContent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +127,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } @@ -128,15 +151,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.showcase.v1beta1.WaitResponse)) { return super.equals(obj); } com.google.showcase.v1beta1.WaitResponse other = (com.google.showcase.v1beta1.WaitResponse) obj; - if (!getContent() - .equals(other.getContent())) return false; + if (!getContent().equals(other.getContent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,132 +177,136 @@ public int hashCode() { return hash; } - public static com.google.showcase.v1beta1.WaitResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.showcase.v1beta1.WaitResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.WaitResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.WaitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.WaitResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.WaitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.showcase.v1beta1.WaitResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.showcase.v1beta1.WaitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.WaitResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.showcase.v1beta1.WaitResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.showcase.v1beta1.WaitResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.showcase.v1beta1.WaitResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.showcase.v1beta1.WaitResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.showcase.v1beta1.WaitResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.showcase.v1beta1.WaitResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The result of the Wait operation.
    * 
* * Protobuf type {@code google.showcase.v1beta1.WaitResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.WaitResponse) com.google.showcase.v1beta1.WaitResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_WaitResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitResponse_fieldAccessorTable + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_WaitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.showcase.v1beta1.WaitResponse.class, com.google.showcase.v1beta1.WaitResponse.Builder.class); + com.google.showcase.v1beta1.WaitResponse.class, + com.google.showcase.v1beta1.WaitResponse.Builder.class); } // Construct using com.google.showcase.v1beta1.WaitResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -290,9 +316,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_WaitResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass + .internal_static_google_showcase_v1beta1_WaitResponse_descriptor; } @java.lang.Override @@ -311,8 +337,11 @@ public com.google.showcase.v1beta1.WaitResponse build() { @java.lang.Override public com.google.showcase.v1beta1.WaitResponse buildPartial() { - com.google.showcase.v1beta1.WaitResponse result = new com.google.showcase.v1beta1.WaitResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.showcase.v1beta1.WaitResponse result = + new com.google.showcase.v1beta1.WaitResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -328,38 +357,39 @@ private void buildPartial0(com.google.showcase.v1beta1.WaitResponse result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.showcase.v1beta1.WaitResponse) { - return mergeFrom((com.google.showcase.v1beta1.WaitResponse)other); + return mergeFrom((com.google.showcase.v1beta1.WaitResponse) other); } else { super.mergeFrom(other); return this; @@ -399,17 +429,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - content_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -419,22 +451,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object content_ = ""; /** + * + * *
      * This content of the result.
      * 
* * string content = 1; + * * @return The content. */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; @@ -443,20 +478,21 @@ public java.lang.String getContent() { } } /** + * + * *
      * This content of the result.
      * 
* * string content = 1; + * * @return The bytes for content. */ - public com.google.protobuf.ByteString - getContentBytes() { + public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); content_ = b; return b; } else { @@ -464,28 +500,35 @@ public java.lang.String getContent() { } } /** + * + * *
      * This content of the result.
      * 
* * string content = 1; + * * @param value The content to set. * @return This builder for chaining. */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } content_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * This content of the result.
      * 
* * string content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -495,26 +538,30 @@ public Builder clearContent() { return this; } /** + * + * *
      * This content of the result.
      * 
* * string content = 1; + * * @param value The bytes for content to set. * @return This builder for chaining. */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); content_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -524,12 +571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.WaitResponse) } // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.WaitResponse) private static final com.google.showcase.v1beta1.WaitResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.showcase.v1beta1.WaitResponse(); } @@ -538,27 +585,27 @@ public static com.google.showcase.v1beta1.WaitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WaitResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WaitResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -573,6 +620,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.showcase.v1beta1.WaitResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponseOrBuilder.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponseOrBuilder.java new file mode 100644 index 0000000000..7ab1da427b --- /dev/null +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/WaitResponseOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +// Protobuf Java Version: 3.25.5 +package com.google.showcase.v1beta1; + +public interface WaitResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.WaitResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * This content of the result.
+   * 
+ * + * string content = 1; + * + * @return The content. + */ + java.lang.String getContent(); + /** + * + * + *
+   * This content of the result.
+   * 
+ * + * string content = 1; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/compliance.proto b/java-showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/compliance.proto similarity index 100% rename from showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/compliance.proto rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/compliance.proto diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/echo.proto b/java-showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/echo.proto similarity index 100% rename from showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/echo.proto rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/echo.proto diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/identity.proto b/java-showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/identity.proto similarity index 100% rename from showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/identity.proto rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/identity.proto diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/messaging.proto b/java-showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/messaging.proto similarity index 100% rename from showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/messaging.proto rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/messaging.proto diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/sequence.proto b/java-showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/sequence.proto similarity index 100% rename from showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/sequence.proto rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/sequence.proto diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/testing.proto b/java-showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/testing.proto similarity index 100% rename from showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/testing.proto rename to java-showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/testing.proto diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 0000000000..906cb83e02 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceSettings; +import com.google.showcase.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ComplianceSettings complianceSettings = + ComplianceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ComplianceClient complianceClient = ComplianceClient.create(complianceSettings); + } +} +// [END localhost7469_v1beta1_generated_Compliance_Create_SetCredentialsProvider_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/create/SyncCreateSetEndpoint.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/create/SyncCreateSetEndpoint.java new file mode 100644 index 0000000000..93ce82a240 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_Create_SetEndpoint_sync] +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceSettings; +import com.google.showcase.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ComplianceSettings complianceSettings = + ComplianceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ComplianceClient complianceClient = ComplianceClient.create(complianceSettings); + } +} +// [END localhost7469_v1beta1_generated_Compliance_Create_SetEndpoint_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/create/SyncCreateUseHttpJsonTransport.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 0000000000..a437673b80 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_Create_UseHttpJsonTransport_sync] +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ComplianceSettings complianceSettings = ComplianceSettings.newHttpJsonBuilder().build(); + ComplianceClient complianceClient = ComplianceClient.create(complianceSettings); + } +} +// [END localhost7469_v1beta1_generated_Compliance_Create_UseHttpJsonTransport_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/getenum/AsyncGetEnum.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/getenum/AsyncGetEnum.java new file mode 100644 index 0000000000..c8030f4d64 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/getenum/AsyncGetEnum.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_GetEnum_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.EnumRequest; +import com.google.showcase.v1beta1.EnumResponse; + +public class AsyncGetEnum { + + public static void main(String[] args) throws Exception { + asyncGetEnum(); + } + + public static void asyncGetEnum() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + EnumRequest request = EnumRequest.newBuilder().setUnknownEnum(true).build(); + ApiFuture future = complianceClient.getEnumCallable().futureCall(request); + // Do something. + EnumResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_GetEnum_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/getenum/SyncGetEnum.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/getenum/SyncGetEnum.java new file mode 100644 index 0000000000..34edb378e8 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/getenum/SyncGetEnum.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_GetEnum_sync] +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.EnumRequest; +import com.google.showcase.v1beta1.EnumResponse; + +public class SyncGetEnum { + + public static void main(String[] args) throws Exception { + syncGetEnum(); + } + + public static void syncGetEnum() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + EnumRequest request = EnumRequest.newBuilder().setUnknownEnum(true).build(); + EnumResponse response = complianceClient.getEnum(request); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_GetEnum_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/getiampolicy/AsyncGetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 0000000000..5ed4988e0e --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.ComplianceClient; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = complianceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_GetIamPolicy_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/getiampolicy/SyncGetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 0000000000..aa72bd7a78 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_GetIamPolicy_sync] +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.ComplianceClient; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = complianceClient.getIamPolicy(request); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_GetIamPolicy_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/getlocation/AsyncGetLocation.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/getlocation/AsyncGetLocation.java new file mode 100644 index 0000000000..879c5b25c0 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.ComplianceClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = complianceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_GetLocation_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/getlocation/SyncGetLocation.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/getlocation/SyncGetLocation.java new file mode 100644 index 0000000000..91fd9d7313 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.ComplianceClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = complianceClient.getLocation(request); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_GetLocation_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocations.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocations.java new file mode 100644 index 0000000000..b77ac8d743 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.ComplianceClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + complianceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_ListLocations_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocationsPaged.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 0000000000..3517ce69ca --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; +import com.google.showcase.v1beta1.ComplianceClient; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = complianceClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_ListLocations_Paged_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/listlocations/SyncListLocations.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/listlocations/SyncListLocations.java new file mode 100644 index 0000000000..f7a54f0ded --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.ComplianceClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : complianceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_ListLocations_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabody/AsyncRepeatDataBody.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabody/AsyncRepeatDataBody.java new file mode 100644 index 0000000000..c5f617ec76 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabody/AsyncRepeatDataBody.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_RepeatDataBody_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceData; +import com.google.showcase.v1beta1.RepeatRequest; +import com.google.showcase.v1beta1.RepeatResponse; + +public class AsyncRepeatDataBody { + + public static void main(String[] args) throws Exception { + asyncRepeatDataBody(); + } + + public static void asyncRepeatDataBody() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + RepeatRequest request = + RepeatRequest.newBuilder() + .setName("name3373707") + .setInfo(ComplianceData.newBuilder().build()) + .setServerVerify(true) + .setIntendedBindingUri("intendedBindingUri780142386") + .setFInt32(-1143775883) + .setFInt64(-1143775788) + .setFDouble(-1239459382) + .setPInt32(-858673665) + .setPInt64(-858673570) + .setPDouble(-991225216) + .build(); + ApiFuture future = + complianceClient.repeatDataBodyCallable().futureCall(request); + // Do something. + RepeatResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_RepeatDataBody_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabody/SyncRepeatDataBody.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabody/SyncRepeatDataBody.java new file mode 100644 index 0000000000..7d576faccf --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabody/SyncRepeatDataBody.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_RepeatDataBody_sync] +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceData; +import com.google.showcase.v1beta1.RepeatRequest; +import com.google.showcase.v1beta1.RepeatResponse; + +public class SyncRepeatDataBody { + + public static void main(String[] args) throws Exception { + syncRepeatDataBody(); + } + + public static void syncRepeatDataBody() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + RepeatRequest request = + RepeatRequest.newBuilder() + .setName("name3373707") + .setInfo(ComplianceData.newBuilder().build()) + .setServerVerify(true) + .setIntendedBindingUri("intendedBindingUri780142386") + .setFInt32(-1143775883) + .setFInt64(-1143775788) + .setFDouble(-1239459382) + .setPInt32(-858673665) + .setPInt64(-858673570) + .setPDouble(-991225216) + .build(); + RepeatResponse response = complianceClient.repeatDataBody(request); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_RepeatDataBody_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/AsyncRepeatDataBodyInfo.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/AsyncRepeatDataBodyInfo.java new file mode 100644 index 0000000000..c36a955bce --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/AsyncRepeatDataBodyInfo.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_RepeatDataBodyInfo_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceData; +import com.google.showcase.v1beta1.RepeatRequest; +import com.google.showcase.v1beta1.RepeatResponse; + +public class AsyncRepeatDataBodyInfo { + + public static void main(String[] args) throws Exception { + asyncRepeatDataBodyInfo(); + } + + public static void asyncRepeatDataBodyInfo() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + RepeatRequest request = + RepeatRequest.newBuilder() + .setName("name3373707") + .setInfo(ComplianceData.newBuilder().build()) + .setServerVerify(true) + .setIntendedBindingUri("intendedBindingUri780142386") + .setFInt32(-1143775883) + .setFInt64(-1143775788) + .setFDouble(-1239459382) + .setPInt32(-858673665) + .setPInt64(-858673570) + .setPDouble(-991225216) + .build(); + ApiFuture future = + complianceClient.repeatDataBodyInfoCallable().futureCall(request); + // Do something. + RepeatResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_RepeatDataBodyInfo_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/SyncRepeatDataBodyInfo.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/SyncRepeatDataBodyInfo.java new file mode 100644 index 0000000000..0f54421afb --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/SyncRepeatDataBodyInfo.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_RepeatDataBodyInfo_sync] +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceData; +import com.google.showcase.v1beta1.RepeatRequest; +import com.google.showcase.v1beta1.RepeatResponse; + +public class SyncRepeatDataBodyInfo { + + public static void main(String[] args) throws Exception { + syncRepeatDataBodyInfo(); + } + + public static void syncRepeatDataBodyInfo() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + RepeatRequest request = + RepeatRequest.newBuilder() + .setName("name3373707") + .setInfo(ComplianceData.newBuilder().build()) + .setServerVerify(true) + .setIntendedBindingUri("intendedBindingUri780142386") + .setFInt32(-1143775883) + .setFInt64(-1143775788) + .setFDouble(-1239459382) + .setPInt32(-858673665) + .setPInt64(-858673570) + .setPDouble(-991225216) + .build(); + RepeatResponse response = complianceClient.repeatDataBodyInfo(request); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_RepeatDataBodyInfo_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/AsyncRepeatDataBodyPatch.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/AsyncRepeatDataBodyPatch.java new file mode 100644 index 0000000000..d9464f9149 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/AsyncRepeatDataBodyPatch.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_RepeatDataBodyPatch_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceData; +import com.google.showcase.v1beta1.RepeatRequest; +import com.google.showcase.v1beta1.RepeatResponse; + +public class AsyncRepeatDataBodyPatch { + + public static void main(String[] args) throws Exception { + asyncRepeatDataBodyPatch(); + } + + public static void asyncRepeatDataBodyPatch() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + RepeatRequest request = + RepeatRequest.newBuilder() + .setName("name3373707") + .setInfo(ComplianceData.newBuilder().build()) + .setServerVerify(true) + .setIntendedBindingUri("intendedBindingUri780142386") + .setFInt32(-1143775883) + .setFInt64(-1143775788) + .setFDouble(-1239459382) + .setPInt32(-858673665) + .setPInt64(-858673570) + .setPDouble(-991225216) + .build(); + ApiFuture future = + complianceClient.repeatDataBodyPatchCallable().futureCall(request); + // Do something. + RepeatResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_RepeatDataBodyPatch_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/SyncRepeatDataBodyPatch.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/SyncRepeatDataBodyPatch.java new file mode 100644 index 0000000000..8362e34f71 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/SyncRepeatDataBodyPatch.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_RepeatDataBodyPatch_sync] +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceData; +import com.google.showcase.v1beta1.RepeatRequest; +import com.google.showcase.v1beta1.RepeatResponse; + +public class SyncRepeatDataBodyPatch { + + public static void main(String[] args) throws Exception { + syncRepeatDataBodyPatch(); + } + + public static void syncRepeatDataBodyPatch() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + RepeatRequest request = + RepeatRequest.newBuilder() + .setName("name3373707") + .setInfo(ComplianceData.newBuilder().build()) + .setServerVerify(true) + .setIntendedBindingUri("intendedBindingUri780142386") + .setFInt32(-1143775883) + .setFInt64(-1143775788) + .setFDouble(-1239459382) + .setPInt32(-858673665) + .setPInt64(-858673570) + .setPDouble(-991225216) + .build(); + RepeatResponse response = complianceClient.repeatDataBodyPatch(request); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_RepeatDataBodyPatch_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabodyput/AsyncRepeatDataBodyPut.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabodyput/AsyncRepeatDataBodyPut.java new file mode 100644 index 0000000000..a37818a02f --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabodyput/AsyncRepeatDataBodyPut.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_RepeatDataBodyPut_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceData; +import com.google.showcase.v1beta1.RepeatRequest; +import com.google.showcase.v1beta1.RepeatResponse; + +public class AsyncRepeatDataBodyPut { + + public static void main(String[] args) throws Exception { + asyncRepeatDataBodyPut(); + } + + public static void asyncRepeatDataBodyPut() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + RepeatRequest request = + RepeatRequest.newBuilder() + .setName("name3373707") + .setInfo(ComplianceData.newBuilder().build()) + .setServerVerify(true) + .setIntendedBindingUri("intendedBindingUri780142386") + .setFInt32(-1143775883) + .setFInt64(-1143775788) + .setFDouble(-1239459382) + .setPInt32(-858673665) + .setPInt64(-858673570) + .setPDouble(-991225216) + .build(); + ApiFuture future = + complianceClient.repeatDataBodyPutCallable().futureCall(request); + // Do something. + RepeatResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_RepeatDataBodyPut_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabodyput/SyncRepeatDataBodyPut.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabodyput/SyncRepeatDataBodyPut.java new file mode 100644 index 0000000000..70e3da15ae --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatabodyput/SyncRepeatDataBodyPut.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_RepeatDataBodyPut_sync] +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceData; +import com.google.showcase.v1beta1.RepeatRequest; +import com.google.showcase.v1beta1.RepeatResponse; + +public class SyncRepeatDataBodyPut { + + public static void main(String[] args) throws Exception { + syncRepeatDataBodyPut(); + } + + public static void syncRepeatDataBodyPut() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + RepeatRequest request = + RepeatRequest.newBuilder() + .setName("name3373707") + .setInfo(ComplianceData.newBuilder().build()) + .setServerVerify(true) + .setIntendedBindingUri("intendedBindingUri780142386") + .setFInt32(-1143775883) + .setFInt64(-1143775788) + .setFDouble(-1239459382) + .setPInt32(-858673665) + .setPInt64(-858673570) + .setPDouble(-991225216) + .build(); + RepeatResponse response = complianceClient.repeatDataBodyPut(request); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_RepeatDataBodyPut_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatapathresource/AsyncRepeatDataPathResource.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatapathresource/AsyncRepeatDataPathResource.java new file mode 100644 index 0000000000..96367c5599 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatapathresource/AsyncRepeatDataPathResource.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_RepeatDataPathResource_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceData; +import com.google.showcase.v1beta1.RepeatRequest; +import com.google.showcase.v1beta1.RepeatResponse; + +public class AsyncRepeatDataPathResource { + + public static void main(String[] args) throws Exception { + asyncRepeatDataPathResource(); + } + + public static void asyncRepeatDataPathResource() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + RepeatRequest request = + RepeatRequest.newBuilder() + .setName("name3373707") + .setInfo(ComplianceData.newBuilder().build()) + .setServerVerify(true) + .setIntendedBindingUri("intendedBindingUri780142386") + .setFInt32(-1143775883) + .setFInt64(-1143775788) + .setFDouble(-1239459382) + .setPInt32(-858673665) + .setPInt64(-858673570) + .setPDouble(-991225216) + .build(); + ApiFuture future = + complianceClient.repeatDataPathResourceCallable().futureCall(request); + // Do something. + RepeatResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_RepeatDataPathResource_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatapathresource/SyncRepeatDataPathResource.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatapathresource/SyncRepeatDataPathResource.java new file mode 100644 index 0000000000..fc445f926b --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatapathresource/SyncRepeatDataPathResource.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_RepeatDataPathResource_sync] +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceData; +import com.google.showcase.v1beta1.RepeatRequest; +import com.google.showcase.v1beta1.RepeatResponse; + +public class SyncRepeatDataPathResource { + + public static void main(String[] args) throws Exception { + syncRepeatDataPathResource(); + } + + public static void syncRepeatDataPathResource() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + RepeatRequest request = + RepeatRequest.newBuilder() + .setName("name3373707") + .setInfo(ComplianceData.newBuilder().build()) + .setServerVerify(true) + .setIntendedBindingUri("intendedBindingUri780142386") + .setFInt32(-1143775883) + .setFInt64(-1143775788) + .setFDouble(-1239459382) + .setPInt32(-858673665) + .setPInt64(-858673570) + .setPDouble(-991225216) + .build(); + RepeatResponse response = complianceClient.repeatDataPathResource(request); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_RepeatDataPathResource_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/AsyncRepeatDataPathTrailingResource.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/AsyncRepeatDataPathTrailingResource.java new file mode 100644 index 0000000000..ec215fd33a --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/AsyncRepeatDataPathTrailingResource.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_RepeatDataPathTrailingResource_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceData; +import com.google.showcase.v1beta1.RepeatRequest; +import com.google.showcase.v1beta1.RepeatResponse; + +public class AsyncRepeatDataPathTrailingResource { + + public static void main(String[] args) throws Exception { + asyncRepeatDataPathTrailingResource(); + } + + public static void asyncRepeatDataPathTrailingResource() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + RepeatRequest request = + RepeatRequest.newBuilder() + .setName("name3373707") + .setInfo(ComplianceData.newBuilder().build()) + .setServerVerify(true) + .setIntendedBindingUri("intendedBindingUri780142386") + .setFInt32(-1143775883) + .setFInt64(-1143775788) + .setFDouble(-1239459382) + .setPInt32(-858673665) + .setPInt64(-858673570) + .setPDouble(-991225216) + .build(); + ApiFuture future = + complianceClient.repeatDataPathTrailingResourceCallable().futureCall(request); + // Do something. + RepeatResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_RepeatDataPathTrailingResource_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/SyncRepeatDataPathTrailingResource.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/SyncRepeatDataPathTrailingResource.java new file mode 100644 index 0000000000..26c8d27c44 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/SyncRepeatDataPathTrailingResource.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_RepeatDataPathTrailingResource_sync] +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceData; +import com.google.showcase.v1beta1.RepeatRequest; +import com.google.showcase.v1beta1.RepeatResponse; + +public class SyncRepeatDataPathTrailingResource { + + public static void main(String[] args) throws Exception { + syncRepeatDataPathTrailingResource(); + } + + public static void syncRepeatDataPathTrailingResource() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + RepeatRequest request = + RepeatRequest.newBuilder() + .setName("name3373707") + .setInfo(ComplianceData.newBuilder().build()) + .setServerVerify(true) + .setIntendedBindingUri("intendedBindingUri780142386") + .setFInt32(-1143775883) + .setFInt64(-1143775788) + .setFDouble(-1239459382) + .setPInt32(-858673665) + .setPInt64(-858673570) + .setPDouble(-991225216) + .build(); + RepeatResponse response = complianceClient.repeatDataPathTrailingResource(request); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_RepeatDataPathTrailingResource_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdataquery/AsyncRepeatDataQuery.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdataquery/AsyncRepeatDataQuery.java new file mode 100644 index 0000000000..2385ee01f2 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdataquery/AsyncRepeatDataQuery.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_RepeatDataQuery_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceData; +import com.google.showcase.v1beta1.RepeatRequest; +import com.google.showcase.v1beta1.RepeatResponse; + +public class AsyncRepeatDataQuery { + + public static void main(String[] args) throws Exception { + asyncRepeatDataQuery(); + } + + public static void asyncRepeatDataQuery() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + RepeatRequest request = + RepeatRequest.newBuilder() + .setName("name3373707") + .setInfo(ComplianceData.newBuilder().build()) + .setServerVerify(true) + .setIntendedBindingUri("intendedBindingUri780142386") + .setFInt32(-1143775883) + .setFInt64(-1143775788) + .setFDouble(-1239459382) + .setPInt32(-858673665) + .setPInt64(-858673570) + .setPDouble(-991225216) + .build(); + ApiFuture future = + complianceClient.repeatDataQueryCallable().futureCall(request); + // Do something. + RepeatResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_RepeatDataQuery_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdataquery/SyncRepeatDataQuery.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdataquery/SyncRepeatDataQuery.java new file mode 100644 index 0000000000..237499240e --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdataquery/SyncRepeatDataQuery.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_RepeatDataQuery_sync] +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceData; +import com.google.showcase.v1beta1.RepeatRequest; +import com.google.showcase.v1beta1.RepeatResponse; + +public class SyncRepeatDataQuery { + + public static void main(String[] args) throws Exception { + syncRepeatDataQuery(); + } + + public static void syncRepeatDataQuery() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + RepeatRequest request = + RepeatRequest.newBuilder() + .setName("name3373707") + .setInfo(ComplianceData.newBuilder().build()) + .setServerVerify(true) + .setIntendedBindingUri("intendedBindingUri780142386") + .setFInt32(-1143775883) + .setFInt64(-1143775788) + .setFDouble(-1239459382) + .setPInt32(-858673665) + .setPInt64(-858673570) + .setPDouble(-991225216) + .build(); + RepeatResponse response = complianceClient.repeatDataQuery(request); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_RepeatDataQuery_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/AsyncRepeatDataSimplePath.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/AsyncRepeatDataSimplePath.java new file mode 100644 index 0000000000..529fe26fd8 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/AsyncRepeatDataSimplePath.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_RepeatDataSimplePath_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceData; +import com.google.showcase.v1beta1.RepeatRequest; +import com.google.showcase.v1beta1.RepeatResponse; + +public class AsyncRepeatDataSimplePath { + + public static void main(String[] args) throws Exception { + asyncRepeatDataSimplePath(); + } + + public static void asyncRepeatDataSimplePath() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + RepeatRequest request = + RepeatRequest.newBuilder() + .setName("name3373707") + .setInfo(ComplianceData.newBuilder().build()) + .setServerVerify(true) + .setIntendedBindingUri("intendedBindingUri780142386") + .setFInt32(-1143775883) + .setFInt64(-1143775788) + .setFDouble(-1239459382) + .setPInt32(-858673665) + .setPInt64(-858673570) + .setPDouble(-991225216) + .build(); + ApiFuture future = + complianceClient.repeatDataSimplePathCallable().futureCall(request); + // Do something. + RepeatResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_RepeatDataSimplePath_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/SyncRepeatDataSimplePath.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/SyncRepeatDataSimplePath.java new file mode 100644 index 0000000000..179ef5316a --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/SyncRepeatDataSimplePath.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_RepeatDataSimplePath_sync] +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.ComplianceData; +import com.google.showcase.v1beta1.RepeatRequest; +import com.google.showcase.v1beta1.RepeatResponse; + +public class SyncRepeatDataSimplePath { + + public static void main(String[] args) throws Exception { + syncRepeatDataSimplePath(); + } + + public static void syncRepeatDataSimplePath() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + RepeatRequest request = + RepeatRequest.newBuilder() + .setName("name3373707") + .setInfo(ComplianceData.newBuilder().build()) + .setServerVerify(true) + .setIntendedBindingUri("intendedBindingUri780142386") + .setFInt32(-1143775883) + .setFInt64(-1143775788) + .setFDouble(-1239459382) + .setPInt32(-858673665) + .setPInt64(-858673570) + .setPDouble(-991225216) + .build(); + RepeatResponse response = complianceClient.repeatDataSimplePath(request); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_RepeatDataSimplePath_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/setiampolicy/AsyncSetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 0000000000..67e472b3b1 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.ComplianceClient; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = complianceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_SetIamPolicy_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/setiampolicy/SyncSetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 0000000000..38ebc8c130 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_SetIamPolicy_sync] +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.ComplianceClient; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = complianceClient.setIamPolicy(request); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_SetIamPolicy_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/testiampermissions/AsyncTestIamPermissions.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 0000000000..a4a76d7d95 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.ComplianceClient; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + complianceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_TestIamPermissions_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/testiampermissions/SyncTestIamPermissions.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 0000000000..a284b77bf5 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_TestIamPermissions_sync] +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.ComplianceClient; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = complianceClient.testIamPermissions(request); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_TestIamPermissions_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/verifyenum/AsyncVerifyEnum.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/verifyenum/AsyncVerifyEnum.java new file mode 100644 index 0000000000..2f98864f94 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/verifyenum/AsyncVerifyEnum.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_VerifyEnum_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.Continent; +import com.google.showcase.v1beta1.EnumRequest; +import com.google.showcase.v1beta1.EnumResponse; + +public class AsyncVerifyEnum { + + public static void main(String[] args) throws Exception { + asyncVerifyEnum(); + } + + public static void asyncVerifyEnum() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + EnumResponse request = + EnumResponse.newBuilder() + .setRequest(EnumRequest.newBuilder().build()) + .setContinent(Continent.forNumber(0)) + .build(); + ApiFuture future = complianceClient.verifyEnumCallable().futureCall(request); + // Do something. + EnumResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_VerifyEnum_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/verifyenum/SyncVerifyEnum.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/verifyenum/SyncVerifyEnum.java new file mode 100644 index 0000000000..81acdee50c --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliance/verifyenum/SyncVerifyEnum.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Compliance_VerifyEnum_sync] +import com.google.showcase.v1beta1.ComplianceClient; +import com.google.showcase.v1beta1.Continent; +import com.google.showcase.v1beta1.EnumRequest; +import com.google.showcase.v1beta1.EnumResponse; + +public class SyncVerifyEnum { + + public static void main(String[] args) throws Exception { + syncVerifyEnum(); + } + + public static void syncVerifyEnum() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ComplianceClient complianceClient = ComplianceClient.create()) { + EnumResponse request = + EnumResponse.newBuilder() + .setRequest(EnumRequest.newBuilder().build()) + .setContinent(Continent.forNumber(0)) + .build(); + EnumResponse response = complianceClient.verifyEnum(request); + } + } +} +// [END localhost7469_v1beta1_generated_Compliance_VerifyEnum_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliancesettings/repeatdatabody/SyncRepeatDataBody.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliancesettings/repeatdatabody/SyncRepeatDataBody.java new file mode 100644 index 0000000000..cc8246bd78 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/compliancesettings/repeatdatabody/SyncRepeatDataBody.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_ComplianceSettings_RepeatDataBody_sync] +import com.google.showcase.v1beta1.ComplianceSettings; +import java.time.Duration; + +public class SyncRepeatDataBody { + + public static void main(String[] args) throws Exception { + syncRepeatDataBody(); + } + + public static void syncRepeatDataBody() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ComplianceSettings.Builder complianceSettingsBuilder = ComplianceSettings.newBuilder(); + complianceSettingsBuilder + .repeatDataBodySettings() + .setRetrySettings( + complianceSettingsBuilder + .repeatDataBodySettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + ComplianceSettings complianceSettings = complianceSettingsBuilder.build(); + } +} +// [END localhost7469_v1beta1_generated_ComplianceSettings_RepeatDataBody_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/block/AsyncBlock.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/block/AsyncBlock.java new file mode 100644 index 0000000000..43fae113e8 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/block/AsyncBlock.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_Block_async] +import com.google.api.core.ApiFuture; +import com.google.protobuf.Duration; +import com.google.showcase.v1beta1.BlockRequest; +import com.google.showcase.v1beta1.BlockResponse; +import com.google.showcase.v1beta1.EchoClient; + +public class AsyncBlock { + + public static void main(String[] args) throws Exception { + asyncBlock(); + } + + public static void asyncBlock() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + BlockRequest request = + BlockRequest.newBuilder().setResponseDelay(Duration.newBuilder().build()).build(); + ApiFuture future = echoClient.blockCallable().futureCall(request); + // Do something. + BlockResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_Block_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/block/SyncBlock.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/block/SyncBlock.java new file mode 100644 index 0000000000..e71769f77f --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/block/SyncBlock.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_Block_sync] +import com.google.protobuf.Duration; +import com.google.showcase.v1beta1.BlockRequest; +import com.google.showcase.v1beta1.BlockResponse; +import com.google.showcase.v1beta1.EchoClient; + +public class SyncBlock { + + public static void main(String[] args) throws Exception { + syncBlock(); + } + + public static void syncBlock() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + BlockRequest request = + BlockRequest.newBuilder().setResponseDelay(Duration.newBuilder().build()).build(); + BlockResponse response = echoClient.block(request); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_Block_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/chat/AsyncChat.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/chat/AsyncChat.java new file mode 100644 index 0000000000..c3d4f78e5a --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/chat/AsyncChat.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_Chat_async] +import com.google.api.gax.rpc.BidiStream; +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.EchoRequest; +import com.google.showcase.v1beta1.EchoResponse; +import com.google.showcase.v1beta1.Severity; + +public class AsyncChat { + + public static void main(String[] args) throws Exception { + asyncChat(); + } + + public static void asyncChat() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + BidiStream bidiStream = echoClient.chatCallable().call(); + EchoRequest request = + EchoRequest.newBuilder() + .setSeverity(Severity.forNumber(0)) + .setHeader("header-1221270899") + .setOtherHeader("otherHeader-2026585667") + .setRequestId("requestId693933066") + .setOtherRequestId("otherRequestId1248995034") + .build(); + bidiStream.send(request); + for (EchoResponse response : bidiStream) { + // Do something when a response is received. + } + } + } +} +// [END localhost7469_v1beta1_generated_Echo_Chat_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/collect/AsyncCollect.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/collect/AsyncCollect.java new file mode 100644 index 0000000000..ba6ee539ed --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/collect/AsyncCollect.java @@ -0,0 +1,70 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_Collect_async] +import com.google.api.gax.rpc.ApiStreamObserver; +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.EchoRequest; +import com.google.showcase.v1beta1.EchoResponse; +import com.google.showcase.v1beta1.Severity; + +public class AsyncCollect { + + public static void main(String[] args) throws Exception { + asyncCollect(); + } + + public static void asyncCollect() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + ApiStreamObserver responseObserver = + new ApiStreamObserver() { + @Override + public void onNext(EchoResponse response) { + // Do something when a response is received. + } + + @Override + public void onError(Throwable t) { + // Add error-handling + } + + @Override + public void onCompleted() { + // Do something when complete. + } + }; + ApiStreamObserver requestObserver = + echoClient.collect().clientStreamingCall(responseObserver); + EchoRequest request = + EchoRequest.newBuilder() + .setSeverity(Severity.forNumber(0)) + .setHeader("header-1221270899") + .setOtherHeader("otherHeader-2026585667") + .setRequestId("requestId693933066") + .setOtherRequestId("otherRequestId1248995034") + .build(); + requestObserver.onNext(request); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_Collect_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 0000000000..7d40ff7810 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.EchoSettings; +import com.google.showcase.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EchoSettings echoSettings = + EchoSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + EchoClient echoClient = EchoClient.create(echoSettings); + } +} +// [END localhost7469_v1beta1_generated_Echo_Create_SetCredentialsProvider_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/create/SyncCreateSetEndpoint.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/create/SyncCreateSetEndpoint.java new file mode 100644 index 0000000000..a282afd7d5 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/create/SyncCreateSetEndpoint.java @@ -0,0 +1,40 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_Create_SetEndpoint_sync] +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.EchoSettings; +import com.google.showcase.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EchoSettings echoSettings = EchoSettings.newBuilder().setEndpoint(myEndpoint).build(); + EchoClient echoClient = EchoClient.create(echoSettings); + } +} +// [END localhost7469_v1beta1_generated_Echo_Create_SetEndpoint_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/create/SyncCreateUseHttpJsonTransport.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 0000000000..3ca2ef31b5 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_Create_UseHttpJsonTransport_sync] +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.EchoSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EchoSettings echoSettings = EchoSettings.newHttpJsonBuilder().build(); + EchoClient echoClient = EchoClient.create(echoSettings); + } +} +// [END localhost7469_v1beta1_generated_Echo_Create_UseHttpJsonTransport_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/echo/AsyncEcho.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/echo/AsyncEcho.java new file mode 100644 index 0000000000..e78f361ad4 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/echo/AsyncEcho.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_Echo_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.EchoRequest; +import com.google.showcase.v1beta1.EchoResponse; +import com.google.showcase.v1beta1.Severity; + +public class AsyncEcho { + + public static void main(String[] args) throws Exception { + asyncEcho(); + } + + public static void asyncEcho() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + EchoRequest request = + EchoRequest.newBuilder() + .setSeverity(Severity.forNumber(0)) + .setHeader("header-1221270899") + .setOtherHeader("otherHeader-2026585667") + .setRequestId("requestId693933066") + .setOtherRequestId("otherRequestId1248995034") + .build(); + ApiFuture future = echoClient.echoCallable().futureCall(request); + // Do something. + EchoResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_Echo_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/echo/SyncEcho.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/echo/SyncEcho.java new file mode 100644 index 0000000000..4487570976 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/echo/SyncEcho.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_Echo_sync] +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.EchoRequest; +import com.google.showcase.v1beta1.EchoResponse; +import com.google.showcase.v1beta1.Severity; + +public class SyncEcho { + + public static void main(String[] args) throws Exception { + syncEcho(); + } + + public static void syncEcho() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + EchoRequest request = + EchoRequest.newBuilder() + .setSeverity(Severity.forNumber(0)) + .setHeader("header-1221270899") + .setOtherHeader("otherHeader-2026585667") + .setRequestId("requestId693933066") + .setOtherRequestId("otherRequestId1248995034") + .build(); + EchoResponse response = echoClient.echo(request); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_Echo_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/echoerrordetails/AsyncEchoErrorDetails.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/echoerrordetails/AsyncEchoErrorDetails.java new file mode 100644 index 0000000000..bfe4c5a24d --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/echoerrordetails/AsyncEchoErrorDetails.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_EchoErrorDetails_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.EchoErrorDetailsRequest; +import com.google.showcase.v1beta1.EchoErrorDetailsResponse; +import java.util.ArrayList; + +public class AsyncEchoErrorDetails { + + public static void main(String[] args) throws Exception { + asyncEchoErrorDetails(); + } + + public static void asyncEchoErrorDetails() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + EchoErrorDetailsRequest request = + EchoErrorDetailsRequest.newBuilder() + .setSingleDetailText("singleDetailText1774380934") + .addAllMultiDetailText(new ArrayList()) + .build(); + ApiFuture future = + echoClient.echoErrorDetailsCallable().futureCall(request); + // Do something. + EchoErrorDetailsResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_EchoErrorDetails_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/echoerrordetails/SyncEchoErrorDetails.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/echoerrordetails/SyncEchoErrorDetails.java new file mode 100644 index 0000000000..242024b76e --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/echoerrordetails/SyncEchoErrorDetails.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_EchoErrorDetails_sync] +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.EchoErrorDetailsRequest; +import com.google.showcase.v1beta1.EchoErrorDetailsResponse; +import java.util.ArrayList; + +public class SyncEchoErrorDetails { + + public static void main(String[] args) throws Exception { + syncEchoErrorDetails(); + } + + public static void syncEchoErrorDetails() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + EchoErrorDetailsRequest request = + EchoErrorDetailsRequest.newBuilder() + .setSingleDetailText("singleDetailText1774380934") + .addAllMultiDetailText(new ArrayList()) + .build(); + EchoErrorDetailsResponse response = echoClient.echoErrorDetails(request); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_EchoErrorDetails_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java new file mode 100644 index 0000000000..8cf09d2dc9 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_Expand_async] +import com.google.api.gax.rpc.ServerStream; +import com.google.protobuf.Duration; +import com.google.rpc.Status; +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.EchoResponse; +import com.google.showcase.v1beta1.ExpandRequest; + +public class AsyncExpand { + + public static void main(String[] args) throws Exception { + asyncExpand(); + } + + public static void asyncExpand() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + ExpandRequest request = + ExpandRequest.newBuilder() + .setContent("content951530617") + .setError(Status.newBuilder().build()) + .setStreamWaitTime(Duration.newBuilder().build()) + .build(); + ServerStream stream = echoClient.expandCallable().call(request); + for (EchoResponse response : stream) { + // Do something when a response is received. + } + } + } +} +// [END localhost7469_v1beta1_generated_Echo_Expand_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/getiampolicy/AsyncGetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 0000000000..07fec788b0 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.EchoClient; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = echoClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_GetIamPolicy_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/getiampolicy/SyncGetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 0000000000..35eb12ceeb --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_GetIamPolicy_sync] +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.EchoClient; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = echoClient.getIamPolicy(request); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_GetIamPolicy_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/getlocation/AsyncGetLocation.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/getlocation/AsyncGetLocation.java new file mode 100644 index 0000000000..7d4069c8f6 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.EchoClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = echoClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_GetLocation_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/getlocation/SyncGetLocation.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/getlocation/SyncGetLocation.java new file mode 100644 index 0000000000..ebb5cbf6dd --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.EchoClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = echoClient.getLocation(request); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_GetLocation_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocations.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocations.java new file mode 100644 index 0000000000..160ecc7861 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocations.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.EchoClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = echoClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Echo_ListLocations_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocationsPaged.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 0000000000..49252457c0 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; +import com.google.showcase.v1beta1.EchoClient; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = echoClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END localhost7469_v1beta1_generated_Echo_ListLocations_Paged_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/listlocations/SyncListLocations.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/listlocations/SyncListLocations.java new file mode 100644 index 0000000000..bcd669348d --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.EchoClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : echoClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Echo_ListLocations_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpand.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpand.java new file mode 100644 index 0000000000..1734a6720f --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpand.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_PagedExpand_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.EchoResponse; +import com.google.showcase.v1beta1.PagedExpandRequest; + +public class AsyncPagedExpand { + + public static void main(String[] args) throws Exception { + asyncPagedExpand(); + } + + public static void asyncPagedExpand() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + PagedExpandRequest request = + PagedExpandRequest.newBuilder() + .setContent("content951530617") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = echoClient.pagedExpandPagedCallable().futureCall(request); + // Do something. + for (EchoResponse element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Echo_PagedExpand_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpandPaged.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpandPaged.java new file mode 100644 index 0000000000..07e0beb013 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpandPaged.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_PagedExpand_Paged_async] +import com.google.common.base.Strings; +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.EchoResponse; +import com.google.showcase.v1beta1.PagedExpandRequest; +import com.google.showcase.v1beta1.PagedExpandResponse; + +public class AsyncPagedExpandPaged { + + public static void main(String[] args) throws Exception { + asyncPagedExpandPaged(); + } + + public static void asyncPagedExpandPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + PagedExpandRequest request = + PagedExpandRequest.newBuilder() + .setContent("content951530617") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + PagedExpandResponse response = echoClient.pagedExpandCallable().call(request); + for (EchoResponse element : response.getResponsesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END localhost7469_v1beta1_generated_Echo_PagedExpand_Paged_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpand/SyncPagedExpand.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpand/SyncPagedExpand.java new file mode 100644 index 0000000000..1c55261b05 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpand/SyncPagedExpand.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_PagedExpand_sync] +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.EchoResponse; +import com.google.showcase.v1beta1.PagedExpandRequest; + +public class SyncPagedExpand { + + public static void main(String[] args) throws Exception { + syncPagedExpand(); + } + + public static void syncPagedExpand() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + PagedExpandRequest request = + PagedExpandRequest.newBuilder() + .setContent("content951530617") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (EchoResponse element : echoClient.pagedExpand(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Echo_PagedExpand_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpandlegacy/AsyncPagedExpandLegacy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpandlegacy/AsyncPagedExpandLegacy.java new file mode 100644 index 0000000000..a64a6af684 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpandlegacy/AsyncPagedExpandLegacy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_PagedExpandLegacy_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.PagedExpandLegacyRequest; +import com.google.showcase.v1beta1.PagedExpandResponse; + +public class AsyncPagedExpandLegacy { + + public static void main(String[] args) throws Exception { + asyncPagedExpandLegacy(); + } + + public static void asyncPagedExpandLegacy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + PagedExpandLegacyRequest request = + PagedExpandLegacyRequest.newBuilder() + .setContent("content951530617") + .setMaxResults(1128457243) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + echoClient.pagedExpandLegacyCallable().futureCall(request); + // Do something. + PagedExpandResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_PagedExpandLegacy_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpandlegacy/SyncPagedExpandLegacy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpandlegacy/SyncPagedExpandLegacy.java new file mode 100644 index 0000000000..6950f5819d --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpandlegacy/SyncPagedExpandLegacy.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_PagedExpandLegacy_sync] +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.PagedExpandLegacyRequest; +import com.google.showcase.v1beta1.PagedExpandResponse; + +public class SyncPagedExpandLegacy { + + public static void main(String[] args) throws Exception { + syncPagedExpandLegacy(); + } + + public static void syncPagedExpandLegacy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + PagedExpandLegacyRequest request = + PagedExpandLegacyRequest.newBuilder() + .setContent("content951530617") + .setMaxResults(1128457243) + .setPageToken("pageToken873572522") + .build(); + PagedExpandResponse response = echoClient.pagedExpandLegacy(request); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_PagedExpandLegacy_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMapped.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMapped.java new file mode 100644 index 0000000000..2de77c294b --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMapped.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_PagedExpandLegacyMapped_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.PagedExpandRequest; +import com.google.showcase.v1beta1.PagedExpandResponseList; +import java.util.Map; + +public class AsyncPagedExpandLegacyMapped { + + public static void main(String[] args) throws Exception { + asyncPagedExpandLegacyMapped(); + } + + public static void asyncPagedExpandLegacyMapped() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + PagedExpandRequest request = + PagedExpandRequest.newBuilder() + .setContent("content951530617") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture> future = + echoClient.pagedExpandLegacyMappedPagedCallable().futureCall(request); + // Do something. + for (Map.Entry element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Echo_PagedExpandLegacyMapped_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMappedPaged.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMappedPaged.java new file mode 100644 index 0000000000..2fe8f3bcf9 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMappedPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_PagedExpandLegacyMapped_Paged_async] +import com.google.common.base.Strings; +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse; +import com.google.showcase.v1beta1.PagedExpandRequest; +import com.google.showcase.v1beta1.PagedExpandResponseList; +import java.util.Map; + +public class AsyncPagedExpandLegacyMappedPaged { + + public static void main(String[] args) throws Exception { + asyncPagedExpandLegacyMappedPaged(); + } + + public static void asyncPagedExpandLegacyMappedPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + PagedExpandRequest request = + PagedExpandRequest.newBuilder() + .setContent("content951530617") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + PagedExpandLegacyMappedResponse response = + echoClient.pagedExpandLegacyMappedCallable().call(request); + for (Map.Entry element : response.getAlphabetizedList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END localhost7469_v1beta1_generated_Echo_PagedExpandLegacyMapped_Paged_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/SyncPagedExpandLegacyMapped.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/SyncPagedExpandLegacyMapped.java new file mode 100644 index 0000000000..0d1b20ffc0 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/SyncPagedExpandLegacyMapped.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_PagedExpandLegacyMapped_sync] +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.PagedExpandRequest; +import com.google.showcase.v1beta1.PagedExpandResponseList; +import java.util.Map; + +public class SyncPagedExpandLegacyMapped { + + public static void main(String[] args) throws Exception { + syncPagedExpandLegacyMapped(); + } + + public static void syncPagedExpandLegacyMapped() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + PagedExpandRequest request = + PagedExpandRequest.newBuilder() + .setContent("content951530617") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Map.Entry element : + echoClient.pagedExpandLegacyMapped(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Echo_PagedExpandLegacyMapped_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/setiampolicy/AsyncSetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 0000000000..87081e4916 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.EchoClient; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = echoClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_SetIamPolicy_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/setiampolicy/SyncSetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 0000000000..185b479595 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_SetIamPolicy_sync] +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.EchoClient; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = echoClient.setIamPolicy(request); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_SetIamPolicy_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/testiampermissions/AsyncTestIamPermissions.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 0000000000..e8c6120729 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.EchoClient; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + echoClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_TestIamPermissions_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/testiampermissions/SyncTestIamPermissions.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 0000000000..cb39d8bc3f --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_TestIamPermissions_sync] +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.EchoClient; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = echoClient.testIamPermissions(request); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_TestIamPermissions_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/wait/AsyncWait.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/wait/AsyncWait.java new file mode 100644 index 0000000000..12c244f037 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/wait/AsyncWait.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_Wait_async] +import com.google.api.core.ApiFuture; +import com.google.longrunning.Operation; +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.WaitRequest; + +public class AsyncWait { + + public static void main(String[] args) throws Exception { + asyncWait(); + } + + public static void asyncWait() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + WaitRequest request = WaitRequest.newBuilder().build(); + ApiFuture future = echoClient.waitCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_Wait_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/wait/AsyncWaitLRO.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/wait/AsyncWaitLRO.java new file mode 100644 index 0000000000..9806b16267 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/wait/AsyncWaitLRO.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_Wait_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.WaitMetadata; +import com.google.showcase.v1beta1.WaitRequest; +import com.google.showcase.v1beta1.WaitResponse; + +public class AsyncWaitLRO { + + public static void main(String[] args) throws Exception { + asyncWaitLRO(); + } + + public static void asyncWaitLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + WaitRequest request = WaitRequest.newBuilder().build(); + OperationFuture future = + echoClient.waitOperationCallable().futureCall(request); + // Do something. + WaitResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_Wait_LRO_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/wait/SyncWait.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/wait/SyncWait.java new file mode 100644 index 0000000000..f288cd96d1 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echo/wait/SyncWait.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Echo_Wait_sync] +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.WaitRequest; +import com.google.showcase.v1beta1.WaitResponse; + +public class SyncWait { + + public static void main(String[] args) throws Exception { + syncWait(); + } + + public static void syncWait() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EchoClient echoClient = EchoClient.create()) { + WaitRequest request = WaitRequest.newBuilder().build(); + WaitResponse response = echoClient.waitAsync(request).get(); + } + } +} +// [END localhost7469_v1beta1_generated_Echo_Wait_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echosettings/echo/SyncEcho.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echosettings/echo/SyncEcho.java new file mode 100644 index 0000000000..a8d8e83cd0 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echosettings/echo/SyncEcho.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_EchoSettings_Echo_sync] +import com.google.showcase.v1beta1.EchoSettings; +import java.time.Duration; + +public class SyncEcho { + + public static void main(String[] args) throws Exception { + syncEcho(); + } + + public static void syncEcho() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EchoSettings.Builder echoSettingsBuilder = EchoSettings.newBuilder(); + echoSettingsBuilder + .echoSettings() + .setRetrySettings( + echoSettingsBuilder + .echoSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + EchoSettings echoSettings = echoSettingsBuilder.build(); + } +} +// [END localhost7469_v1beta1_generated_EchoSettings_Echo_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echosettings/wait/SyncWait.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echosettings/wait/SyncWait.java new file mode 100644 index 0000000000..7e89263a71 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/echosettings/wait/SyncWait.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_EchoSettings_Wait_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.showcase.v1beta1.EchoSettings; +import java.time.Duration; + +public class SyncWait { + + public static void main(String[] args) throws Exception { + syncWait(); + } + + public static void syncWait() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EchoSettings.Builder echoSettingsBuilder = EchoSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + echoSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END localhost7469_v1beta1_generated_EchoSettings_Wait_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 0000000000..0625457c29 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.IdentitySettings; +import com.google.showcase.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IdentitySettings identitySettings = + IdentitySettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + IdentityClient identityClient = IdentityClient.create(identitySettings); + } +} +// [END localhost7469_v1beta1_generated_Identity_Create_SetCredentialsProvider_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/create/SyncCreateSetEndpoint.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/create/SyncCreateSetEndpoint.java new file mode 100644 index 0000000000..7a45fef915 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_Create_SetEndpoint_sync] +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.IdentitySettings; +import com.google.showcase.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IdentitySettings identitySettings = + IdentitySettings.newBuilder().setEndpoint(myEndpoint).build(); + IdentityClient identityClient = IdentityClient.create(identitySettings); + } +} +// [END localhost7469_v1beta1_generated_Identity_Create_SetEndpoint_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/create/SyncCreateUseHttpJsonTransport.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 0000000000..dbdf8dcc49 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_Create_UseHttpJsonTransport_sync] +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.IdentitySettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IdentitySettings identitySettings = IdentitySettings.newHttpJsonBuilder().build(); + IdentityClient identityClient = IdentityClient.create(identitySettings); + } +} +// [END localhost7469_v1beta1_generated_Identity_Create_UseHttpJsonTransport_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/createuser/AsyncCreateUser.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/createuser/AsyncCreateUser.java new file mode 100644 index 0000000000..6fec34f017 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/createuser/AsyncCreateUser.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_CreateUser_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.CreateUserRequest; +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.User; + +public class AsyncCreateUser { + + public static void main(String[] args) throws Exception { + asyncCreateUser(); + } + + public static void asyncCreateUser() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + CreateUserRequest request = + CreateUserRequest.newBuilder().setUser(User.newBuilder().build()).build(); + ApiFuture future = identityClient.createUserCallable().futureCall(request); + // Do something. + User response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_CreateUser_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/createuser/SyncCreateUser.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/createuser/SyncCreateUser.java new file mode 100644 index 0000000000..2016657f45 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/createuser/SyncCreateUser.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_CreateUser_sync] +import com.google.showcase.v1beta1.CreateUserRequest; +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.User; + +public class SyncCreateUser { + + public static void main(String[] args) throws Exception { + syncCreateUser(); + } + + public static void syncCreateUser() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + CreateUserRequest request = + CreateUserRequest.newBuilder().setUser(User.newBuilder().build()).build(); + User response = identityClient.createUser(request); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_CreateUser_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringString.java new file mode 100644 index 0000000000..f872d1d6be --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_CreateUser_StringString_sync] +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.User; + +public class SyncCreateUserStringString { + + public static void main(String[] args) throws Exception { + syncCreateUserStringString(); + } + + public static void syncCreateUserStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + String displayName = "displayName1714148973"; + String email = "email96619420"; + User response = identityClient.createUser(displayName, email); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_CreateUser_StringString_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringStringIntStringBooleanDouble.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringStringIntStringBooleanDouble.java new file mode 100644 index 0000000000..96b9c5546e --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringStringIntStringBooleanDouble.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_CreateUser_StringStringIntStringBooleanDouble_sync] +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.User; + +public class SyncCreateUserStringStringIntStringBooleanDouble { + + public static void main(String[] args) throws Exception { + syncCreateUserStringStringIntStringBooleanDouble(); + } + + public static void syncCreateUserStringStringIntStringBooleanDouble() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + String displayName = "displayName1714148973"; + String email = "email96619420"; + int age = 96511; + String nickname = "nickname70690926"; + boolean enableNotifications = true; + double heightFeet = -1032737338; + User response = + identityClient.createUser( + displayName, email, age, nickname, enableNotifications, heightFeet); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_CreateUser_StringStringIntStringBooleanDouble_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/deleteuser/AsyncDeleteUser.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/deleteuser/AsyncDeleteUser.java new file mode 100644 index 0000000000..9e8435f86a --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/deleteuser/AsyncDeleteUser.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_DeleteUser_async] +import com.google.api.core.ApiFuture; +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.DeleteUserRequest; +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.UserName; + +public class AsyncDeleteUser { + + public static void main(String[] args) throws Exception { + asyncDeleteUser(); + } + + public static void asyncDeleteUser() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + DeleteUserRequest request = + DeleteUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build(); + ApiFuture future = identityClient.deleteUserCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_DeleteUser_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUser.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUser.java new file mode 100644 index 0000000000..9c8b62dfeb --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUser.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_DeleteUser_sync] +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.DeleteUserRequest; +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.UserName; + +public class SyncDeleteUser { + + public static void main(String[] args) throws Exception { + syncDeleteUser(); + } + + public static void syncDeleteUser() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + DeleteUserRequest request = + DeleteUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build(); + identityClient.deleteUser(request); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_DeleteUser_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserString.java new file mode 100644 index 0000000000..165191ee84 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_DeleteUser_String_sync] +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.UserName; + +public class SyncDeleteUserString { + + public static void main(String[] args) throws Exception { + syncDeleteUserString(); + } + + public static void syncDeleteUserString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + String name = UserName.of("[USER]").toString(); + identityClient.deleteUser(name); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_DeleteUser_String_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserUsername.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserUsername.java new file mode 100644 index 0000000000..ee7a12d92c --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserUsername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_DeleteUser_Username_sync] +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.UserName; + +public class SyncDeleteUserUsername { + + public static void main(String[] args) throws Exception { + syncDeleteUserUsername(); + } + + public static void syncDeleteUserUsername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + UserName name = UserName.of("[USER]"); + identityClient.deleteUser(name); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_DeleteUser_Username_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getiampolicy/AsyncGetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 0000000000..6ceede5814 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.IdentityClient; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = identityClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_GetIamPolicy_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getiampolicy/SyncGetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 0000000000..035d4d590e --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_GetIamPolicy_sync] +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.IdentityClient; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = identityClient.getIamPolicy(request); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_GetIamPolicy_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getlocation/AsyncGetLocation.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getlocation/AsyncGetLocation.java new file mode 100644 index 0000000000..bf0b58fd43 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.IdentityClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = identityClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_GetLocation_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getlocation/SyncGetLocation.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getlocation/SyncGetLocation.java new file mode 100644 index 0000000000..099238c984 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.IdentityClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = identityClient.getLocation(request); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_GetLocation_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getuser/AsyncGetUser.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getuser/AsyncGetUser.java new file mode 100644 index 0000000000..d69b16becd --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getuser/AsyncGetUser.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_GetUser_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.GetUserRequest; +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.User; +import com.google.showcase.v1beta1.UserName; + +public class AsyncGetUser { + + public static void main(String[] args) throws Exception { + asyncGetUser(); + } + + public static void asyncGetUser() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + GetUserRequest request = + GetUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build(); + ApiFuture future = identityClient.getUserCallable().futureCall(request); + // Do something. + User response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_GetUser_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getuser/SyncGetUser.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getuser/SyncGetUser.java new file mode 100644 index 0000000000..68f86893e8 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getuser/SyncGetUser.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_GetUser_sync] +import com.google.showcase.v1beta1.GetUserRequest; +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.User; +import com.google.showcase.v1beta1.UserName; + +public class SyncGetUser { + + public static void main(String[] args) throws Exception { + syncGetUser(); + } + + public static void syncGetUser() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + GetUserRequest request = + GetUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build(); + User response = identityClient.getUser(request); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_GetUser_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getuser/SyncGetUserString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getuser/SyncGetUserString.java new file mode 100644 index 0000000000..9ea8b92155 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getuser/SyncGetUserString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_GetUser_String_sync] +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.User; +import com.google.showcase.v1beta1.UserName; + +public class SyncGetUserString { + + public static void main(String[] args) throws Exception { + syncGetUserString(); + } + + public static void syncGetUserString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + String name = UserName.of("[USER]").toString(); + User response = identityClient.getUser(name); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_GetUser_String_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getuser/SyncGetUserUsername.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getuser/SyncGetUserUsername.java new file mode 100644 index 0000000000..16a8a95e02 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/getuser/SyncGetUserUsername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_GetUser_Username_sync] +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.User; +import com.google.showcase.v1beta1.UserName; + +public class SyncGetUserUsername { + + public static void main(String[] args) throws Exception { + syncGetUserUsername(); + } + + public static void syncGetUserUsername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + UserName name = UserName.of("[USER]"); + User response = identityClient.getUser(name); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_GetUser_Username_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocations.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocations.java new file mode 100644 index 0000000000..9356741e38 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocations.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.IdentityClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = identityClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Identity_ListLocations_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocationsPaged.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 0000000000..ee30246e0b --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; +import com.google.showcase.v1beta1.IdentityClient; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = identityClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END localhost7469_v1beta1_generated_Identity_ListLocations_Paged_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/listlocations/SyncListLocations.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/listlocations/SyncListLocations.java new file mode 100644 index 0000000000..3bb6ff19fb --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.IdentityClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : identityClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Identity_ListLocations_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/listusers/AsyncListUsers.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/listusers/AsyncListUsers.java new file mode 100644 index 0000000000..c34a2b0525 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/listusers/AsyncListUsers.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_ListUsers_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.ListUsersRequest; +import com.google.showcase.v1beta1.User; + +public class AsyncListUsers { + + public static void main(String[] args) throws Exception { + asyncListUsers(); + } + + public static void asyncListUsers() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + ListUsersRequest request = + ListUsersRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = identityClient.listUsersPagedCallable().futureCall(request); + // Do something. + for (User element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Identity_ListUsers_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/listusers/AsyncListUsersPaged.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/listusers/AsyncListUsersPaged.java new file mode 100644 index 0000000000..3fbe20937e --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/listusers/AsyncListUsersPaged.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_ListUsers_Paged_async] +import com.google.common.base.Strings; +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.ListUsersRequest; +import com.google.showcase.v1beta1.ListUsersResponse; +import com.google.showcase.v1beta1.User; + +public class AsyncListUsersPaged { + + public static void main(String[] args) throws Exception { + asyncListUsersPaged(); + } + + public static void asyncListUsersPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + ListUsersRequest request = + ListUsersRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListUsersResponse response = identityClient.listUsersCallable().call(request); + for (User element : response.getUsersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END localhost7469_v1beta1_generated_Identity_ListUsers_Paged_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/listusers/SyncListUsers.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/listusers/SyncListUsers.java new file mode 100644 index 0000000000..03b25aa928 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/listusers/SyncListUsers.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_ListUsers_sync] +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.ListUsersRequest; +import com.google.showcase.v1beta1.User; + +public class SyncListUsers { + + public static void main(String[] args) throws Exception { + syncListUsers(); + } + + public static void syncListUsers() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + ListUsersRequest request = + ListUsersRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (User element : identityClient.listUsers(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Identity_ListUsers_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/setiampolicy/AsyncSetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 0000000000..9b03f14053 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.IdentityClient; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = identityClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_SetIamPolicy_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/setiampolicy/SyncSetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 0000000000..1d76c25bb4 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_SetIamPolicy_sync] +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.IdentityClient; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = identityClient.setIamPolicy(request); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_SetIamPolicy_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/testiampermissions/AsyncTestIamPermissions.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 0000000000..445d4a10b7 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.IdentityClient; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + identityClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_TestIamPermissions_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/testiampermissions/SyncTestIamPermissions.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 0000000000..6847e90f93 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_TestIamPermissions_sync] +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.IdentityClient; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = identityClient.testIamPermissions(request); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_TestIamPermissions_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/updateuser/AsyncUpdateUser.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/updateuser/AsyncUpdateUser.java new file mode 100644 index 0000000000..1a5f8bb386 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/updateuser/AsyncUpdateUser.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_UpdateUser_async] +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.UpdateUserRequest; +import com.google.showcase.v1beta1.User; + +public class AsyncUpdateUser { + + public static void main(String[] args) throws Exception { + asyncUpdateUser(); + } + + public static void asyncUpdateUser() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + UpdateUserRequest request = + UpdateUserRequest.newBuilder() + .setUser(User.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = identityClient.updateUserCallable().futureCall(request); + // Do something. + User response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_UpdateUser_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/updateuser/SyncUpdateUser.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/updateuser/SyncUpdateUser.java new file mode 100644 index 0000000000..6e7a0680a7 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identity/updateuser/SyncUpdateUser.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Identity_UpdateUser_sync] +import com.google.protobuf.FieldMask; +import com.google.showcase.v1beta1.IdentityClient; +import com.google.showcase.v1beta1.UpdateUserRequest; +import com.google.showcase.v1beta1.User; + +public class SyncUpdateUser { + + public static void main(String[] args) throws Exception { + syncUpdateUser(); + } + + public static void syncUpdateUser() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityClient identityClient = IdentityClient.create()) { + UpdateUserRequest request = + UpdateUserRequest.newBuilder() + .setUser(User.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + User response = identityClient.updateUser(request); + } + } +} +// [END localhost7469_v1beta1_generated_Identity_UpdateUser_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identitysettings/createuser/SyncCreateUser.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identitysettings/createuser/SyncCreateUser.java new file mode 100644 index 0000000000..89b35820f0 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/identitysettings/createuser/SyncCreateUser.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_IdentitySettings_CreateUser_sync] +import com.google.showcase.v1beta1.IdentitySettings; +import java.time.Duration; + +public class SyncCreateUser { + + public static void main(String[] args) throws Exception { + syncCreateUser(); + } + + public static void syncCreateUser() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IdentitySettings.Builder identitySettingsBuilder = IdentitySettings.newBuilder(); + identitySettingsBuilder + .createUserSettings() + .setRetrySettings( + identitySettingsBuilder + .createUserSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + IdentitySettings identitySettings = identitySettingsBuilder.build(); + } +} +// [END localhost7469_v1beta1_generated_IdentitySettings_CreateUser_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/connect/AsyncConnect.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/connect/AsyncConnect.java new file mode 100644 index 0000000000..113f206240 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/connect/AsyncConnect.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_Connect_async] +import com.google.api.gax.rpc.BidiStream; +import com.google.showcase.v1beta1.ConnectRequest; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.StreamBlurbsResponse; + +public class AsyncConnect { + + public static void main(String[] args) throws Exception { + asyncConnect(); + } + + public static void asyncConnect() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + BidiStream bidiStream = + messagingClient.connectCallable().call(); + ConnectRequest request = ConnectRequest.newBuilder().build(); + bidiStream.send(request); + for (StreamBlurbsResponse response : bidiStream) { + // Do something when a response is received. + } + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_Connect_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 0000000000..5318a7ba82 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.MessagingSettings; +import com.google.showcase.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MessagingSettings messagingSettings = + MessagingSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + MessagingClient messagingClient = MessagingClient.create(messagingSettings); + } +} +// [END localhost7469_v1beta1_generated_Messaging_Create_SetCredentialsProvider_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/create/SyncCreateSetEndpoint.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/create/SyncCreateSetEndpoint.java new file mode 100644 index 0000000000..d08ebb72ca --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_Create_SetEndpoint_sync] +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.MessagingSettings; +import com.google.showcase.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MessagingSettings messagingSettings = + MessagingSettings.newBuilder().setEndpoint(myEndpoint).build(); + MessagingClient messagingClient = MessagingClient.create(messagingSettings); + } +} +// [END localhost7469_v1beta1_generated_Messaging_Create_SetEndpoint_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/create/SyncCreateUseHttpJsonTransport.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 0000000000..91ecadc5e7 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_Create_UseHttpJsonTransport_sync] +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.MessagingSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MessagingSettings messagingSettings = MessagingSettings.newHttpJsonBuilder().build(); + MessagingClient messagingClient = MessagingClient.create(messagingSettings); + } +} +// [END localhost7469_v1beta1_generated_Messaging_Create_UseHttpJsonTransport_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/AsyncCreateBlurb.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/AsyncCreateBlurb.java new file mode 100644 index 0000000000..ba4a99980b --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/AsyncCreateBlurb.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.CreateBlurbRequest; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; + +public class AsyncCreateBlurb { + + public static void main(String[] args) throws Exception { + asyncCreateBlurb(); + } + + public static void asyncCreateBlurb() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + CreateBlurbRequest request = + CreateBlurbRequest.newBuilder() + .setParent(ProfileName.of("[USER]").toString()) + .setBlurb(Blurb.newBuilder().build()) + .build(); + ApiFuture future = messagingClient.createBlurbCallable().futureCall(request); + // Do something. + Blurb response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurb.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurb.java new file mode 100644 index 0000000000..c6c7322d18 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurb.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_sync] +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.CreateBlurbRequest; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; + +public class SyncCreateBlurb { + + public static void main(String[] args) throws Exception { + syncCreateBlurb(); + } + + public static void syncCreateBlurb() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + CreateBlurbRequest request = + CreateBlurbRequest.newBuilder() + .setParent(ProfileName.of("[USER]").toString()) + .setBlurb(Blurb.newBuilder().build()) + .build(); + Blurb response = messagingClient.createBlurb(request); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringBytestring.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringBytestring.java new file mode 100644 index 0000000000..7432a1a2e5 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringBytestring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_ProfilenameStringBytestring_sync] +import com.google.protobuf.ByteString; +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; +import com.google.showcase.v1beta1.UserName; + +public class SyncCreateBlurbProfilenameStringBytestring { + + public static void main(String[] args) throws Exception { + syncCreateBlurbProfilenameStringBytestring(); + } + + public static void syncCreateBlurbProfilenameStringBytestring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + ProfileName parent = ProfileName.of("[USER]"); + String user = UserName.of("[USER]").toString(); + ByteString image = ByteString.EMPTY; + Blurb response = messagingClient.createBlurb(parent, user, image); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_ProfilenameStringBytestring_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringString.java new file mode 100644 index 0000000000..97b2a92e91 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_ProfilenameStringString_sync] +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; +import com.google.showcase.v1beta1.UserName; + +public class SyncCreateBlurbProfilenameStringString { + + public static void main(String[] args) throws Exception { + syncCreateBlurbProfilenameStringString(); + } + + public static void syncCreateBlurbProfilenameStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + ProfileName parent = ProfileName.of("[USER]"); + String user = UserName.of("[USER]").toString(); + String text = "text3556653"; + Blurb response = messagingClient.createBlurb(parent, user, text); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_ProfilenameStringString_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameBytestring.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameBytestring.java new file mode 100644 index 0000000000..84b27af535 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameBytestring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_ProfilenameUsernameBytestring_sync] +import com.google.protobuf.ByteString; +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; +import com.google.showcase.v1beta1.UserName; + +public class SyncCreateBlurbProfilenameUsernameBytestring { + + public static void main(String[] args) throws Exception { + syncCreateBlurbProfilenameUsernameBytestring(); + } + + public static void syncCreateBlurbProfilenameUsernameBytestring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + ProfileName parent = ProfileName.of("[USER]"); + UserName user = UserName.of("[USER]"); + ByteString image = ByteString.EMPTY; + Blurb response = messagingClient.createBlurb(parent, user, image); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_ProfilenameUsernameBytestring_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameString.java new file mode 100644 index 0000000000..0db273c5a0 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_ProfilenameUsernameString_sync] +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; +import com.google.showcase.v1beta1.UserName; + +public class SyncCreateBlurbProfilenameUsernameString { + + public static void main(String[] args) throws Exception { + syncCreateBlurbProfilenameUsernameString(); + } + + public static void syncCreateBlurbProfilenameUsernameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + ProfileName parent = ProfileName.of("[USER]"); + UserName user = UserName.of("[USER]"); + String text = "text3556653"; + Blurb response = messagingClient.createBlurb(parent, user, text); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_ProfilenameUsernameString_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringBytestring.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringBytestring.java new file mode 100644 index 0000000000..c27bfcadcd --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringBytestring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_RoomnameStringBytestring_sync] +import com.google.protobuf.ByteString; +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.RoomName; +import com.google.showcase.v1beta1.UserName; + +public class SyncCreateBlurbRoomnameStringBytestring { + + public static void main(String[] args) throws Exception { + syncCreateBlurbRoomnameStringBytestring(); + } + + public static void syncCreateBlurbRoomnameStringBytestring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + RoomName parent = RoomName.of("[ROOM]"); + String user = UserName.of("[USER]").toString(); + ByteString image = ByteString.EMPTY; + Blurb response = messagingClient.createBlurb(parent, user, image); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_RoomnameStringBytestring_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringString.java new file mode 100644 index 0000000000..f5d08ad6ef --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_RoomnameStringString_sync] +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.RoomName; +import com.google.showcase.v1beta1.UserName; + +public class SyncCreateBlurbRoomnameStringString { + + public static void main(String[] args) throws Exception { + syncCreateBlurbRoomnameStringString(); + } + + public static void syncCreateBlurbRoomnameStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + RoomName parent = RoomName.of("[ROOM]"); + String user = UserName.of("[USER]").toString(); + String text = "text3556653"; + Blurb response = messagingClient.createBlurb(parent, user, text); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_RoomnameStringString_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameBytestring.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameBytestring.java new file mode 100644 index 0000000000..3cbf565122 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameBytestring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_RoomnameUsernameBytestring_sync] +import com.google.protobuf.ByteString; +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.RoomName; +import com.google.showcase.v1beta1.UserName; + +public class SyncCreateBlurbRoomnameUsernameBytestring { + + public static void main(String[] args) throws Exception { + syncCreateBlurbRoomnameUsernameBytestring(); + } + + public static void syncCreateBlurbRoomnameUsernameBytestring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + RoomName parent = RoomName.of("[ROOM]"); + UserName user = UserName.of("[USER]"); + ByteString image = ByteString.EMPTY; + Blurb response = messagingClient.createBlurb(parent, user, image); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_RoomnameUsernameBytestring_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameString.java new file mode 100644 index 0000000000..2e1378f0a8 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_RoomnameUsernameString_sync] +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.RoomName; +import com.google.showcase.v1beta1.UserName; + +public class SyncCreateBlurbRoomnameUsernameString { + + public static void main(String[] args) throws Exception { + syncCreateBlurbRoomnameUsernameString(); + } + + public static void syncCreateBlurbRoomnameUsernameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + RoomName parent = RoomName.of("[ROOM]"); + UserName user = UserName.of("[USER]"); + String text = "text3556653"; + Blurb response = messagingClient.createBlurb(parent, user, text); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_RoomnameUsernameString_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringBytestring.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringBytestring.java new file mode 100644 index 0000000000..a98f3fa4aa --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringBytestring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_StringStringBytestring_sync] +import com.google.protobuf.ByteString; +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; +import com.google.showcase.v1beta1.UserName; + +public class SyncCreateBlurbStringStringBytestring { + + public static void main(String[] args) throws Exception { + syncCreateBlurbStringStringBytestring(); + } + + public static void syncCreateBlurbStringStringBytestring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + String parent = ProfileName.of("[USER]").toString(); + String user = UserName.of("[USER]").toString(); + ByteString image = ByteString.EMPTY; + Blurb response = messagingClient.createBlurb(parent, user, image); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_StringStringBytestring_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringString.java new file mode 100644 index 0000000000..ac50d4ad70 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_StringStringString_sync] +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; +import com.google.showcase.v1beta1.UserName; + +public class SyncCreateBlurbStringStringString { + + public static void main(String[] args) throws Exception { + syncCreateBlurbStringStringString(); + } + + public static void syncCreateBlurbStringStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + String parent = ProfileName.of("[USER]").toString(); + String user = UserName.of("[USER]").toString(); + String text = "text3556653"; + Blurb response = messagingClient.createBlurb(parent, user, text); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_StringStringString_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameBytestring.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameBytestring.java new file mode 100644 index 0000000000..c3c7f8069d --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameBytestring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_StringUsernameBytestring_sync] +import com.google.protobuf.ByteString; +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; +import com.google.showcase.v1beta1.UserName; + +public class SyncCreateBlurbStringUsernameBytestring { + + public static void main(String[] args) throws Exception { + syncCreateBlurbStringUsernameBytestring(); + } + + public static void syncCreateBlurbStringUsernameBytestring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + String parent = ProfileName.of("[USER]").toString(); + UserName user = UserName.of("[USER]"); + ByteString image = ByteString.EMPTY; + Blurb response = messagingClient.createBlurb(parent, user, image); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_StringUsernameBytestring_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameString.java new file mode 100644 index 0000000000..4da5504ec7 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_StringUsernameString_sync] +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; +import com.google.showcase.v1beta1.UserName; + +public class SyncCreateBlurbStringUsernameString { + + public static void main(String[] args) throws Exception { + syncCreateBlurbStringUsernameString(); + } + + public static void syncCreateBlurbStringUsernameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + String parent = ProfileName.of("[USER]").toString(); + UserName user = UserName.of("[USER]"); + String text = "text3556653"; + Blurb response = messagingClient.createBlurb(parent, user, text); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_StringUsernameString_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createroom/AsyncCreateRoom.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createroom/AsyncCreateRoom.java new file mode 100644 index 0000000000..3250406153 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createroom/AsyncCreateRoom.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_CreateRoom_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.CreateRoomRequest; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.Room; + +public class AsyncCreateRoom { + + public static void main(String[] args) throws Exception { + asyncCreateRoom(); + } + + public static void asyncCreateRoom() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + CreateRoomRequest request = + CreateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build(); + ApiFuture future = messagingClient.createRoomCallable().futureCall(request); + // Do something. + Room response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_CreateRoom_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoom.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoom.java new file mode 100644 index 0000000000..7c7a72842c --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoom.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_CreateRoom_sync] +import com.google.showcase.v1beta1.CreateRoomRequest; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.Room; + +public class SyncCreateRoom { + + public static void main(String[] args) throws Exception { + syncCreateRoom(); + } + + public static void syncCreateRoom() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + CreateRoomRequest request = + CreateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build(); + Room response = messagingClient.createRoom(request); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_CreateRoom_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoomStringString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoomStringString.java new file mode 100644 index 0000000000..28439adc3d --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoomStringString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_CreateRoom_StringString_sync] +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.Room; + +public class SyncCreateRoomStringString { + + public static void main(String[] args) throws Exception { + syncCreateRoomStringString(); + } + + public static void syncCreateRoomStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + String displayName = "displayName1714148973"; + String description = "description-1724546052"; + Room response = messagingClient.createRoom(displayName, description); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_CreateRoom_StringString_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteblurb/AsyncDeleteBlurb.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteblurb/AsyncDeleteBlurb.java new file mode 100644 index 0000000000..95fbf2c1ce --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteblurb/AsyncDeleteBlurb.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_DeleteBlurb_async] +import com.google.api.core.ApiFuture; +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.DeleteBlurbRequest; +import com.google.showcase.v1beta1.MessagingClient; + +public class AsyncDeleteBlurb { + + public static void main(String[] args) throws Exception { + asyncDeleteBlurb(); + } + + public static void asyncDeleteBlurb() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + DeleteBlurbRequest request = + DeleteBlurbRequest.newBuilder() + .setName(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .build(); + ApiFuture future = messagingClient.deleteBlurbCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_DeleteBlurb_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurb.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurb.java new file mode 100644 index 0000000000..d216d5b4c0 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurb.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_DeleteBlurb_sync] +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.DeleteBlurbRequest; +import com.google.showcase.v1beta1.MessagingClient; + +public class SyncDeleteBlurb { + + public static void main(String[] args) throws Exception { + syncDeleteBlurb(); + } + + public static void syncDeleteBlurb() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + DeleteBlurbRequest request = + DeleteBlurbRequest.newBuilder() + .setName(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .build(); + messagingClient.deleteBlurb(request); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_DeleteBlurb_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbBlurbname.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbBlurbname.java new file mode 100644 index 0000000000..b102f30430 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbBlurbname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_DeleteBlurb_Blurbname_sync] +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.MessagingClient; + +public class SyncDeleteBlurbBlurbname { + + public static void main(String[] args) throws Exception { + syncDeleteBlurbBlurbname(); + } + + public static void syncDeleteBlurbBlurbname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + BlurbName name = BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]"); + messagingClient.deleteBlurb(name); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_DeleteBlurb_Blurbname_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbString.java new file mode 100644 index 0000000000..2230a88b8f --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_DeleteBlurb_String_sync] +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.MessagingClient; + +public class SyncDeleteBlurbString { + + public static void main(String[] args) throws Exception { + syncDeleteBlurbString(); + } + + public static void syncDeleteBlurbString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + String name = + BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]").toString(); + messagingClient.deleteBlurb(name); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_DeleteBlurb_String_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteroom/AsyncDeleteRoom.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteroom/AsyncDeleteRoom.java new file mode 100644 index 0000000000..803cc7d6f4 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteroom/AsyncDeleteRoom.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_DeleteRoom_async] +import com.google.api.core.ApiFuture; +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.DeleteRoomRequest; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.RoomName; + +public class AsyncDeleteRoom { + + public static void main(String[] args) throws Exception { + asyncDeleteRoom(); + } + + public static void asyncDeleteRoom() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + DeleteRoomRequest request = + DeleteRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build(); + ApiFuture future = messagingClient.deleteRoomCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_DeleteRoom_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoom.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoom.java new file mode 100644 index 0000000000..7368cc8ffa --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoom.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_DeleteRoom_sync] +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.DeleteRoomRequest; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.RoomName; + +public class SyncDeleteRoom { + + public static void main(String[] args) throws Exception { + syncDeleteRoom(); + } + + public static void syncDeleteRoom() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + DeleteRoomRequest request = + DeleteRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build(); + messagingClient.deleteRoom(request); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_DeleteRoom_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomRoomname.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomRoomname.java new file mode 100644 index 0000000000..2e3e8f0c86 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomRoomname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_DeleteRoom_Roomname_sync] +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.RoomName; + +public class SyncDeleteRoomRoomname { + + public static void main(String[] args) throws Exception { + syncDeleteRoomRoomname(); + } + + public static void syncDeleteRoomRoomname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + RoomName name = RoomName.of("[ROOM]"); + messagingClient.deleteRoom(name); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_DeleteRoom_Roomname_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomString.java new file mode 100644 index 0000000000..73e3664a3c --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_DeleteRoom_String_sync] +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.RoomName; + +public class SyncDeleteRoomString { + + public static void main(String[] args) throws Exception { + syncDeleteRoomString(); + } + + public static void syncDeleteRoomString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + String name = RoomName.of("[ROOM]").toString(); + messagingClient.deleteRoom(name); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_DeleteRoom_String_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getblurb/AsyncGetBlurb.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getblurb/AsyncGetBlurb.java new file mode 100644 index 0000000000..5677910e86 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getblurb/AsyncGetBlurb.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_GetBlurb_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.GetBlurbRequest; +import com.google.showcase.v1beta1.MessagingClient; + +public class AsyncGetBlurb { + + public static void main(String[] args) throws Exception { + asyncGetBlurb(); + } + + public static void asyncGetBlurb() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + GetBlurbRequest request = + GetBlurbRequest.newBuilder() + .setName(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .build(); + ApiFuture future = messagingClient.getBlurbCallable().futureCall(request); + // Do something. + Blurb response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_GetBlurb_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurb.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurb.java new file mode 100644 index 0000000000..0928acb040 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurb.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_GetBlurb_sync] +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.GetBlurbRequest; +import com.google.showcase.v1beta1.MessagingClient; + +public class SyncGetBlurb { + + public static void main(String[] args) throws Exception { + syncGetBlurb(); + } + + public static void syncGetBlurb() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + GetBlurbRequest request = + GetBlurbRequest.newBuilder() + .setName(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .build(); + Blurb response = messagingClient.getBlurb(request); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_GetBlurb_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbBlurbname.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbBlurbname.java new file mode 100644 index 0000000000..cfb74de652 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbBlurbname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_GetBlurb_Blurbname_sync] +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.MessagingClient; + +public class SyncGetBlurbBlurbname { + + public static void main(String[] args) throws Exception { + syncGetBlurbBlurbname(); + } + + public static void syncGetBlurbBlurbname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + BlurbName name = BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]"); + Blurb response = messagingClient.getBlurb(name); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_GetBlurb_Blurbname_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbString.java new file mode 100644 index 0000000000..e51f78459e --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_GetBlurb_String_sync] +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.MessagingClient; + +public class SyncGetBlurbString { + + public static void main(String[] args) throws Exception { + syncGetBlurbString(); + } + + public static void syncGetBlurbString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + String name = + BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]").toString(); + Blurb response = messagingClient.getBlurb(name); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_GetBlurb_String_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getiampolicy/AsyncGetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 0000000000..4e1ce94df5 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.MessagingClient; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = messagingClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_GetIamPolicy_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getiampolicy/SyncGetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 0000000000..e7ac32f971 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_GetIamPolicy_sync] +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.MessagingClient; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = messagingClient.getIamPolicy(request); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_GetIamPolicy_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getlocation/AsyncGetLocation.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getlocation/AsyncGetLocation.java new file mode 100644 index 0000000000..3a76c3a5fa --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.MessagingClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = messagingClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_GetLocation_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getlocation/SyncGetLocation.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getlocation/SyncGetLocation.java new file mode 100644 index 0000000000..19239d265f --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.MessagingClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = messagingClient.getLocation(request); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_GetLocation_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getroom/AsyncGetRoom.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getroom/AsyncGetRoom.java new file mode 100644 index 0000000000..e089ca0a44 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getroom/AsyncGetRoom.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_GetRoom_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.GetRoomRequest; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.Room; +import com.google.showcase.v1beta1.RoomName; + +public class AsyncGetRoom { + + public static void main(String[] args) throws Exception { + asyncGetRoom(); + } + + public static void asyncGetRoom() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + GetRoomRequest request = + GetRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build(); + ApiFuture future = messagingClient.getRoomCallable().futureCall(request); + // Do something. + Room response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_GetRoom_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoom.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoom.java new file mode 100644 index 0000000000..6ef175480d --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoom.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_GetRoom_sync] +import com.google.showcase.v1beta1.GetRoomRequest; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.Room; +import com.google.showcase.v1beta1.RoomName; + +public class SyncGetRoom { + + public static void main(String[] args) throws Exception { + syncGetRoom(); + } + + public static void syncGetRoom() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + GetRoomRequest request = + GetRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build(); + Room response = messagingClient.getRoom(request); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_GetRoom_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomRoomname.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomRoomname.java new file mode 100644 index 0000000000..921fa406ad --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomRoomname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_GetRoom_Roomname_sync] +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.Room; +import com.google.showcase.v1beta1.RoomName; + +public class SyncGetRoomRoomname { + + public static void main(String[] args) throws Exception { + syncGetRoomRoomname(); + } + + public static void syncGetRoomRoomname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + RoomName name = RoomName.of("[ROOM]"); + Room response = messagingClient.getRoom(name); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_GetRoom_Roomname_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomString.java new file mode 100644 index 0000000000..05d8780972 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_GetRoom_String_sync] +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.Room; +import com.google.showcase.v1beta1.RoomName; + +public class SyncGetRoomString { + + public static void main(String[] args) throws Exception { + syncGetRoomString(); + } + + public static void syncGetRoomString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + String name = RoomName.of("[ROOM]").toString(); + Room response = messagingClient.getRoom(name); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_GetRoom_String_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbs.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbs.java new file mode 100644 index 0000000000..56a92583eb --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbs.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_ListBlurbs_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.ListBlurbsRequest; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; + +public class AsyncListBlurbs { + + public static void main(String[] args) throws Exception { + asyncListBlurbs(); + } + + public static void asyncListBlurbs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + ListBlurbsRequest request = + ListBlurbsRequest.newBuilder() + .setParent(ProfileName.of("[USER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = messagingClient.listBlurbsPagedCallable().futureCall(request); + // Do something. + for (Blurb element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_ListBlurbs_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbsPaged.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbsPaged.java new file mode 100644 index 0000000000..850605207d --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_ListBlurbs_Paged_async] +import com.google.common.base.Strings; +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.ListBlurbsRequest; +import com.google.showcase.v1beta1.ListBlurbsResponse; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; + +public class AsyncListBlurbsPaged { + + public static void main(String[] args) throws Exception { + asyncListBlurbsPaged(); + } + + public static void asyncListBlurbsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + ListBlurbsRequest request = + ListBlurbsRequest.newBuilder() + .setParent(ProfileName.of("[USER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListBlurbsResponse response = messagingClient.listBlurbsCallable().call(request); + for (Blurb element : response.getBlurbsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_ListBlurbs_Paged_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbs.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbs.java new file mode 100644 index 0000000000..24f5d232e6 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbs.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_ListBlurbs_sync] +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.ListBlurbsRequest; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; + +public class SyncListBlurbs { + + public static void main(String[] args) throws Exception { + syncListBlurbs(); + } + + public static void syncListBlurbs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + ListBlurbsRequest request = + ListBlurbsRequest.newBuilder() + .setParent(ProfileName.of("[USER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Blurb element : messagingClient.listBlurbs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_ListBlurbs_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsProfilename.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsProfilename.java new file mode 100644 index 0000000000..41492c09fd --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsProfilename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_ListBlurbs_Profilename_sync] +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; + +public class SyncListBlurbsProfilename { + + public static void main(String[] args) throws Exception { + syncListBlurbsProfilename(); + } + + public static void syncListBlurbsProfilename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + ProfileName parent = ProfileName.of("[USER]"); + for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_ListBlurbs_Profilename_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsRoomname.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsRoomname.java new file mode 100644 index 0000000000..a6e682b4f2 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsRoomname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_ListBlurbs_Roomname_sync] +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.RoomName; + +public class SyncListBlurbsRoomname { + + public static void main(String[] args) throws Exception { + syncListBlurbsRoomname(); + } + + public static void syncListBlurbsRoomname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + RoomName parent = RoomName.of("[ROOM]"); + for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_ListBlurbs_Roomname_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsString.java new file mode 100644 index 0000000000..125eb2297e --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_ListBlurbs_String_sync] +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; + +public class SyncListBlurbsString { + + public static void main(String[] args) throws Exception { + syncListBlurbsString(); + } + + public static void syncListBlurbsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + String parent = ProfileName.of("[USER]").toString(); + for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_ListBlurbs_String_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocations.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocations.java new file mode 100644 index 0000000000..142d153192 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocations.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.MessagingClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = messagingClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_ListLocations_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocationsPaged.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 0000000000..546699d2f9 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; +import com.google.showcase.v1beta1.MessagingClient; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = messagingClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_ListLocations_Paged_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listlocations/SyncListLocations.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listlocations/SyncListLocations.java new file mode 100644 index 0000000000..ee10480e7d --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.MessagingClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : messagingClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_ListLocations_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRooms.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRooms.java new file mode 100644 index 0000000000..2f1cce9915 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRooms.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_ListRooms_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.ListRoomsRequest; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.Room; + +public class AsyncListRooms { + + public static void main(String[] args) throws Exception { + asyncListRooms(); + } + + public static void asyncListRooms() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + ListRoomsRequest request = + ListRoomsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = messagingClient.listRoomsPagedCallable().futureCall(request); + // Do something. + for (Room element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_ListRooms_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRoomsPaged.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRoomsPaged.java new file mode 100644 index 0000000000..e0caffbc03 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRoomsPaged.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_ListRooms_Paged_async] +import com.google.common.base.Strings; +import com.google.showcase.v1beta1.ListRoomsRequest; +import com.google.showcase.v1beta1.ListRoomsResponse; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.Room; + +public class AsyncListRoomsPaged { + + public static void main(String[] args) throws Exception { + asyncListRoomsPaged(); + } + + public static void asyncListRoomsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + ListRoomsRequest request = + ListRoomsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListRoomsResponse response = messagingClient.listRoomsCallable().call(request); + for (Room element : response.getRoomsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_ListRooms_Paged_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listrooms/SyncListRooms.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listrooms/SyncListRooms.java new file mode 100644 index 0000000000..e4797ba13c --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/listrooms/SyncListRooms.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_ListRooms_sync] +import com.google.showcase.v1beta1.ListRoomsRequest; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.Room; + +public class SyncListRooms { + + public static void main(String[] args) throws Exception { + syncListRooms(); + } + + public static void syncListRooms() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + ListRoomsRequest request = + ListRoomsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Room element : messagingClient.listRooms(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_ListRooms_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbs.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbs.java new file mode 100644 index 0000000000..39dd700c1d --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbs.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_SearchBlurbs_async] +import com.google.api.core.ApiFuture; +import com.google.longrunning.Operation; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; +import com.google.showcase.v1beta1.SearchBlurbsRequest; + +public class AsyncSearchBlurbs { + + public static void main(String[] args) throws Exception { + asyncSearchBlurbs(); + } + + public static void asyncSearchBlurbs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + SearchBlurbsRequest request = + SearchBlurbsRequest.newBuilder() + .setQuery("query107944136") + .setParent(ProfileName.of("[USER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = messagingClient.searchBlurbsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_SearchBlurbs_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbsLRO.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbsLRO.java new file mode 100644 index 0000000000..37242fc63a --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbsLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_SearchBlurbs_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; +import com.google.showcase.v1beta1.SearchBlurbsMetadata; +import com.google.showcase.v1beta1.SearchBlurbsRequest; +import com.google.showcase.v1beta1.SearchBlurbsResponse; + +public class AsyncSearchBlurbsLRO { + + public static void main(String[] args) throws Exception { + asyncSearchBlurbsLRO(); + } + + public static void asyncSearchBlurbsLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + SearchBlurbsRequest request = + SearchBlurbsRequest.newBuilder() + .setQuery("query107944136") + .setParent(ProfileName.of("[USER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + OperationFuture future = + messagingClient.searchBlurbsOperationCallable().futureCall(request); + // Do something. + SearchBlurbsResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_SearchBlurbs_LRO_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbs.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbs.java new file mode 100644 index 0000000000..76d8088c1e --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbs.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_SearchBlurbs_sync] +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; +import com.google.showcase.v1beta1.SearchBlurbsRequest; +import com.google.showcase.v1beta1.SearchBlurbsResponse; + +public class SyncSearchBlurbs { + + public static void main(String[] args) throws Exception { + syncSearchBlurbs(); + } + + public static void syncSearchBlurbs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + SearchBlurbsRequest request = + SearchBlurbsRequest.newBuilder() + .setQuery("query107944136") + .setParent(ProfileName.of("[USER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + SearchBlurbsResponse response = messagingClient.searchBlurbsAsync(request).get(); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_SearchBlurbs_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsProfilenameString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsProfilenameString.java new file mode 100644 index 0000000000..cc045713fe --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsProfilenameString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_SearchBlurbs_ProfilenameString_sync] +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; +import com.google.showcase.v1beta1.SearchBlurbsResponse; + +public class SyncSearchBlurbsProfilenameString { + + public static void main(String[] args) throws Exception { + syncSearchBlurbsProfilenameString(); + } + + public static void syncSearchBlurbsProfilenameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + ProfileName parent = ProfileName.of("[USER]"); + String query = "query107944136"; + SearchBlurbsResponse response = messagingClient.searchBlurbsAsync(parent, query).get(); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_SearchBlurbs_ProfilenameString_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsRoomnameString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsRoomnameString.java new file mode 100644 index 0000000000..4b959e6450 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsRoomnameString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_SearchBlurbs_RoomnameString_sync] +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.RoomName; +import com.google.showcase.v1beta1.SearchBlurbsResponse; + +public class SyncSearchBlurbsRoomnameString { + + public static void main(String[] args) throws Exception { + syncSearchBlurbsRoomnameString(); + } + + public static void syncSearchBlurbsRoomnameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + RoomName parent = RoomName.of("[ROOM]"); + String query = "query107944136"; + SearchBlurbsResponse response = messagingClient.searchBlurbsAsync(parent, query).get(); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_SearchBlurbs_RoomnameString_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsStringString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsStringString.java new file mode 100644 index 0000000000..fffbe7bc86 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsStringString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_SearchBlurbs_StringString_sync] +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; +import com.google.showcase.v1beta1.SearchBlurbsResponse; + +public class SyncSearchBlurbsStringString { + + public static void main(String[] args) throws Exception { + syncSearchBlurbsStringString(); + } + + public static void syncSearchBlurbsStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + String parent = ProfileName.of("[USER]").toString(); + String query = "query107944136"; + SearchBlurbsResponse response = messagingClient.searchBlurbsAsync(parent, query).get(); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_SearchBlurbs_StringString_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/sendblurbs/AsyncSendBlurbs.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/sendblurbs/AsyncSendBlurbs.java new file mode 100644 index 0000000000..9071791a17 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/sendblurbs/AsyncSendBlurbs.java @@ -0,0 +1,68 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_SendBlurbs_async] +import com.google.api.gax.rpc.ApiStreamObserver; +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.CreateBlurbRequest; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; +import com.google.showcase.v1beta1.SendBlurbsResponse; + +public class AsyncSendBlurbs { + + public static void main(String[] args) throws Exception { + asyncSendBlurbs(); + } + + public static void asyncSendBlurbs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + ApiStreamObserver responseObserver = + new ApiStreamObserver() { + @Override + public void onNext(SendBlurbsResponse response) { + // Do something when a response is received. + } + + @Override + public void onError(Throwable t) { + // Add error-handling + } + + @Override + public void onCompleted() { + // Do something when complete. + } + }; + ApiStreamObserver requestObserver = + messagingClient.sendBlurbs().clientStreamingCall(responseObserver); + CreateBlurbRequest request = + CreateBlurbRequest.newBuilder() + .setParent(ProfileName.of("[USER]").toString()) + .setBlurb(Blurb.newBuilder().build()) + .build(); + requestObserver.onNext(request); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_SendBlurbs_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/setiampolicy/AsyncSetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 0000000000..ddd0da9e2a --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.MessagingClient; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = messagingClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_SetIamPolicy_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/setiampolicy/SyncSetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 0000000000..f4b36282ad --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_SetIamPolicy_sync] +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.MessagingClient; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = messagingClient.setIamPolicy(request); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_SetIamPolicy_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/streamblurbs/AsyncStreamBlurbs.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/streamblurbs/AsyncStreamBlurbs.java new file mode 100644 index 0000000000..fc8edf74d0 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/streamblurbs/AsyncStreamBlurbs.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_StreamBlurbs_async] +import com.google.api.gax.rpc.ServerStream; +import com.google.protobuf.Timestamp; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.ProfileName; +import com.google.showcase.v1beta1.StreamBlurbsRequest; +import com.google.showcase.v1beta1.StreamBlurbsResponse; + +public class AsyncStreamBlurbs { + + public static void main(String[] args) throws Exception { + asyncStreamBlurbs(); + } + + public static void asyncStreamBlurbs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + StreamBlurbsRequest request = + StreamBlurbsRequest.newBuilder() + .setName(ProfileName.of("[USER]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .build(); + ServerStream stream = + messagingClient.streamBlurbsCallable().call(request); + for (StreamBlurbsResponse response : stream) { + // Do something when a response is received. + } + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_StreamBlurbs_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/testiampermissions/AsyncTestIamPermissions.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 0000000000..aec8eaa07d --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.MessagingClient; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + messagingClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_TestIamPermissions_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/testiampermissions/SyncTestIamPermissions.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 0000000000..3fd2460780 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_TestIamPermissions_sync] +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.MessagingClient; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = messagingClient.testIamPermissions(request); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_TestIamPermissions_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/updateblurb/AsyncUpdateBlurb.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/updateblurb/AsyncUpdateBlurb.java new file mode 100644 index 0000000000..40c30de32b --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/updateblurb/AsyncUpdateBlurb.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_UpdateBlurb_async] +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.UpdateBlurbRequest; + +public class AsyncUpdateBlurb { + + public static void main(String[] args) throws Exception { + asyncUpdateBlurb(); + } + + public static void asyncUpdateBlurb() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + UpdateBlurbRequest request = + UpdateBlurbRequest.newBuilder() + .setBlurb(Blurb.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = messagingClient.updateBlurbCallable().futureCall(request); + // Do something. + Blurb response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_UpdateBlurb_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/updateblurb/SyncUpdateBlurb.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/updateblurb/SyncUpdateBlurb.java new file mode 100644 index 0000000000..86399abc37 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/updateblurb/SyncUpdateBlurb.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_UpdateBlurb_sync] +import com.google.protobuf.FieldMask; +import com.google.showcase.v1beta1.Blurb; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.UpdateBlurbRequest; + +public class SyncUpdateBlurb { + + public static void main(String[] args) throws Exception { + syncUpdateBlurb(); + } + + public static void syncUpdateBlurb() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + UpdateBlurbRequest request = + UpdateBlurbRequest.newBuilder() + .setBlurb(Blurb.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Blurb response = messagingClient.updateBlurb(request); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_UpdateBlurb_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/updateroom/AsyncUpdateRoom.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/updateroom/AsyncUpdateRoom.java new file mode 100644 index 0000000000..52bbced83e --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/updateroom/AsyncUpdateRoom.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_UpdateRoom_async] +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.Room; +import com.google.showcase.v1beta1.UpdateRoomRequest; + +public class AsyncUpdateRoom { + + public static void main(String[] args) throws Exception { + asyncUpdateRoom(); + } + + public static void asyncUpdateRoom() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + UpdateRoomRequest request = + UpdateRoomRequest.newBuilder() + .setRoom(Room.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = messagingClient.updateRoomCallable().futureCall(request); + // Do something. + Room response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_UpdateRoom_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/updateroom/SyncUpdateRoom.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/updateroom/SyncUpdateRoom.java new file mode 100644 index 0000000000..836a5f3ed8 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messaging/updateroom/SyncUpdateRoom.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Messaging_UpdateRoom_sync] +import com.google.protobuf.FieldMask; +import com.google.showcase.v1beta1.MessagingClient; +import com.google.showcase.v1beta1.Room; +import com.google.showcase.v1beta1.UpdateRoomRequest; + +public class SyncUpdateRoom { + + public static void main(String[] args) throws Exception { + syncUpdateRoom(); + } + + public static void syncUpdateRoom() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MessagingClient messagingClient = MessagingClient.create()) { + UpdateRoomRequest request = + UpdateRoomRequest.newBuilder() + .setRoom(Room.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Room response = messagingClient.updateRoom(request); + } + } +} +// [END localhost7469_v1beta1_generated_Messaging_UpdateRoom_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messagingsettings/createroom/SyncCreateRoom.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messagingsettings/createroom/SyncCreateRoom.java new file mode 100644 index 0000000000..258cdaa242 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messagingsettings/createroom/SyncCreateRoom.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_MessagingSettings_CreateRoom_sync] +import com.google.showcase.v1beta1.MessagingSettings; +import java.time.Duration; + +public class SyncCreateRoom { + + public static void main(String[] args) throws Exception { + syncCreateRoom(); + } + + public static void syncCreateRoom() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MessagingSettings.Builder messagingSettingsBuilder = MessagingSettings.newBuilder(); + messagingSettingsBuilder + .createRoomSettings() + .setRetrySettings( + messagingSettingsBuilder + .createRoomSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + MessagingSettings messagingSettings = messagingSettingsBuilder.build(); + } +} +// [END localhost7469_v1beta1_generated_MessagingSettings_CreateRoom_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messagingsettings/searchblurbs/SyncSearchBlurbs.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messagingsettings/searchblurbs/SyncSearchBlurbs.java new file mode 100644 index 0000000000..309b7ced4a --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/messagingsettings/searchblurbs/SyncSearchBlurbs.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_MessagingSettings_SearchBlurbs_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.showcase.v1beta1.MessagingSettings; +import java.time.Duration; + +public class SyncSearchBlurbs { + + public static void main(String[] args) throws Exception { + syncSearchBlurbs(); + } + + public static void syncSearchBlurbs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MessagingSettings.Builder messagingSettingsBuilder = MessagingSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + messagingSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END localhost7469_v1beta1_generated_MessagingSettings_SearchBlurbs_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/attemptsequence/AsyncAttemptSequence.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/attemptsequence/AsyncAttemptSequence.java new file mode 100644 index 0000000000..543dcfb8e4 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/attemptsequence/AsyncAttemptSequence.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_AttemptSequence_async] +import com.google.api.core.ApiFuture; +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.AttemptSequenceRequest; +import com.google.showcase.v1beta1.SequenceName; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class AsyncAttemptSequence { + + public static void main(String[] args) throws Exception { + asyncAttemptSequence(); + } + + public static void asyncAttemptSequence() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + AttemptSequenceRequest request = + AttemptSequenceRequest.newBuilder() + .setName(SequenceName.of("[SEQUENCE]").toString()) + .build(); + ApiFuture future = sequenceServiceClient.attemptSequenceCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_AttemptSequence_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequence.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequence.java new file mode 100644 index 0000000000..f3b631be6d --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequence.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_AttemptSequence_sync] +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.AttemptSequenceRequest; +import com.google.showcase.v1beta1.SequenceName; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class SyncAttemptSequence { + + public static void main(String[] args) throws Exception { + syncAttemptSequence(); + } + + public static void syncAttemptSequence() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + AttemptSequenceRequest request = + AttemptSequenceRequest.newBuilder() + .setName(SequenceName.of("[SEQUENCE]").toString()) + .build(); + sequenceServiceClient.attemptSequence(request); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_AttemptSequence_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceSequencename.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceSequencename.java new file mode 100644 index 0000000000..531e56f64d --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceSequencename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_AttemptSequence_Sequencename_sync] +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.SequenceName; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class SyncAttemptSequenceSequencename { + + public static void main(String[] args) throws Exception { + syncAttemptSequenceSequencename(); + } + + public static void syncAttemptSequenceSequencename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + SequenceName name = SequenceName.of("[SEQUENCE]"); + sequenceServiceClient.attemptSequence(name); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_AttemptSequence_Sequencename_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceString.java new file mode 100644 index 0000000000..ff8fb0b5ac --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_AttemptSequence_String_sync] +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.SequenceName; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class SyncAttemptSequenceString { + + public static void main(String[] args) throws Exception { + syncAttemptSequenceString(); + } + + public static void syncAttemptSequenceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + String name = SequenceName.of("[SEQUENCE]").toString(); + sequenceServiceClient.attemptSequence(name); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_AttemptSequence_String_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/attemptstreamingsequence/AsyncAttemptStreamingSequence.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/attemptstreamingsequence/AsyncAttemptStreamingSequence.java new file mode 100644 index 0000000000..1ff21213f5 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/attemptstreamingsequence/AsyncAttemptStreamingSequence.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_AttemptStreamingSequence_async] +import com.google.api.gax.rpc.ServerStream; +import com.google.showcase.v1beta1.AttemptStreamingSequenceRequest; +import com.google.showcase.v1beta1.AttemptStreamingSequenceResponse; +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.StreamingSequenceName; + +public class AsyncAttemptStreamingSequence { + + public static void main(String[] args) throws Exception { + asyncAttemptStreamingSequence(); + } + + public static void asyncAttemptStreamingSequence() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + AttemptStreamingSequenceRequest request = + AttemptStreamingSequenceRequest.newBuilder() + .setName(StreamingSequenceName.of("[STREAMING_SEQUENCE]").toString()) + .setLastFailIndex(2006482362) + .build(); + ServerStream stream = + sequenceServiceClient.attemptStreamingSequenceCallable().call(request); + for (AttemptStreamingSequenceResponse response : stream) { + // Do something when a response is received. + } + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_AttemptStreamingSequence_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 0000000000..3d015e8d85 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.SequenceServiceSettings; +import com.google.showcase.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SequenceServiceSettings sequenceServiceSettings = + SequenceServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SequenceServiceClient sequenceServiceClient = + SequenceServiceClient.create(sequenceServiceSettings); + } +} +// [END localhost7469_v1beta1_generated_SequenceService_Create_SetCredentialsProvider_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetEndpoint.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 0000000000..4bf6723f89 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_Create_SetEndpoint_sync] +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.SequenceServiceSettings; +import com.google.showcase.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SequenceServiceSettings sequenceServiceSettings = + SequenceServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + SequenceServiceClient sequenceServiceClient = + SequenceServiceClient.create(sequenceServiceSettings); + } +} +// [END localhost7469_v1beta1_generated_SequenceService_Create_SetEndpoint_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateUseHttpJsonTransport.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 0000000000..719aa49f43 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_Create_UseHttpJsonTransport_sync] +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.SequenceServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SequenceServiceSettings sequenceServiceSettings = + SequenceServiceSettings.newHttpJsonBuilder().build(); + SequenceServiceClient sequenceServiceClient = + SequenceServiceClient.create(sequenceServiceSettings); + } +} +// [END localhost7469_v1beta1_generated_SequenceService_Create_UseHttpJsonTransport_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/createsequence/AsyncCreateSequence.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/createsequence/AsyncCreateSequence.java new file mode 100644 index 0000000000..b3b4adace3 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/createsequence/AsyncCreateSequence.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_CreateSequence_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.CreateSequenceRequest; +import com.google.showcase.v1beta1.Sequence; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class AsyncCreateSequence { + + public static void main(String[] args) throws Exception { + asyncCreateSequence(); + } + + public static void asyncCreateSequence() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + CreateSequenceRequest request = + CreateSequenceRequest.newBuilder().setSequence(Sequence.newBuilder().build()).build(); + ApiFuture future = + sequenceServiceClient.createSequenceCallable().futureCall(request); + // Do something. + Sequence response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_CreateSequence_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequence.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequence.java new file mode 100644 index 0000000000..c88b97420e --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequence.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_CreateSequence_sync] +import com.google.showcase.v1beta1.CreateSequenceRequest; +import com.google.showcase.v1beta1.Sequence; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class SyncCreateSequence { + + public static void main(String[] args) throws Exception { + syncCreateSequence(); + } + + public static void syncCreateSequence() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + CreateSequenceRequest request = + CreateSequenceRequest.newBuilder().setSequence(Sequence.newBuilder().build()).build(); + Sequence response = sequenceServiceClient.createSequence(request); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_CreateSequence_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequenceSequence.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequenceSequence.java new file mode 100644 index 0000000000..da44f49975 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequenceSequence.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_CreateSequence_Sequence_sync] +import com.google.showcase.v1beta1.Sequence; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class SyncCreateSequenceSequence { + + public static void main(String[] args) throws Exception { + syncCreateSequenceSequence(); + } + + public static void syncCreateSequenceSequence() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + Sequence sequence = Sequence.newBuilder().build(); + Sequence response = sequenceServiceClient.createSequence(sequence); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_CreateSequence_Sequence_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/AsyncCreateStreamingSequence.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/AsyncCreateStreamingSequence.java new file mode 100644 index 0000000000..9fe92a649b --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/AsyncCreateStreamingSequence.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.CreateStreamingSequenceRequest; +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.StreamingSequence; + +public class AsyncCreateStreamingSequence { + + public static void main(String[] args) throws Exception { + asyncCreateStreamingSequence(); + } + + public static void asyncCreateStreamingSequence() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + CreateStreamingSequenceRequest request = + CreateStreamingSequenceRequest.newBuilder() + .setStreamingSequence(StreamingSequence.newBuilder().build()) + .build(); + ApiFuture future = + sequenceServiceClient.createStreamingSequenceCallable().futureCall(request); + // Do something. + StreamingSequence response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequence.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequence.java new file mode 100644 index 0000000000..d55e894f4d --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequence.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_sync] +import com.google.showcase.v1beta1.CreateStreamingSequenceRequest; +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.StreamingSequence; + +public class SyncCreateStreamingSequence { + + public static void main(String[] args) throws Exception { + syncCreateStreamingSequence(); + } + + public static void syncCreateStreamingSequence() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + CreateStreamingSequenceRequest request = + CreateStreamingSequenceRequest.newBuilder() + .setStreamingSequence(StreamingSequence.newBuilder().build()) + .build(); + StreamingSequence response = sequenceServiceClient.createStreamingSequence(request); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequenceStreamingsequence.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequenceStreamingsequence.java new file mode 100644 index 0000000000..5c55075630 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequenceStreamingsequence.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_Streamingsequence_sync] +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.StreamingSequence; + +public class SyncCreateStreamingSequenceStreamingsequence { + + public static void main(String[] args) throws Exception { + syncCreateStreamingSequenceStreamingsequence(); + } + + public static void syncCreateStreamingSequenceStreamingsequence() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + StreamingSequence streamingSequence = StreamingSequence.newBuilder().build(); + StreamingSequence response = sequenceServiceClient.createStreamingSequence(streamingSequence); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_Streamingsequence_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getiampolicy/AsyncGetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 0000000000..90d1768d09 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = sequenceServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_GetIamPolicy_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getiampolicy/SyncGetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 0000000000..0507e938ce --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_GetIamPolicy_sync] +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = sequenceServiceClient.getIamPolicy(request); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_GetIamPolicy_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getlocation/AsyncGetLocation.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getlocation/AsyncGetLocation.java new file mode 100644 index 0000000000..079a2ac10f --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = sequenceServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_GetLocation_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getlocation/SyncGetLocation.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getlocation/SyncGetLocation.java new file mode 100644 index 0000000000..327a91f981 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = sequenceServiceClient.getLocation(request); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_GetLocation_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getsequencereport/AsyncGetSequenceReport.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getsequencereport/AsyncGetSequenceReport.java new file mode 100644 index 0000000000..6f6d74b361 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getsequencereport/AsyncGetSequenceReport.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_GetSequenceReport_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.GetSequenceReportRequest; +import com.google.showcase.v1beta1.SequenceReport; +import com.google.showcase.v1beta1.SequenceReportName; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class AsyncGetSequenceReport { + + public static void main(String[] args) throws Exception { + asyncGetSequenceReport(); + } + + public static void asyncGetSequenceReport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + GetSequenceReportRequest request = + GetSequenceReportRequest.newBuilder() + .setName(SequenceReportName.of("[SEQUENCE]").toString()) + .build(); + ApiFuture future = + sequenceServiceClient.getSequenceReportCallable().futureCall(request); + // Do something. + SequenceReport response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_GetSequenceReport_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReport.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReport.java new file mode 100644 index 0000000000..64d83e310d --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReport.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_GetSequenceReport_sync] +import com.google.showcase.v1beta1.GetSequenceReportRequest; +import com.google.showcase.v1beta1.SequenceReport; +import com.google.showcase.v1beta1.SequenceReportName; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class SyncGetSequenceReport { + + public static void main(String[] args) throws Exception { + syncGetSequenceReport(); + } + + public static void syncGetSequenceReport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + GetSequenceReportRequest request = + GetSequenceReportRequest.newBuilder() + .setName(SequenceReportName.of("[SEQUENCE]").toString()) + .build(); + SequenceReport response = sequenceServiceClient.getSequenceReport(request); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_GetSequenceReport_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportSequencereportname.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportSequencereportname.java new file mode 100644 index 0000000000..1c0170addd --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportSequencereportname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_GetSequenceReport_Sequencereportname_sync] +import com.google.showcase.v1beta1.SequenceReport; +import com.google.showcase.v1beta1.SequenceReportName; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class SyncGetSequenceReportSequencereportname { + + public static void main(String[] args) throws Exception { + syncGetSequenceReportSequencereportname(); + } + + public static void syncGetSequenceReportSequencereportname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + SequenceReportName name = SequenceReportName.of("[SEQUENCE]"); + SequenceReport response = sequenceServiceClient.getSequenceReport(name); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_GetSequenceReport_Sequencereportname_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportString.java new file mode 100644 index 0000000000..180af34782 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_GetSequenceReport_String_sync] +import com.google.showcase.v1beta1.SequenceReport; +import com.google.showcase.v1beta1.SequenceReportName; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class SyncGetSequenceReportString { + + public static void main(String[] args) throws Exception { + syncGetSequenceReportString(); + } + + public static void syncGetSequenceReportString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + String name = SequenceReportName.of("[SEQUENCE]").toString(); + SequenceReport response = sequenceServiceClient.getSequenceReport(name); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_GetSequenceReport_String_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/AsyncGetStreamingSequenceReport.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/AsyncGetStreamingSequenceReport.java new file mode 100644 index 0000000000..048a698a9f --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/AsyncGetStreamingSequenceReport.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.GetStreamingSequenceReportRequest; +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.StreamingSequenceReport; +import com.google.showcase.v1beta1.StreamingSequenceReportName; + +public class AsyncGetStreamingSequenceReport { + + public static void main(String[] args) throws Exception { + asyncGetStreamingSequenceReport(); + } + + public static void asyncGetStreamingSequenceReport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + GetStreamingSequenceReportRequest request = + GetStreamingSequenceReportRequest.newBuilder() + .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString()) + .build(); + ApiFuture future = + sequenceServiceClient.getStreamingSequenceReportCallable().futureCall(request); + // Do something. + StreamingSequenceReport response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReport.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReport.java new file mode 100644 index 0000000000..4709ce29ad --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReport.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_sync] +import com.google.showcase.v1beta1.GetStreamingSequenceReportRequest; +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.StreamingSequenceReport; +import com.google.showcase.v1beta1.StreamingSequenceReportName; + +public class SyncGetStreamingSequenceReport { + + public static void main(String[] args) throws Exception { + syncGetStreamingSequenceReport(); + } + + public static void syncGetStreamingSequenceReport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + GetStreamingSequenceReportRequest request = + GetStreamingSequenceReportRequest.newBuilder() + .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString()) + .build(); + StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(request); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportStreamingsequencereportname.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportStreamingsequencereportname.java new file mode 100644 index 0000000000..6950605317 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportStreamingsequencereportname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_Streamingsequencereportname_sync] +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.StreamingSequenceReport; +import com.google.showcase.v1beta1.StreamingSequenceReportName; + +public class SyncGetStreamingSequenceReportStreamingsequencereportname { + + public static void main(String[] args) throws Exception { + syncGetStreamingSequenceReportStreamingsequencereportname(); + } + + public static void syncGetStreamingSequenceReportStreamingsequencereportname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + StreamingSequenceReportName name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]"); + StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(name); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_Streamingsequencereportname_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportString.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportString.java new file mode 100644 index 0000000000..14ff9e5b7f --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_String_sync] +import com.google.showcase.v1beta1.SequenceServiceClient; +import com.google.showcase.v1beta1.StreamingSequenceReport; +import com.google.showcase.v1beta1.StreamingSequenceReportName; + +public class SyncGetStreamingSequenceReportString { + + public static void main(String[] args) throws Exception { + syncGetStreamingSequenceReportString(); + } + + public static void syncGetStreamingSequenceReportString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + String name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString(); + StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(name); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_String_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocations.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocations.java new file mode 100644 index 0000000000..b1cdb88f6b --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + sequenceServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_ListLocations_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocationsPaged.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 0000000000..175e674f44 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + sequenceServiceClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_ListLocations_Paged_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/listlocations/SyncListLocations.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/listlocations/SyncListLocations.java new file mode 100644 index 0000000000..702f7be115 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : sequenceServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_ListLocations_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/setiampolicy/AsyncSetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 0000000000..3f985d9b3b --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = sequenceServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_SetIamPolicy_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/setiampolicy/SyncSetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 0000000000..f9f140fc88 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_SetIamPolicy_sync] +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.SequenceServiceClient; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = sequenceServiceClient.setIamPolicy(request); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_SetIamPolicy_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/testiampermissions/AsyncTestIamPermissions.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 0000000000..153cad8232 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.SequenceServiceClient; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + sequenceServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_TestIamPermissions_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/testiampermissions/SyncTestIamPermissions.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 0000000000..b54d3ababe --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservice/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceService_TestIamPermissions_sync] +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.SequenceServiceClient; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = sequenceServiceClient.testIamPermissions(request); + } + } +} +// [END localhost7469_v1beta1_generated_SequenceService_TestIamPermissions_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservicesettings/createsequence/SyncCreateSequence.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservicesettings/createsequence/SyncCreateSequence.java new file mode 100644 index 0000000000..c3592983cd --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/sequenceservicesettings/createsequence/SyncCreateSequence.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_SequenceServiceSettings_CreateSequence_sync] +import com.google.showcase.v1beta1.SequenceServiceSettings; +import java.time.Duration; + +public class SyncCreateSequence { + + public static void main(String[] args) throws Exception { + syncCreateSequence(); + } + + public static void syncCreateSequence() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SequenceServiceSettings.Builder sequenceServiceSettingsBuilder = + SequenceServiceSettings.newBuilder(); + sequenceServiceSettingsBuilder + .createSequenceSettings() + .setRetrySettings( + sequenceServiceSettingsBuilder + .createSequenceSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + SequenceServiceSettings sequenceServiceSettings = sequenceServiceSettingsBuilder.build(); + } +} +// [END localhost7469_v1beta1_generated_SequenceServiceSettings_CreateSequence_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/compliancestubsettings/repeatdatabody/SyncRepeatDataBody.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/compliancestubsettings/repeatdatabody/SyncRepeatDataBody.java new file mode 100644 index 0000000000..77e076466f --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/compliancestubsettings/repeatdatabody/SyncRepeatDataBody.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.stub.samples; + +// [START localhost7469_v1beta1_generated_ComplianceStubSettings_RepeatDataBody_sync] +import com.google.showcase.v1beta1.stub.ComplianceStubSettings; +import java.time.Duration; + +public class SyncRepeatDataBody { + + public static void main(String[] args) throws Exception { + syncRepeatDataBody(); + } + + public static void syncRepeatDataBody() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ComplianceStubSettings.Builder complianceSettingsBuilder = ComplianceStubSettings.newBuilder(); + complianceSettingsBuilder + .repeatDataBodySettings() + .setRetrySettings( + complianceSettingsBuilder + .repeatDataBodySettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + ComplianceStubSettings complianceSettings = complianceSettingsBuilder.build(); + } +} +// [END localhost7469_v1beta1_generated_ComplianceStubSettings_RepeatDataBody_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/echostubsettings/echo/SyncEcho.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/echostubsettings/echo/SyncEcho.java new file mode 100644 index 0000000000..a2c356f4b1 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/echostubsettings/echo/SyncEcho.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.stub.samples; + +// [START localhost7469_v1beta1_generated_EchoStubSettings_Echo_sync] +import com.google.showcase.v1beta1.stub.EchoStubSettings; +import java.time.Duration; + +public class SyncEcho { + + public static void main(String[] args) throws Exception { + syncEcho(); + } + + public static void syncEcho() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EchoStubSettings.Builder echoSettingsBuilder = EchoStubSettings.newBuilder(); + echoSettingsBuilder + .echoSettings() + .setRetrySettings( + echoSettingsBuilder + .echoSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + EchoStubSettings echoSettings = echoSettingsBuilder.build(); + } +} +// [END localhost7469_v1beta1_generated_EchoStubSettings_Echo_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/echostubsettings/wait/SyncWait.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/echostubsettings/wait/SyncWait.java new file mode 100644 index 0000000000..0fa4ae60fc --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/echostubsettings/wait/SyncWait.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.stub.samples; + +// [START localhost7469_v1beta1_generated_EchoStubSettings_Wait_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.showcase.v1beta1.stub.EchoStubSettings; +import java.time.Duration; + +public class SyncWait { + + public static void main(String[] args) throws Exception { + syncWait(); + } + + public static void syncWait() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + EchoStubSettings.Builder echoSettingsBuilder = EchoStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + echoSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END localhost7469_v1beta1_generated_EchoStubSettings_Wait_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/identitystubsettings/createuser/SyncCreateUser.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/identitystubsettings/createuser/SyncCreateUser.java new file mode 100644 index 0000000000..a84ab93b86 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/identitystubsettings/createuser/SyncCreateUser.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.stub.samples; + +// [START localhost7469_v1beta1_generated_IdentityStubSettings_CreateUser_sync] +import com.google.showcase.v1beta1.stub.IdentityStubSettings; +import java.time.Duration; + +public class SyncCreateUser { + + public static void main(String[] args) throws Exception { + syncCreateUser(); + } + + public static void syncCreateUser() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IdentityStubSettings.Builder identitySettingsBuilder = IdentityStubSettings.newBuilder(); + identitySettingsBuilder + .createUserSettings() + .setRetrySettings( + identitySettingsBuilder + .createUserSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + IdentityStubSettings identitySettings = identitySettingsBuilder.build(); + } +} +// [END localhost7469_v1beta1_generated_IdentityStubSettings_CreateUser_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/messagingstubsettings/createroom/SyncCreateRoom.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/messagingstubsettings/createroom/SyncCreateRoom.java new file mode 100644 index 0000000000..7ca8356f2e --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/messagingstubsettings/createroom/SyncCreateRoom.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.stub.samples; + +// [START localhost7469_v1beta1_generated_MessagingStubSettings_CreateRoom_sync] +import com.google.showcase.v1beta1.stub.MessagingStubSettings; +import java.time.Duration; + +public class SyncCreateRoom { + + public static void main(String[] args) throws Exception { + syncCreateRoom(); + } + + public static void syncCreateRoom() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MessagingStubSettings.Builder messagingSettingsBuilder = MessagingStubSettings.newBuilder(); + messagingSettingsBuilder + .createRoomSettings() + .setRetrySettings( + messagingSettingsBuilder + .createRoomSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + MessagingStubSettings messagingSettings = messagingSettingsBuilder.build(); + } +} +// [END localhost7469_v1beta1_generated_MessagingStubSettings_CreateRoom_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/messagingstubsettings/searchblurbs/SyncSearchBlurbs.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/messagingstubsettings/searchblurbs/SyncSearchBlurbs.java new file mode 100644 index 0000000000..50df0f533d --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/messagingstubsettings/searchblurbs/SyncSearchBlurbs.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.stub.samples; + +// [START localhost7469_v1beta1_generated_MessagingStubSettings_SearchBlurbs_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.showcase.v1beta1.stub.MessagingStubSettings; +import java.time.Duration; + +public class SyncSearchBlurbs { + + public static void main(String[] args) throws Exception { + syncSearchBlurbs(); + } + + public static void syncSearchBlurbs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MessagingStubSettings.Builder messagingSettingsBuilder = MessagingStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + messagingSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END localhost7469_v1beta1_generated_MessagingStubSettings_SearchBlurbs_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/sequenceservicestubsettings/createsequence/SyncCreateSequence.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/sequenceservicestubsettings/createsequence/SyncCreateSequence.java new file mode 100644 index 0000000000..3911b79df0 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/sequenceservicestubsettings/createsequence/SyncCreateSequence.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.stub.samples; + +// [START localhost7469_v1beta1_generated_SequenceServiceStubSettings_CreateSequence_sync] +import com.google.showcase.v1beta1.stub.SequenceServiceStubSettings; +import java.time.Duration; + +public class SyncCreateSequence { + + public static void main(String[] args) throws Exception { + syncCreateSequence(); + } + + public static void syncCreateSequence() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SequenceServiceStubSettings.Builder sequenceServiceSettingsBuilder = + SequenceServiceStubSettings.newBuilder(); + sequenceServiceSettingsBuilder + .createSequenceSettings() + .setRetrySettings( + sequenceServiceSettingsBuilder + .createSequenceSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + SequenceServiceStubSettings sequenceServiceSettings = sequenceServiceSettingsBuilder.build(); + } +} +// [END localhost7469_v1beta1_generated_SequenceServiceStubSettings_CreateSequence_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/testingstubsettings/createsession/SyncCreateSession.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/testingstubsettings/createsession/SyncCreateSession.java new file mode 100644 index 0000000000..ac7c9f49d3 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/stub/testingstubsettings/createsession/SyncCreateSession.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.stub.samples; + +// [START localhost7469_v1beta1_generated_TestingStubSettings_CreateSession_sync] +import com.google.showcase.v1beta1.stub.TestingStubSettings; +import java.time.Duration; + +public class SyncCreateSession { + + public static void main(String[] args) throws Exception { + syncCreateSession(); + } + + public static void syncCreateSession() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TestingStubSettings.Builder testingSettingsBuilder = TestingStubSettings.newBuilder(); + testingSettingsBuilder + .createSessionSettings() + .setRetrySettings( + testingSettingsBuilder + .createSessionSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + TestingStubSettings testingSettings = testingSettingsBuilder.build(); + } +} +// [END localhost7469_v1beta1_generated_TestingStubSettings_CreateSession_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 0000000000..cf4eb33393 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.showcase.v1beta1.TestingClient; +import com.google.showcase.v1beta1.TestingSettings; +import com.google.showcase.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TestingSettings testingSettings = + TestingSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + TestingClient testingClient = TestingClient.create(testingSettings); + } +} +// [END localhost7469_v1beta1_generated_Testing_Create_SetCredentialsProvider_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/create/SyncCreateSetEndpoint.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/create/SyncCreateSetEndpoint.java new file mode 100644 index 0000000000..3802ad5e8a --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/create/SyncCreateSetEndpoint.java @@ -0,0 +1,40 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_Create_SetEndpoint_sync] +import com.google.showcase.v1beta1.TestingClient; +import com.google.showcase.v1beta1.TestingSettings; +import com.google.showcase.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TestingSettings testingSettings = TestingSettings.newBuilder().setEndpoint(myEndpoint).build(); + TestingClient testingClient = TestingClient.create(testingSettings); + } +} +// [END localhost7469_v1beta1_generated_Testing_Create_SetEndpoint_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/create/SyncCreateUseHttpJsonTransport.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 0000000000..4da9081ecf --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_Create_UseHttpJsonTransport_sync] +import com.google.showcase.v1beta1.TestingClient; +import com.google.showcase.v1beta1.TestingSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TestingSettings testingSettings = TestingSettings.newHttpJsonBuilder().build(); + TestingClient testingClient = TestingClient.create(testingSettings); + } +} +// [END localhost7469_v1beta1_generated_Testing_Create_UseHttpJsonTransport_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/createsession/AsyncCreateSession.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/createsession/AsyncCreateSession.java new file mode 100644 index 0000000000..44da4d4399 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/createsession/AsyncCreateSession.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_CreateSession_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.CreateSessionRequest; +import com.google.showcase.v1beta1.Session; +import com.google.showcase.v1beta1.TestingClient; + +public class AsyncCreateSession { + + public static void main(String[] args) throws Exception { + asyncCreateSession(); + } + + public static void asyncCreateSession() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + CreateSessionRequest request = + CreateSessionRequest.newBuilder().setSession(Session.newBuilder().build()).build(); + ApiFuture future = testingClient.createSessionCallable().futureCall(request); + // Do something. + Session response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_CreateSession_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/createsession/SyncCreateSession.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/createsession/SyncCreateSession.java new file mode 100644 index 0000000000..de6790a803 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/createsession/SyncCreateSession.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_CreateSession_sync] +import com.google.showcase.v1beta1.CreateSessionRequest; +import com.google.showcase.v1beta1.Session; +import com.google.showcase.v1beta1.TestingClient; + +public class SyncCreateSession { + + public static void main(String[] args) throws Exception { + syncCreateSession(); + } + + public static void syncCreateSession() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + CreateSessionRequest request = + CreateSessionRequest.newBuilder().setSession(Session.newBuilder().build()).build(); + Session response = testingClient.createSession(request); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_CreateSession_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/deletesession/AsyncDeleteSession.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/deletesession/AsyncDeleteSession.java new file mode 100644 index 0000000000..5d350d621d --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/deletesession/AsyncDeleteSession.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_DeleteSession_async] +import com.google.api.core.ApiFuture; +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.DeleteSessionRequest; +import com.google.showcase.v1beta1.SessionName; +import com.google.showcase.v1beta1.TestingClient; + +public class AsyncDeleteSession { + + public static void main(String[] args) throws Exception { + asyncDeleteSession(); + } + + public static void asyncDeleteSession() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + DeleteSessionRequest request = + DeleteSessionRequest.newBuilder().setName(SessionName.of("[SESSION]").toString()).build(); + ApiFuture future = testingClient.deleteSessionCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_DeleteSession_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/deletesession/SyncDeleteSession.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/deletesession/SyncDeleteSession.java new file mode 100644 index 0000000000..9bcbd8090c --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/deletesession/SyncDeleteSession.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_DeleteSession_sync] +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.DeleteSessionRequest; +import com.google.showcase.v1beta1.SessionName; +import com.google.showcase.v1beta1.TestingClient; + +public class SyncDeleteSession { + + public static void main(String[] args) throws Exception { + syncDeleteSession(); + } + + public static void syncDeleteSession() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + DeleteSessionRequest request = + DeleteSessionRequest.newBuilder().setName(SessionName.of("[SESSION]").toString()).build(); + testingClient.deleteSession(request); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_DeleteSession_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/deletetest/AsyncDeleteTest.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/deletetest/AsyncDeleteTest.java new file mode 100644 index 0000000000..5b17d3b80e --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/deletetest/AsyncDeleteTest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_DeleteTest_async] +import com.google.api.core.ApiFuture; +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.DeleteTestRequest; +import com.google.showcase.v1beta1.TestName; +import com.google.showcase.v1beta1.TestingClient; + +public class AsyncDeleteTest { + + public static void main(String[] args) throws Exception { + asyncDeleteTest(); + } + + public static void asyncDeleteTest() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + DeleteTestRequest request = + DeleteTestRequest.newBuilder() + .setName(TestName.of("[SESSION]", "[TEST]").toString()) + .build(); + ApiFuture future = testingClient.deleteTestCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_DeleteTest_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/deletetest/SyncDeleteTest.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/deletetest/SyncDeleteTest.java new file mode 100644 index 0000000000..54ec26e325 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/deletetest/SyncDeleteTest.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_DeleteTest_sync] +import com.google.protobuf.Empty; +import com.google.showcase.v1beta1.DeleteTestRequest; +import com.google.showcase.v1beta1.TestName; +import com.google.showcase.v1beta1.TestingClient; + +public class SyncDeleteTest { + + public static void main(String[] args) throws Exception { + syncDeleteTest(); + } + + public static void syncDeleteTest() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + DeleteTestRequest request = + DeleteTestRequest.newBuilder() + .setName(TestName.of("[SESSION]", "[TEST]").toString()) + .build(); + testingClient.deleteTest(request); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_DeleteTest_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/getiampolicy/AsyncGetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 0000000000..8ae9459f8f --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.TestingClient; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = testingClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_GetIamPolicy_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/getiampolicy/SyncGetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 0000000000..74fce41027 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_GetIamPolicy_sync] +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.TestingClient; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = testingClient.getIamPolicy(request); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_GetIamPolicy_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/getlocation/AsyncGetLocation.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/getlocation/AsyncGetLocation.java new file mode 100644 index 0000000000..1126474b79 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.TestingClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = testingClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_GetLocation_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/getlocation/SyncGetLocation.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/getlocation/SyncGetLocation.java new file mode 100644 index 0000000000..a6304ed0bd --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.TestingClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = testingClient.getLocation(request); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_GetLocation_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/getsession/AsyncGetSession.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/getsession/AsyncGetSession.java new file mode 100644 index 0000000000..b612c57c0c --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/getsession/AsyncGetSession.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_GetSession_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.GetSessionRequest; +import com.google.showcase.v1beta1.Session; +import com.google.showcase.v1beta1.SessionName; +import com.google.showcase.v1beta1.TestingClient; + +public class AsyncGetSession { + + public static void main(String[] args) throws Exception { + asyncGetSession(); + } + + public static void asyncGetSession() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + GetSessionRequest request = + GetSessionRequest.newBuilder().setName(SessionName.of("[SESSION]").toString()).build(); + ApiFuture future = testingClient.getSessionCallable().futureCall(request); + // Do something. + Session response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_GetSession_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/getsession/SyncGetSession.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/getsession/SyncGetSession.java new file mode 100644 index 0000000000..b00625507c --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/getsession/SyncGetSession.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_GetSession_sync] +import com.google.showcase.v1beta1.GetSessionRequest; +import com.google.showcase.v1beta1.Session; +import com.google.showcase.v1beta1.SessionName; +import com.google.showcase.v1beta1.TestingClient; + +public class SyncGetSession { + + public static void main(String[] args) throws Exception { + syncGetSession(); + } + + public static void syncGetSession() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + GetSessionRequest request = + GetSessionRequest.newBuilder().setName(SessionName.of("[SESSION]").toString()).build(); + Session response = testingClient.getSession(request); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_GetSession_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocations.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocations.java new file mode 100644 index 0000000000..ba1bbd728a --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocations.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.TestingClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = testingClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Testing_ListLocations_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocationsPaged.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 0000000000..a83fda6788 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; +import com.google.showcase.v1beta1.TestingClient; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = testingClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END localhost7469_v1beta1_generated_Testing_ListLocations_Paged_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listlocations/SyncListLocations.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listlocations/SyncListLocations.java new file mode 100644 index 0000000000..b1edeff5ca --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.showcase.v1beta1.TestingClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : testingClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Testing_ListLocations_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessions.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessions.java new file mode 100644 index 0000000000..f610db6054 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessions.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_ListSessions_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.ListSessionsRequest; +import com.google.showcase.v1beta1.Session; +import com.google.showcase.v1beta1.TestingClient; + +public class AsyncListSessions { + + public static void main(String[] args) throws Exception { + asyncListSessions(); + } + + public static void asyncListSessions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + ListSessionsRequest request = + ListSessionsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = testingClient.listSessionsPagedCallable().futureCall(request); + // Do something. + for (Session element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Testing_ListSessions_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessionsPaged.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessionsPaged.java new file mode 100644 index 0000000000..dde774b168 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessionsPaged.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_ListSessions_Paged_async] +import com.google.common.base.Strings; +import com.google.showcase.v1beta1.ListSessionsRequest; +import com.google.showcase.v1beta1.ListSessionsResponse; +import com.google.showcase.v1beta1.Session; +import com.google.showcase.v1beta1.TestingClient; + +public class AsyncListSessionsPaged { + + public static void main(String[] args) throws Exception { + asyncListSessionsPaged(); + } + + public static void asyncListSessionsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + ListSessionsRequest request = + ListSessionsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListSessionsResponse response = testingClient.listSessionsCallable().call(request); + for (Session element : response.getSessionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END localhost7469_v1beta1_generated_Testing_ListSessions_Paged_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listsessions/SyncListSessions.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listsessions/SyncListSessions.java new file mode 100644 index 0000000000..3d8301a37f --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listsessions/SyncListSessions.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_ListSessions_sync] +import com.google.showcase.v1beta1.ListSessionsRequest; +import com.google.showcase.v1beta1.Session; +import com.google.showcase.v1beta1.TestingClient; + +public class SyncListSessions { + + public static void main(String[] args) throws Exception { + syncListSessions(); + } + + public static void syncListSessions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + ListSessionsRequest request = + ListSessionsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Session element : testingClient.listSessions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Testing_ListSessions_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listtests/AsyncListTests.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listtests/AsyncListTests.java new file mode 100644 index 0000000000..3f3de5f24d --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listtests/AsyncListTests.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_ListTests_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.ListTestsRequest; +import com.google.showcase.v1beta1.SessionName; +import com.google.showcase.v1beta1.Test; +import com.google.showcase.v1beta1.TestingClient; + +public class AsyncListTests { + + public static void main(String[] args) throws Exception { + asyncListTests(); + } + + public static void asyncListTests() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + ListTestsRequest request = + ListTestsRequest.newBuilder() + .setParent(SessionName.of("[SESSION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = testingClient.listTestsPagedCallable().futureCall(request); + // Do something. + for (Test element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Testing_ListTests_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listtests/AsyncListTestsPaged.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listtests/AsyncListTestsPaged.java new file mode 100644 index 0000000000..a13e50c79f --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listtests/AsyncListTestsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_ListTests_Paged_async] +import com.google.common.base.Strings; +import com.google.showcase.v1beta1.ListTestsRequest; +import com.google.showcase.v1beta1.ListTestsResponse; +import com.google.showcase.v1beta1.SessionName; +import com.google.showcase.v1beta1.Test; +import com.google.showcase.v1beta1.TestingClient; + +public class AsyncListTestsPaged { + + public static void main(String[] args) throws Exception { + asyncListTestsPaged(); + } + + public static void asyncListTestsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + ListTestsRequest request = + ListTestsRequest.newBuilder() + .setParent(SessionName.of("[SESSION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListTestsResponse response = testingClient.listTestsCallable().call(request); + for (Test element : response.getTestsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END localhost7469_v1beta1_generated_Testing_ListTests_Paged_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listtests/SyncListTests.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listtests/SyncListTests.java new file mode 100644 index 0000000000..8a35e58509 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/listtests/SyncListTests.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_ListTests_sync] +import com.google.showcase.v1beta1.ListTestsRequest; +import com.google.showcase.v1beta1.SessionName; +import com.google.showcase.v1beta1.Test; +import com.google.showcase.v1beta1.TestingClient; + +public class SyncListTests { + + public static void main(String[] args) throws Exception { + syncListTests(); + } + + public static void syncListTests() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + ListTestsRequest request = + ListTestsRequest.newBuilder() + .setParent(SessionName.of("[SESSION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Test element : testingClient.listTests(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END localhost7469_v1beta1_generated_Testing_ListTests_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/reportsession/AsyncReportSession.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/reportsession/AsyncReportSession.java new file mode 100644 index 0000000000..8f5505bade --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/reportsession/AsyncReportSession.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_ReportSession_async] +import com.google.api.core.ApiFuture; +import com.google.showcase.v1beta1.ReportSessionRequest; +import com.google.showcase.v1beta1.ReportSessionResponse; +import com.google.showcase.v1beta1.SessionName; +import com.google.showcase.v1beta1.TestingClient; + +public class AsyncReportSession { + + public static void main(String[] args) throws Exception { + asyncReportSession(); + } + + public static void asyncReportSession() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + ReportSessionRequest request = + ReportSessionRequest.newBuilder().setName(SessionName.of("[SESSION]").toString()).build(); + ApiFuture future = + testingClient.reportSessionCallable().futureCall(request); + // Do something. + ReportSessionResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_ReportSession_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/reportsession/SyncReportSession.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/reportsession/SyncReportSession.java new file mode 100644 index 0000000000..970a606ffd --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/reportsession/SyncReportSession.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_ReportSession_sync] +import com.google.showcase.v1beta1.ReportSessionRequest; +import com.google.showcase.v1beta1.ReportSessionResponse; +import com.google.showcase.v1beta1.SessionName; +import com.google.showcase.v1beta1.TestingClient; + +public class SyncReportSession { + + public static void main(String[] args) throws Exception { + syncReportSession(); + } + + public static void syncReportSession() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + ReportSessionRequest request = + ReportSessionRequest.newBuilder().setName(SessionName.of("[SESSION]").toString()).build(); + ReportSessionResponse response = testingClient.reportSession(request); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_ReportSession_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/setiampolicy/AsyncSetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 0000000000..ce5682138e --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.TestingClient; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = testingClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_SetIamPolicy_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/setiampolicy/SyncSetIamPolicy.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 0000000000..2cb1cb9235 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_SetIamPolicy_sync] +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.TestingClient; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = testingClient.setIamPolicy(request); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_SetIamPolicy_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/testiampermissions/AsyncTestIamPermissions.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 0000000000..49216be248 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.TestingClient; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + testingClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_TestIamPermissions_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/testiampermissions/SyncTestIamPermissions.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 0000000000..e946f977fe --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_TestIamPermissions_sync] +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.showcase.v1beta1.BlurbName; +import com.google.showcase.v1beta1.TestingClient; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = testingClient.testIamPermissions(request); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_TestIamPermissions_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/verifytest/AsyncVerifyTest.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/verifytest/AsyncVerifyTest.java new file mode 100644 index 0000000000..630ba06924 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/verifytest/AsyncVerifyTest.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_VerifyTest_async] +import com.google.api.core.ApiFuture; +import com.google.protobuf.ByteString; +import com.google.showcase.v1beta1.TestName; +import com.google.showcase.v1beta1.TestingClient; +import com.google.showcase.v1beta1.VerifyTestRequest; +import com.google.showcase.v1beta1.VerifyTestResponse; +import java.util.ArrayList; + +public class AsyncVerifyTest { + + public static void main(String[] args) throws Exception { + asyncVerifyTest(); + } + + public static void asyncVerifyTest() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + VerifyTestRequest request = + VerifyTestRequest.newBuilder() + .setName(TestName.of("[SESSION]", "[TEST]").toString()) + .setAnswer(ByteString.EMPTY) + .addAllAnswers(new ArrayList()) + .build(); + ApiFuture future = testingClient.verifyTestCallable().futureCall(request); + // Do something. + VerifyTestResponse response = future.get(); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_VerifyTest_async] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/verifytest/SyncVerifyTest.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/verifytest/SyncVerifyTest.java new file mode 100644 index 0000000000..c1fd2d7258 --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testing/verifytest/SyncVerifyTest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_Testing_VerifyTest_sync] +import com.google.protobuf.ByteString; +import com.google.showcase.v1beta1.TestName; +import com.google.showcase.v1beta1.TestingClient; +import com.google.showcase.v1beta1.VerifyTestRequest; +import com.google.showcase.v1beta1.VerifyTestResponse; +import java.util.ArrayList; + +public class SyncVerifyTest { + + public static void main(String[] args) throws Exception { + syncVerifyTest(); + } + + public static void syncVerifyTest() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TestingClient testingClient = TestingClient.create()) { + VerifyTestRequest request = + VerifyTestRequest.newBuilder() + .setName(TestName.of("[SESSION]", "[TEST]").toString()) + .setAnswer(ByteString.EMPTY) + .addAllAnswers(new ArrayList()) + .build(); + VerifyTestResponse response = testingClient.verifyTest(request); + } + } +} +// [END localhost7469_v1beta1_generated_Testing_VerifyTest_sync] diff --git a/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testingsettings/createsession/SyncCreateSession.java b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testingsettings/createsession/SyncCreateSession.java new file mode 100644 index 0000000000..dfe3382bec --- /dev/null +++ b/java-showcase/samples/snippets/generated/com/google/showcase/v1beta1/testingsettings/createsession/SyncCreateSession.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.showcase.v1beta1.samples; + +// [START localhost7469_v1beta1_generated_TestingSettings_CreateSession_sync] +import com.google.showcase.v1beta1.TestingSettings; +import java.time.Duration; + +public class SyncCreateSession { + + public static void main(String[] args) throws Exception { + syncCreateSession(); + } + + public static void syncCreateSession() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TestingSettings.Builder testingSettingsBuilder = TestingSettings.newBuilder(); + testingSettingsBuilder + .createSessionSettings() + .setRetrySettings( + testingSettingsBuilder + .createSessionSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + TestingSettings testingSettings = testingSettingsBuilder.build(); + } +} +// [END localhost7469_v1beta1_generated_TestingSettings_CreateSession_sync] diff --git a/java-showcase/scripts/generate_showcase.sh b/java-showcase/scripts/generate_showcase.sh new file mode 100755 index 0000000000..c93fa95567 --- /dev/null +++ b/java-showcase/scripts/generate_showcase.sh @@ -0,0 +1,87 @@ +#!/bin/bash +# Generates the showcase library using the docker image, which is built +# from the current state of the repo in order to test local changes. +set -ex + +trap cleanup ERR + +readonly ROOT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )/../.." +pushd "${ROOT_DIR}" +source "${ROOT_DIR}/java-showcase/scripts/showcase_utilities.sh" + +cleanup() { + if [[ -z "${api_def_dir}" ]]; then + rm -rf "${api_def_dir}" + fi + if [[ -z "${showcase_def_dir}" ]]; then + rm -rf "${showcase_def_dir}" + fi +} + +while [[ $# -gt 0 ]]; do +key="$1" +case "${key}" in + --replace) + replace="$2" + shift + ;; + *) + echo "Invalid option: [$1]" + exit 1 + ;; +esac +shift +done + +if [ -z "${replace}" ]; then + replace="false" +fi + + +# download api definitions from googleapis repository +googleapis_commitish=$(grep googleapis_commitish generation_config.yaml | cut -d ":" -f 2 | xargs) +api_def_dir=$(mktemp -d) +git clone https://github.com/googleapis/googleapis.git "${api_def_dir}" + +pushd "${api_def_dir}" +git checkout "${googleapis_commitish}" +# for local setups, we avoid permission issues when the docker image +# performs version-dependent operations. +rm -rf ".git/" +popd + +append_showcase_to_api_defs "${api_def_dir}" + +echo "building docker image" +DOCKER_BUILDKIT=1 docker build --file .cloudbuild/library_generation/library_generation.Dockerfile --iidfile image-id . + +if [[ "${replace}" == "true" ]]; then + generated_files_dir="${ROOT_DIR}" +else + export generated_files_dir=$(mktemp -d) + # here we store the generated library location for upstream scripts to use + # it. + echo "${generated_files_dir}/java-showcase" > "${ROOT_DIR}/generated-showcase-location" + # we prepare the temp folder with the minimal setup to perform an incremental + # generation. + pushd "${ROOT_DIR}" + cp -r generation_config.yaml java-showcase/ versions.txt "${generated_files_dir}" + popd #ROOT_DIR +fi + +GENERATOR_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout -pl gapic-generator-java) + +echo "generating showcase" +workspace_name="/workspace" +docker run \ + --rm \ + -u "$(id -u):$(id -g)" \ + -v "${generated_files_dir}:${workspace_name}" \ + -v "${api_def_dir}:${workspace_name}/googleapis" \ + -e GENERATOR_VERSION="${GENERATOR_VERSION}" \ + "$(cat image-id)" \ + --generation-config-path="${workspace_name}/generation_config.yaml" \ + --library-names="showcase" \ + --api-definitions-path="${workspace_name}/googleapis" + +echo "generated showcase library in ${generated_files_dir}" diff --git a/java-showcase/scripts/resources/BUILD.partial.bazel b/java-showcase/scripts/resources/BUILD.partial.bazel new file mode 100644 index 0000000000..2744c3a7b9 --- /dev/null +++ b/java-showcase/scripts/resources/BUILD.partial.bazel @@ -0,0 +1,27 @@ +# This file is a partial recovery of the BUILD.bazel file, which was last seen on +# https://github.com/googleapis/sdk-platform-java/commit/d59b87feddce69077c05ef8e44faea8c44f3338b +# +# We keep it here in order to leverage the protoc parameter inference of the hermetic build Docker image, +# which parses BUILD.bazel files from folders with api definitions (e.g. googleapis/googleapis). + +java_gapic_library( + grpc_service_config = "showcase_grpc_service_config.json", + service_yaml = "showcase_v1beta1.yaml", + test_deps = [ + ":showcase_java_grpc", + "@com_google_googleapis//google/cloud/location:location_java_grpc", + "@com_google_googleapis//google/iam/v1:iam_java_grpc" + ], + transport = "grpc+rest", +) + +proto_library_with_info( + deps = [ + "//google/cloud/location:location_proto", + "//google/iam/v1:iam_policy_proto" + ], +) + +java_gapic_assembly_gradle_pkg( + include_samples = True, +) diff --git a/java-showcase/scripts/showcase_utilities.sh b/java-showcase/scripts/showcase_utilities.sh new file mode 100644 index 0000000000..48e4a12acf --- /dev/null +++ b/java-showcase/scripts/showcase_utilities.sh @@ -0,0 +1,41 @@ +#!/bin/bash +readonly REPO_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )/../.." + +function cleanup { + script_dir=$1 + cd "${script_dir}" + rm -rf output gapic-generator-java* + rm -rf "${script_dir}/../../generated-showcase-location" +} + +get_version_from_pom() { + target_pom="$1" + key="$2" + # prints the result to stdout + grep -e "<${key}>" "${target_pom}" | cut -d'>' -f2 | cut -d'<' -f1 +} + +append_showcase_to_api_defs() { + api_def_dir="$1" + # append showcase definitions to googleapis repository + export showcase_def_dir=$(mktemp -d) + git clone https://github.com/googleapis/gapic-showcase.git "${showcase_def_dir}" + # looks at sdk-platform-java/java-showcase/gapic-showcase/pom.xml to extract the + # version of gapic-showcase + # see https://github.com/googleapis/gapic-showcase/releases + showcase_version=$(get_version_from_pom \ + "${REPO_DIR}/java-showcase/gapic-showcase/pom.xml" "gapic-showcase.version" + ) + pushd "${showcase_def_dir}" + git checkout "v${showcase_version}" + popd + # compliance_suite.json is a symbolic link outside of the schema folder, so we + # replace it with the actual contents in its original location. + compliance_suite_path="${showcase_def_dir}/schema/google/showcase/v1beta1/compliance_suite.json" + unlink "${compliance_suite_path}" + cp "${showcase_def_dir}/server/services/compliance_suite.json" "${compliance_suite_path}" + # we complete the BUILD.bazel in gapic-showcase with our java_library in order + # to generate the gapic portion. + cat "${REPO_DIR}/java-showcase/scripts/resources/BUILD.partial.bazel" >> "${showcase_def_dir}/schema/google/showcase/v1beta1/BUILD.bazel" + cp -r "${showcase_def_dir}/schema" "${api_def_dir}/" +} diff --git a/java-showcase/scripts/verify.sh b/java-showcase/scripts/verify.sh new file mode 100755 index 0000000000..dc241d2308 --- /dev/null +++ b/java-showcase/scripts/verify.sh @@ -0,0 +1,19 @@ +#!/bin/sh +# This script generates showcase in a temporary/untracked folder and compares +# its contents with the actual showcase libraries. + +set -oxe +readonly SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +readonly ROOT_DIR="${SCRIPT_DIR}/../.." +source "${SCRIPT_DIR}/showcase_utilities.sh" +readonly SHOWCASE_DIR="${SCRIPT_DIR}/.." + +# generate sources +bash "${SCRIPT_DIR}/generate_showcase.sh" --replace "false" + +generated_library_location=$(cat "${ROOT_DIR}/generated-showcase-location") + +# compare library +diff -ru "${SHOWCASE_DIR}/" "${generated_library_location}" + +cleanup $SCRIPT_DIR diff --git a/pom.xml b/pom.xml index d207468e77..6e328677b6 100644 --- a/pom.xml +++ b/pom.xml @@ -89,7 +89,7 @@ - showcase + java-showcase @@ -101,7 +101,7 @@ - showcase + java-showcase coverage-report diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/GrpcCapturingClientInterceptor.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/GrpcCapturingClientInterceptor.java deleted file mode 100644 index 156ee16e47..0000000000 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/GrpcCapturingClientInterceptor.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.showcase.v1beta1.it.util; - -import static com.google.common.truth.Truth.assertThat; -import static org.junit.jupiter.api.Assertions.assertThrows; - -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.FixedHeaderProvider; -import com.google.api.gax.rpc.StubSettings; -import com.google.common.collect.ImmutableList; -import com.google.showcase.v1beta1.it.util.TestClientInitializer; -import com.google.showcase.v1beta1.stub.ComplianceStubSettings; -import com.google.showcase.v1beta1.stub.EchoStubSettings; -import io.grpc.CallOptions; -import io.grpc.ClientInterceptor; -import io.grpc.Channel; -import io.grpc.ClientCall; - -import io.grpc.Metadata; -import io.grpc.MethodDescriptor; -import java.io.IOException; -import java.util.ArrayList; -import java.util.concurrent.TimeUnit; -import org.junit.jupiter.api.AfterAll; -import org.junit.jupiter.api.BeforeAll; -import org.junit.jupiter.api.Test; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonMetadata; -import io.grpc.ForwardingClientCall; -import io.grpc.Status; - -/** Implements a client interceptor to retrieve the metadata from a GRPC client request. */ -public class GrpcCapturingClientInterceptor implements ClientInterceptor { - public Metadata metadata; - - @Override - public ClientCall interceptCall( - MethodDescriptor method, final CallOptions callOptions, Channel next) { - ClientCall call = next.newCall(method, callOptions); - return new ForwardingClientCall.SimpleForwardingClientCall(call) { - @Override - public void start(Listener responseListener, Metadata headers) { - Listener wrappedListener = - new SimpleForwardingClientCallListener(responseListener) { - @Override - public void onClose(Status status, Metadata trailers) { - if (status.isOk()) { - metadata = trailers; - } - super.onClose(status, trailers); - } - }; - - super.start(wrappedListener, headers); - } - }; - } - - private static class SimpleForwardingClientCallListener - extends ClientCall.Listener { - private final ClientCall.Listener delegate; - - SimpleForwardingClientCallListener(ClientCall.Listener delegate) { - this.delegate = delegate; - } - - @Override - public void onHeaders(Metadata headers) { - delegate.onHeaders(headers); - } - - @Override - public void onMessage(RespT message) { - delegate.onMessage(message); - } - - @Override - public void onClose(Status status, Metadata trailers) { - delegate.onClose(status, trailers); - } - - @Override - public void onReady() { - delegate.onReady(); - } - } -} diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/HttpJsonCapturingClientInterceptor.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/HttpJsonCapturingClientInterceptor.java deleted file mode 100644 index 777398cc96..0000000000 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/HttpJsonCapturingClientInterceptor.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.showcase.v1beta1.it.util; - -import static com.google.common.truth.Truth.assertThat; -import static org.junit.jupiter.api.Assertions.assertThrows; - -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.httpjson.HttpJsonClientInterceptor; -import com.google.api.gax.rpc.FixedHeaderProvider; -import com.google.api.gax.rpc.StubSettings; -import com.google.common.collect.ImmutableList; -import com.google.showcase.v1beta1.it.util.GrpcCapturingClientInterceptor; -import com.google.showcase.v1beta1.it.util.HttpJsonCapturingClientInterceptor; -import com.google.showcase.v1beta1.it.util.TestClientInitializer; -import com.google.showcase.v1beta1.stub.ComplianceStubSettings; -import com.google.showcase.v1beta1.stub.EchoStubSettings; -import com.google.api.gax.httpjson.HttpJsonMetadata; -import java.io.IOException; -import com.google.common.collect.ImmutableList; -import java.util.ArrayList; -import java.util.concurrent.TimeUnit; -import org.junit.jupiter.api.AfterAll; -import org.junit.jupiter.api.BeforeAll; -import org.junit.jupiter.api.Test; -import com.google.api.gax.httpjson.HttpJsonCallOptions; -import com.google.api.gax.httpjson.HttpJsonChannel; -import com.google.api.gax.httpjson.HttpJsonClientCall; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.ForwardingHttpJsonClientCall; -import com.google.api.gax.httpjson.ForwardingHttpJsonClientCallListener; -import io.grpc.Status; - -/** Implements a client interceptor to retrieve the response headers from a HTTP client request. */ -public class HttpJsonCapturingClientInterceptor implements HttpJsonClientInterceptor { - public HttpJsonMetadata metadata; - - @Override - public HttpJsonClientCall interceptCall( - ApiMethodDescriptor method, - HttpJsonCallOptions callOptions, - HttpJsonChannel next) { - HttpJsonClientCall call = next.newCall(method, callOptions); - return new ForwardingHttpJsonClientCall.SimpleForwardingHttpJsonClientCall< - RequestT, ResponseT>(call) { - @Override - public void start(Listener responseListener, HttpJsonMetadata requestHeaders) { - Listener forwardingResponseListener = - new ForwardingHttpJsonClientCallListener.SimpleForwardingHttpJsonClientCallListener< - ResponseT>(responseListener) { - @Override - public void onHeaders(HttpJsonMetadata responseHeaders) { - metadata = responseHeaders; - super.onHeaders(responseHeaders); - } - - @Override - public void onMessage(ResponseT message) { - super.onMessage(message); - } - - @Override - public void onClose(int statusCode, HttpJsonMetadata trailers) { - super.onClose(statusCode, trailers); - } - }; - - super.start(forwardingResponseListener, requestHeaders); - } - }; - } -} \ No newline at end of file diff --git a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityGrpc.java b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityGrpc.java deleted file mode 100644 index 4d0168e2a5..0000000000 --- a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityGrpc.java +++ /dev/null @@ -1,667 +0,0 @@ -package com.google.showcase.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * A simple identity service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: schema/google/showcase/v1beta1/identity.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class IdentityGrpc { - - private IdentityGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.showcase.v1beta1.Identity"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateUserMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateUser", - requestType = com.google.showcase.v1beta1.CreateUserRequest.class, - responseType = com.google.showcase.v1beta1.User.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateUserMethod() { - io.grpc.MethodDescriptor getCreateUserMethod; - if ((getCreateUserMethod = IdentityGrpc.getCreateUserMethod) == null) { - synchronized (IdentityGrpc.class) { - if ((getCreateUserMethod = IdentityGrpc.getCreateUserMethod) == null) { - IdentityGrpc.getCreateUserMethod = getCreateUserMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateUser")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.CreateUserRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.User.getDefaultInstance())) - .setSchemaDescriptor(new IdentityMethodDescriptorSupplier("CreateUser")) - .build(); - } - } - } - return getCreateUserMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetUserMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetUser", - requestType = com.google.showcase.v1beta1.GetUserRequest.class, - responseType = com.google.showcase.v1beta1.User.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetUserMethod() { - io.grpc.MethodDescriptor getGetUserMethod; - if ((getGetUserMethod = IdentityGrpc.getGetUserMethod) == null) { - synchronized (IdentityGrpc.class) { - if ((getGetUserMethod = IdentityGrpc.getGetUserMethod) == null) { - IdentityGrpc.getGetUserMethod = getGetUserMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUser")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.GetUserRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.User.getDefaultInstance())) - .setSchemaDescriptor(new IdentityMethodDescriptorSupplier("GetUser")) - .build(); - } - } - } - return getGetUserMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateUserMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateUser", - requestType = com.google.showcase.v1beta1.UpdateUserRequest.class, - responseType = com.google.showcase.v1beta1.User.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateUserMethod() { - io.grpc.MethodDescriptor getUpdateUserMethod; - if ((getUpdateUserMethod = IdentityGrpc.getUpdateUserMethod) == null) { - synchronized (IdentityGrpc.class) { - if ((getUpdateUserMethod = IdentityGrpc.getUpdateUserMethod) == null) { - IdentityGrpc.getUpdateUserMethod = getUpdateUserMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateUser")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.UpdateUserRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.User.getDefaultInstance())) - .setSchemaDescriptor(new IdentityMethodDescriptorSupplier("UpdateUser")) - .build(); - } - } - } - return getUpdateUserMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteUserMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteUser", - requestType = com.google.showcase.v1beta1.DeleteUserRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteUserMethod() { - io.grpc.MethodDescriptor getDeleteUserMethod; - if ((getDeleteUserMethod = IdentityGrpc.getDeleteUserMethod) == null) { - synchronized (IdentityGrpc.class) { - if ((getDeleteUserMethod = IdentityGrpc.getDeleteUserMethod) == null) { - IdentityGrpc.getDeleteUserMethod = getDeleteUserMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteUser")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.DeleteUserRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new IdentityMethodDescriptorSupplier("DeleteUser")) - .build(); - } - } - } - return getDeleteUserMethod; - } - - private static volatile io.grpc.MethodDescriptor getListUsersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUsers", - requestType = com.google.showcase.v1beta1.ListUsersRequest.class, - responseType = com.google.showcase.v1beta1.ListUsersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListUsersMethod() { - io.grpc.MethodDescriptor getListUsersMethod; - if ((getListUsersMethod = IdentityGrpc.getListUsersMethod) == null) { - synchronized (IdentityGrpc.class) { - if ((getListUsersMethod = IdentityGrpc.getListUsersMethod) == null) { - IdentityGrpc.getListUsersMethod = getListUsersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsers")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.ListUsersRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.ListUsersResponse.getDefaultInstance())) - .setSchemaDescriptor(new IdentityMethodDescriptorSupplier("ListUsers")) - .build(); - } - } - } - return getListUsersMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static IdentityStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public IdentityStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IdentityStub(channel, callOptions); - } - }; - return IdentityStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static IdentityBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public IdentityBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IdentityBlockingStub(channel, callOptions); - } - }; - return IdentityBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static IdentityFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public IdentityFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IdentityFutureStub(channel, callOptions); - } - }; - return IdentityFutureStub.newStub(factory, channel); - } - - /** - *
-   * A simple identity service.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Creates a user.
-     * 
- */ - default void createUser(com.google.showcase.v1beta1.CreateUserRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateUserMethod(), responseObserver); - } - - /** - *
-     * Retrieves the User with the given uri.
-     * 
- */ - default void getUser(com.google.showcase.v1beta1.GetUserRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetUserMethod(), responseObserver); - } - - /** - *
-     * Updates a user.
-     * 
- */ - default void updateUser(com.google.showcase.v1beta1.UpdateUserRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateUserMethod(), responseObserver); - } - - /** - *
-     * Deletes a user, their profile, and all of their authored messages.
-     * 
- */ - default void deleteUser(com.google.showcase.v1beta1.DeleteUserRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteUserMethod(), responseObserver); - } - - /** - *
-     * Lists all users.
-     * 
- */ - default void listUsers(com.google.showcase.v1beta1.ListUsersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsersMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Identity. - *
-   * A simple identity service.
-   * 
- */ - public static abstract class IdentityImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return IdentityGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Identity. - *
-   * A simple identity service.
-   * 
- */ - public static final class IdentityStub - extends io.grpc.stub.AbstractAsyncStub { - private IdentityStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected IdentityStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IdentityStub(channel, callOptions); - } - - /** - *
-     * Creates a user.
-     * 
- */ - public void createUser(com.google.showcase.v1beta1.CreateUserRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateUserMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieves the User with the given uri.
-     * 
- */ - public void getUser(com.google.showcase.v1beta1.GetUserRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetUserMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a user.
-     * 
- */ - public void updateUser(com.google.showcase.v1beta1.UpdateUserRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateUserMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a user, their profile, and all of their authored messages.
-     * 
- */ - public void deleteUser(com.google.showcase.v1beta1.DeleteUserRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteUserMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all users.
-     * 
- */ - public void listUsers(com.google.showcase.v1beta1.ListUsersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUsersMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Identity. - *
-   * A simple identity service.
-   * 
- */ - public static final class IdentityBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private IdentityBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected IdentityBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IdentityBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a user.
-     * 
- */ - public com.google.showcase.v1beta1.User createUser(com.google.showcase.v1beta1.CreateUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateUserMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieves the User with the given uri.
-     * 
- */ - public com.google.showcase.v1beta1.User getUser(com.google.showcase.v1beta1.GetUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetUserMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a user.
-     * 
- */ - public com.google.showcase.v1beta1.User updateUser(com.google.showcase.v1beta1.UpdateUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateUserMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a user, their profile, and all of their authored messages.
-     * 
- */ - public com.google.protobuf.Empty deleteUser(com.google.showcase.v1beta1.DeleteUserRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteUserMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all users.
-     * 
- */ - public com.google.showcase.v1beta1.ListUsersResponse listUsers(com.google.showcase.v1beta1.ListUsersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUsersMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Identity. - *
-   * A simple identity service.
-   * 
- */ - public static final class IdentityFutureStub - extends io.grpc.stub.AbstractFutureStub { - private IdentityFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected IdentityFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IdentityFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a user.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createUser( - com.google.showcase.v1beta1.CreateUserRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateUserMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieves the User with the given uri.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getUser( - com.google.showcase.v1beta1.GetUserRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetUserMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a user.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateUser( - com.google.showcase.v1beta1.UpdateUserRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateUserMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a user, their profile, and all of their authored messages.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteUser( - com.google.showcase.v1beta1.DeleteUserRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteUserMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all users.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listUsers( - com.google.showcase.v1beta1.ListUsersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUsersMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_USER = 0; - private static final int METHODID_GET_USER = 1; - private static final int METHODID_UPDATE_USER = 2; - private static final int METHODID_DELETE_USER = 3; - private static final int METHODID_LIST_USERS = 4; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_CREATE_USER: - serviceImpl.createUser((com.google.showcase.v1beta1.CreateUserRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_USER: - serviceImpl.getUser((com.google.showcase.v1beta1.GetUserRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_USER: - serviceImpl.updateUser((com.google.showcase.v1beta1.UpdateUserRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_USER: - serviceImpl.deleteUser((com.google.showcase.v1beta1.DeleteUserRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_USERS: - serviceImpl.listUsers((com.google.showcase.v1beta1.ListUsersRequest) 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateUserMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.CreateUserRequest, - com.google.showcase.v1beta1.User>( - service, METHODID_CREATE_USER))) - .addMethod( - getGetUserMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.GetUserRequest, - com.google.showcase.v1beta1.User>( - service, METHODID_GET_USER))) - .addMethod( - getUpdateUserMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.UpdateUserRequest, - com.google.showcase.v1beta1.User>( - service, METHODID_UPDATE_USER))) - .addMethod( - getDeleteUserMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.DeleteUserRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_USER))) - .addMethod( - getListUsersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.ListUsersRequest, - com.google.showcase.v1beta1.ListUsersResponse>( - service, METHODID_LIST_USERS))) - .build(); - } - - private static abstract class IdentityBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - IdentityBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.showcase.v1beta1.IdentityOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Identity"); - } - } - - private static final class IdentityFileDescriptorSupplier - extends IdentityBaseDescriptorSupplier { - IdentityFileDescriptorSupplier() {} - } - - private static final class IdentityMethodDescriptorSupplier - extends IdentityBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - IdentityMethodDescriptorSupplier(java.lang.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 (IdentityGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new IdentityFileDescriptorSupplier()) - .addMethod(getCreateUserMethod()) - .addMethod(getGetUserMethod()) - .addMethod(getUpdateUserMethod()) - .addMethod(getDeleteUserMethod()) - .addMethod(getListUsersMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingGrpc.java b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingGrpc.java deleted file mode 100644 index 04c1ed6ed8..0000000000 --- a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingGrpc.java +++ /dev/null @@ -1,1430 +0,0 @@ -package com.google.showcase.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * A simple messaging service that implements chat rooms and profile posts.
- * This messaging service showcases the features that API clients
- * generated by gapic-generators implement.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: schema/google/showcase/v1beta1/messaging.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class MessagingGrpc { - - private MessagingGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.showcase.v1beta1.Messaging"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateRoomMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRoom", - requestType = com.google.showcase.v1beta1.CreateRoomRequest.class, - responseType = com.google.showcase.v1beta1.Room.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateRoomMethod() { - io.grpc.MethodDescriptor getCreateRoomMethod; - if ((getCreateRoomMethod = MessagingGrpc.getCreateRoomMethod) == null) { - synchronized (MessagingGrpc.class) { - if ((getCreateRoomMethod = MessagingGrpc.getCreateRoomMethod) == null) { - MessagingGrpc.getCreateRoomMethod = getCreateRoomMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRoom")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.CreateRoomRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.Room.getDefaultInstance())) - .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("CreateRoom")) - .build(); - } - } - } - return getCreateRoomMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetRoomMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRoom", - requestType = com.google.showcase.v1beta1.GetRoomRequest.class, - responseType = com.google.showcase.v1beta1.Room.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRoomMethod() { - io.grpc.MethodDescriptor getGetRoomMethod; - if ((getGetRoomMethod = MessagingGrpc.getGetRoomMethod) == null) { - synchronized (MessagingGrpc.class) { - if ((getGetRoomMethod = MessagingGrpc.getGetRoomMethod) == null) { - MessagingGrpc.getGetRoomMethod = getGetRoomMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRoom")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.GetRoomRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.Room.getDefaultInstance())) - .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("GetRoom")) - .build(); - } - } - } - return getGetRoomMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateRoomMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateRoom", - requestType = com.google.showcase.v1beta1.UpdateRoomRequest.class, - responseType = com.google.showcase.v1beta1.Room.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateRoomMethod() { - io.grpc.MethodDescriptor getUpdateRoomMethod; - if ((getUpdateRoomMethod = MessagingGrpc.getUpdateRoomMethod) == null) { - synchronized (MessagingGrpc.class) { - if ((getUpdateRoomMethod = MessagingGrpc.getUpdateRoomMethod) == null) { - MessagingGrpc.getUpdateRoomMethod = getUpdateRoomMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRoom")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.UpdateRoomRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.Room.getDefaultInstance())) - .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("UpdateRoom")) - .build(); - } - } - } - return getUpdateRoomMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteRoomMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRoom", - requestType = com.google.showcase.v1beta1.DeleteRoomRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteRoomMethod() { - io.grpc.MethodDescriptor getDeleteRoomMethod; - if ((getDeleteRoomMethod = MessagingGrpc.getDeleteRoomMethod) == null) { - synchronized (MessagingGrpc.class) { - if ((getDeleteRoomMethod = MessagingGrpc.getDeleteRoomMethod) == null) { - MessagingGrpc.getDeleteRoomMethod = getDeleteRoomMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRoom")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.DeleteRoomRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("DeleteRoom")) - .build(); - } - } - } - return getDeleteRoomMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRoomsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRooms", - requestType = com.google.showcase.v1beta1.ListRoomsRequest.class, - responseType = com.google.showcase.v1beta1.ListRoomsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRoomsMethod() { - io.grpc.MethodDescriptor getListRoomsMethod; - if ((getListRoomsMethod = MessagingGrpc.getListRoomsMethod) == null) { - synchronized (MessagingGrpc.class) { - if ((getListRoomsMethod = MessagingGrpc.getListRoomsMethod) == null) { - MessagingGrpc.getListRoomsMethod = getListRoomsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRooms")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.ListRoomsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.ListRoomsResponse.getDefaultInstance())) - .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("ListRooms")) - .build(); - } - } - } - return getListRoomsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateBlurbMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateBlurb", - requestType = com.google.showcase.v1beta1.CreateBlurbRequest.class, - responseType = com.google.showcase.v1beta1.Blurb.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateBlurbMethod() { - io.grpc.MethodDescriptor getCreateBlurbMethod; - if ((getCreateBlurbMethod = MessagingGrpc.getCreateBlurbMethod) == null) { - synchronized (MessagingGrpc.class) { - if ((getCreateBlurbMethod = MessagingGrpc.getCreateBlurbMethod) == null) { - MessagingGrpc.getCreateBlurbMethod = getCreateBlurbMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBlurb")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.CreateBlurbRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.Blurb.getDefaultInstance())) - .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("CreateBlurb")) - .build(); - } - } - } - return getCreateBlurbMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetBlurbMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBlurb", - requestType = com.google.showcase.v1beta1.GetBlurbRequest.class, - responseType = com.google.showcase.v1beta1.Blurb.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBlurbMethod() { - io.grpc.MethodDescriptor getGetBlurbMethod; - if ((getGetBlurbMethod = MessagingGrpc.getGetBlurbMethod) == null) { - synchronized (MessagingGrpc.class) { - if ((getGetBlurbMethod = MessagingGrpc.getGetBlurbMethod) == null) { - MessagingGrpc.getGetBlurbMethod = getGetBlurbMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlurb")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.GetBlurbRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.Blurb.getDefaultInstance())) - .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("GetBlurb")) - .build(); - } - } - } - return getGetBlurbMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateBlurbMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateBlurb", - requestType = com.google.showcase.v1beta1.UpdateBlurbRequest.class, - responseType = com.google.showcase.v1beta1.Blurb.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateBlurbMethod() { - io.grpc.MethodDescriptor getUpdateBlurbMethod; - if ((getUpdateBlurbMethod = MessagingGrpc.getUpdateBlurbMethod) == null) { - synchronized (MessagingGrpc.class) { - if ((getUpdateBlurbMethod = MessagingGrpc.getUpdateBlurbMethod) == null) { - MessagingGrpc.getUpdateBlurbMethod = getUpdateBlurbMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBlurb")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.UpdateBlurbRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.Blurb.getDefaultInstance())) - .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("UpdateBlurb")) - .build(); - } - } - } - return getUpdateBlurbMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteBlurbMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteBlurb", - requestType = com.google.showcase.v1beta1.DeleteBlurbRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteBlurbMethod() { - io.grpc.MethodDescriptor getDeleteBlurbMethod; - if ((getDeleteBlurbMethod = MessagingGrpc.getDeleteBlurbMethod) == null) { - synchronized (MessagingGrpc.class) { - if ((getDeleteBlurbMethod = MessagingGrpc.getDeleteBlurbMethod) == null) { - MessagingGrpc.getDeleteBlurbMethod = getDeleteBlurbMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBlurb")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.DeleteBlurbRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("DeleteBlurb")) - .build(); - } - } - } - return getDeleteBlurbMethod; - } - - private static volatile io.grpc.MethodDescriptor getListBlurbsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListBlurbs", - requestType = com.google.showcase.v1beta1.ListBlurbsRequest.class, - responseType = com.google.showcase.v1beta1.ListBlurbsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListBlurbsMethod() { - io.grpc.MethodDescriptor getListBlurbsMethod; - if ((getListBlurbsMethod = MessagingGrpc.getListBlurbsMethod) == null) { - synchronized (MessagingGrpc.class) { - if ((getListBlurbsMethod = MessagingGrpc.getListBlurbsMethod) == null) { - MessagingGrpc.getListBlurbsMethod = getListBlurbsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBlurbs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.ListBlurbsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.ListBlurbsResponse.getDefaultInstance())) - .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("ListBlurbs")) - .build(); - } - } - } - return getListBlurbsMethod; - } - - private static volatile io.grpc.MethodDescriptor getSearchBlurbsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchBlurbs", - requestType = com.google.showcase.v1beta1.SearchBlurbsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSearchBlurbsMethod() { - io.grpc.MethodDescriptor getSearchBlurbsMethod; - if ((getSearchBlurbsMethod = MessagingGrpc.getSearchBlurbsMethod) == null) { - synchronized (MessagingGrpc.class) { - if ((getSearchBlurbsMethod = MessagingGrpc.getSearchBlurbsMethod) == null) { - MessagingGrpc.getSearchBlurbsMethod = getSearchBlurbsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchBlurbs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.SearchBlurbsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("SearchBlurbs")) - .build(); - } - } - } - return getSearchBlurbsMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamBlurbsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamBlurbs", - requestType = com.google.showcase.v1beta1.StreamBlurbsRequest.class, - responseType = com.google.showcase.v1beta1.StreamBlurbsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getStreamBlurbsMethod() { - io.grpc.MethodDescriptor getStreamBlurbsMethod; - if ((getStreamBlurbsMethod = MessagingGrpc.getStreamBlurbsMethod) == null) { - synchronized (MessagingGrpc.class) { - if ((getStreamBlurbsMethod = MessagingGrpc.getStreamBlurbsMethod) == null) { - MessagingGrpc.getStreamBlurbsMethod = getStreamBlurbsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamBlurbs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.StreamBlurbsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.StreamBlurbsResponse.getDefaultInstance())) - .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("StreamBlurbs")) - .build(); - } - } - } - return getStreamBlurbsMethod; - } - - private static volatile io.grpc.MethodDescriptor getSendBlurbsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SendBlurbs", - requestType = com.google.showcase.v1beta1.CreateBlurbRequest.class, - responseType = com.google.showcase.v1beta1.SendBlurbsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) - public static io.grpc.MethodDescriptor getSendBlurbsMethod() { - io.grpc.MethodDescriptor getSendBlurbsMethod; - if ((getSendBlurbsMethod = MessagingGrpc.getSendBlurbsMethod) == null) { - synchronized (MessagingGrpc.class) { - if ((getSendBlurbsMethod = MessagingGrpc.getSendBlurbsMethod) == null) { - MessagingGrpc.getSendBlurbsMethod = getSendBlurbsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendBlurbs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.CreateBlurbRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.SendBlurbsResponse.getDefaultInstance())) - .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("SendBlurbs")) - .build(); - } - } - } - return getSendBlurbsMethod; - } - - private static volatile io.grpc.MethodDescriptor getConnectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Connect", - requestType = com.google.showcase.v1beta1.ConnectRequest.class, - responseType = com.google.showcase.v1beta1.StreamBlurbsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getConnectMethod() { - io.grpc.MethodDescriptor getConnectMethod; - if ((getConnectMethod = MessagingGrpc.getConnectMethod) == null) { - synchronized (MessagingGrpc.class) { - if ((getConnectMethod = MessagingGrpc.getConnectMethod) == null) { - MessagingGrpc.getConnectMethod = getConnectMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Connect")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.ConnectRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.StreamBlurbsResponse.getDefaultInstance())) - .setSchemaDescriptor(new MessagingMethodDescriptorSupplier("Connect")) - .build(); - } - } - } - return getConnectMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MessagingStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MessagingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MessagingStub(channel, callOptions); - } - }; - return MessagingStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MessagingBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MessagingBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MessagingBlockingStub(channel, callOptions); - } - }; - return MessagingBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MessagingFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MessagingFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MessagingFutureStub(channel, callOptions); - } - }; - return MessagingFutureStub.newStub(factory, channel); - } - - /** - *
-   * A simple messaging service that implements chat rooms and profile posts.
-   * This messaging service showcases the features that API clients
-   * generated by gapic-generators implement.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Creates a room.
-     * 
- */ - default void createRoom(com.google.showcase.v1beta1.CreateRoomRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRoomMethod(), responseObserver); - } - - /** - *
-     * Retrieves the Room with the given resource name.
-     * 
- */ - default void getRoom(com.google.showcase.v1beta1.GetRoomRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRoomMethod(), responseObserver); - } - - /** - *
-     * Updates a room.
-     * 
- */ - default void updateRoom(com.google.showcase.v1beta1.UpdateRoomRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateRoomMethod(), responseObserver); - } - - /** - *
-     * Deletes a room and all of its blurbs.
-     * 
- */ - default void deleteRoom(com.google.showcase.v1beta1.DeleteRoomRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRoomMethod(), responseObserver); - } - - /** - *
-     * Lists all chat rooms.
-     * 
- */ - default void listRooms(com.google.showcase.v1beta1.ListRoomsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRoomsMethod(), responseObserver); - } - - /** - *
-     * Creates a blurb. If the parent is a room, the blurb is understood to be a
-     * message in that room. If the parent is a profile, the blurb is understood
-     * to be a post on the profile.
-     * 
- */ - default void createBlurb(com.google.showcase.v1beta1.CreateBlurbRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBlurbMethod(), responseObserver); - } - - /** - *
-     * Retrieves the Blurb with the given resource name.
-     * 
- */ - default void getBlurb(com.google.showcase.v1beta1.GetBlurbRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlurbMethod(), responseObserver); - } - - /** - *
-     * Updates a blurb.
-     * 
- */ - default void updateBlurb(com.google.showcase.v1beta1.UpdateBlurbRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBlurbMethod(), responseObserver); - } - - /** - *
-     * Deletes a blurb.
-     * 
- */ - default void deleteBlurb(com.google.showcase.v1beta1.DeleteBlurbRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBlurbMethod(), responseObserver); - } - - /** - *
-     * Lists blurbs for a specific chat room or user profile depending on the
-     * parent resource name.
-     * 
- */ - default void listBlurbs(com.google.showcase.v1beta1.ListBlurbsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBlurbsMethod(), responseObserver); - } - - /** - *
-     * This method searches through all blurbs across all rooms and profiles
-     * for blurbs containing to words found in the query. Only posts that
-     * contain an exact match of a queried word will be returned.
-     * 
- */ - default void searchBlurbs(com.google.showcase.v1beta1.SearchBlurbsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchBlurbsMethod(), responseObserver); - } - - /** - *
-     * This returns a stream that emits the blurbs that are created for a
-     * particular chat room or user profile.
-     * 
- */ - default void streamBlurbs(com.google.showcase.v1beta1.StreamBlurbsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStreamBlurbsMethod(), responseObserver); - } - - /** - *
-     * This is a stream to create multiple blurbs. If an invalid blurb is
-     * requested to be created, the stream will close with an error.
-     * 
- */ - default io.grpc.stub.StreamObserver sendBlurbs( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getSendBlurbsMethod(), responseObserver); - } - - /** - *
-     * This method starts a bidirectional stream that receives all blurbs that
-     * are being created after the stream has started and sends requests to create
-     * blurbs. If an invalid blurb is requested to be created, the stream will
-     * close with an error.
-     * 
- */ - default io.grpc.stub.StreamObserver connect( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getConnectMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Messaging. - *
-   * A simple messaging service that implements chat rooms and profile posts.
-   * This messaging service showcases the features that API clients
-   * generated by gapic-generators implement.
-   * 
- */ - public static abstract class MessagingImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return MessagingGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Messaging. - *
-   * A simple messaging service that implements chat rooms and profile posts.
-   * This messaging service showcases the features that API clients
-   * generated by gapic-generators implement.
-   * 
- */ - public static final class MessagingStub - extends io.grpc.stub.AbstractAsyncStub { - private MessagingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MessagingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MessagingStub(channel, callOptions); - } - - /** - *
-     * Creates a room.
-     * 
- */ - public void createRoom(com.google.showcase.v1beta1.CreateRoomRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRoomMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieves the Room with the given resource name.
-     * 
- */ - public void getRoom(com.google.showcase.v1beta1.GetRoomRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRoomMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a room.
-     * 
- */ - public void updateRoom(com.google.showcase.v1beta1.UpdateRoomRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateRoomMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a room and all of its blurbs.
-     * 
- */ - public void deleteRoom(com.google.showcase.v1beta1.DeleteRoomRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRoomMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all chat rooms.
-     * 
- */ - public void listRooms(com.google.showcase.v1beta1.ListRoomsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRoomsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a blurb. If the parent is a room, the blurb is understood to be a
-     * message in that room. If the parent is a profile, the blurb is understood
-     * to be a post on the profile.
-     * 
- */ - public void createBlurb(com.google.showcase.v1beta1.CreateBlurbRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBlurbMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieves the Blurb with the given resource name.
-     * 
- */ - public void getBlurb(com.google.showcase.v1beta1.GetBlurbRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBlurbMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a blurb.
-     * 
- */ - public void updateBlurb(com.google.showcase.v1beta1.UpdateBlurbRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBlurbMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a blurb.
-     * 
- */ - public void deleteBlurb(com.google.showcase.v1beta1.DeleteBlurbRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBlurbMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists blurbs for a specific chat room or user profile depending on the
-     * parent resource name.
-     * 
- */ - public void listBlurbs(com.google.showcase.v1beta1.ListBlurbsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBlurbsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * This method searches through all blurbs across all rooms and profiles
-     * for blurbs containing to words found in the query. Only posts that
-     * contain an exact match of a queried word will be returned.
-     * 
- */ - public void searchBlurbs(com.google.showcase.v1beta1.SearchBlurbsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchBlurbsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * This returns a stream that emits the blurbs that are created for a
-     * particular chat room or user profile.
-     * 
- */ - public void streamBlurbs(com.google.showcase.v1beta1.StreamBlurbsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getStreamBlurbsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * This is a stream to create multiple blurbs. If an invalid blurb is
-     * requested to be created, the stream will close with an error.
-     * 
- */ - public io.grpc.stub.StreamObserver sendBlurbs( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncClientStreamingCall( - getChannel().newCall(getSendBlurbsMethod(), getCallOptions()), responseObserver); - } - - /** - *
-     * This method starts a bidirectional stream that receives all blurbs that
-     * are being created after the stream has started and sends requests to create
-     * blurbs. If an invalid blurb is requested to be created, the stream will
-     * close with an error.
-     * 
- */ - public io.grpc.stub.StreamObserver connect( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getConnectMethod(), getCallOptions()), responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Messaging. - *
-   * A simple messaging service that implements chat rooms and profile posts.
-   * This messaging service showcases the features that API clients
-   * generated by gapic-generators implement.
-   * 
- */ - public static final class MessagingBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private MessagingBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MessagingBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MessagingBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a room.
-     * 
- */ - public com.google.showcase.v1beta1.Room createRoom(com.google.showcase.v1beta1.CreateRoomRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRoomMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieves the Room with the given resource name.
-     * 
- */ - public com.google.showcase.v1beta1.Room getRoom(com.google.showcase.v1beta1.GetRoomRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRoomMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a room.
-     * 
- */ - public com.google.showcase.v1beta1.Room updateRoom(com.google.showcase.v1beta1.UpdateRoomRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRoomMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a room and all of its blurbs.
-     * 
- */ - public com.google.protobuf.Empty deleteRoom(com.google.showcase.v1beta1.DeleteRoomRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRoomMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all chat rooms.
-     * 
- */ - public com.google.showcase.v1beta1.ListRoomsResponse listRooms(com.google.showcase.v1beta1.ListRoomsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRoomsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a blurb. If the parent is a room, the blurb is understood to be a
-     * message in that room. If the parent is a profile, the blurb is understood
-     * to be a post on the profile.
-     * 
- */ - public com.google.showcase.v1beta1.Blurb createBlurb(com.google.showcase.v1beta1.CreateBlurbRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateBlurbMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieves the Blurb with the given resource name.
-     * 
- */ - public com.google.showcase.v1beta1.Blurb getBlurb(com.google.showcase.v1beta1.GetBlurbRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBlurbMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a blurb.
-     * 
- */ - public com.google.showcase.v1beta1.Blurb updateBlurb(com.google.showcase.v1beta1.UpdateBlurbRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateBlurbMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a blurb.
-     * 
- */ - public com.google.protobuf.Empty deleteBlurb(com.google.showcase.v1beta1.DeleteBlurbRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBlurbMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists blurbs for a specific chat room or user profile depending on the
-     * parent resource name.
-     * 
- */ - public com.google.showcase.v1beta1.ListBlurbsResponse listBlurbs(com.google.showcase.v1beta1.ListBlurbsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBlurbsMethod(), getCallOptions(), request); - } - - /** - *
-     * This method searches through all blurbs across all rooms and profiles
-     * for blurbs containing to words found in the query. Only posts that
-     * contain an exact match of a queried word will be returned.
-     * 
- */ - public com.google.longrunning.Operation searchBlurbs(com.google.showcase.v1beta1.SearchBlurbsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchBlurbsMethod(), getCallOptions(), request); - } - - /** - *
-     * This returns a stream that emits the blurbs that are created for a
-     * particular chat room or user profile.
-     * 
- */ - public java.util.Iterator streamBlurbs( - com.google.showcase.v1beta1.StreamBlurbsRequest request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getStreamBlurbsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Messaging. - *
-   * A simple messaging service that implements chat rooms and profile posts.
-   * This messaging service showcases the features that API clients
-   * generated by gapic-generators implement.
-   * 
- */ - public static final class MessagingFutureStub - extends io.grpc.stub.AbstractFutureStub { - private MessagingFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MessagingFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MessagingFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a room.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createRoom( - com.google.showcase.v1beta1.CreateRoomRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRoomMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieves the Room with the given resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getRoom( - com.google.showcase.v1beta1.GetRoomRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRoomMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a room.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateRoom( - com.google.showcase.v1beta1.UpdateRoomRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateRoomMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a room and all of its blurbs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteRoom( - com.google.showcase.v1beta1.DeleteRoomRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRoomMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all chat rooms.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listRooms( - com.google.showcase.v1beta1.ListRoomsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRoomsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a blurb. If the parent is a room, the blurb is understood to be a
-     * message in that room. If the parent is a profile, the blurb is understood
-     * to be a post on the profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createBlurb( - com.google.showcase.v1beta1.CreateBlurbRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateBlurbMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieves the Blurb with the given resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getBlurb( - com.google.showcase.v1beta1.GetBlurbRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetBlurbMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a blurb.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateBlurb( - com.google.showcase.v1beta1.UpdateBlurbRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateBlurbMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a blurb.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteBlurb( - com.google.showcase.v1beta1.DeleteBlurbRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteBlurbMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists blurbs for a specific chat room or user profile depending on the
-     * parent resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listBlurbs( - com.google.showcase.v1beta1.ListBlurbsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListBlurbsMethod(), getCallOptions()), request); - } - - /** - *
-     * This method searches through all blurbs across all rooms and profiles
-     * for blurbs containing to words found in the query. Only posts that
-     * contain an exact match of a queried word will be returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture searchBlurbs( - com.google.showcase.v1beta1.SearchBlurbsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchBlurbsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_ROOM = 0; - private static final int METHODID_GET_ROOM = 1; - private static final int METHODID_UPDATE_ROOM = 2; - private static final int METHODID_DELETE_ROOM = 3; - private static final int METHODID_LIST_ROOMS = 4; - private static final int METHODID_CREATE_BLURB = 5; - private static final int METHODID_GET_BLURB = 6; - private static final int METHODID_UPDATE_BLURB = 7; - private static final int METHODID_DELETE_BLURB = 8; - private static final int METHODID_LIST_BLURBS = 9; - private static final int METHODID_SEARCH_BLURBS = 10; - private static final int METHODID_STREAM_BLURBS = 11; - private static final int METHODID_SEND_BLURBS = 12; - private static final int METHODID_CONNECT = 13; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_CREATE_ROOM: - serviceImpl.createRoom((com.google.showcase.v1beta1.CreateRoomRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ROOM: - serviceImpl.getRoom((com.google.showcase.v1beta1.GetRoomRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ROOM: - serviceImpl.updateRoom((com.google.showcase.v1beta1.UpdateRoomRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ROOM: - serviceImpl.deleteRoom((com.google.showcase.v1beta1.DeleteRoomRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ROOMS: - serviceImpl.listRooms((com.google.showcase.v1beta1.ListRoomsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_BLURB: - serviceImpl.createBlurb((com.google.showcase.v1beta1.CreateBlurbRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_BLURB: - serviceImpl.getBlurb((com.google.showcase.v1beta1.GetBlurbRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_BLURB: - serviceImpl.updateBlurb((com.google.showcase.v1beta1.UpdateBlurbRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_BLURB: - serviceImpl.deleteBlurb((com.google.showcase.v1beta1.DeleteBlurbRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_BLURBS: - serviceImpl.listBlurbs((com.google.showcase.v1beta1.ListBlurbsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEARCH_BLURBS: - serviceImpl.searchBlurbs((com.google.showcase.v1beta1.SearchBlurbsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STREAM_BLURBS: - serviceImpl.streamBlurbs((com.google.showcase.v1beta1.StreamBlurbsRequest) 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) { - case METHODID_SEND_BLURBS: - return (io.grpc.stub.StreamObserver) serviceImpl.sendBlurbs( - (io.grpc.stub.StreamObserver) responseObserver); - case METHODID_CONNECT: - return (io.grpc.stub.StreamObserver) serviceImpl.connect( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateRoomMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.CreateRoomRequest, - com.google.showcase.v1beta1.Room>( - service, METHODID_CREATE_ROOM))) - .addMethod( - getGetRoomMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.GetRoomRequest, - com.google.showcase.v1beta1.Room>( - service, METHODID_GET_ROOM))) - .addMethod( - getUpdateRoomMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.UpdateRoomRequest, - com.google.showcase.v1beta1.Room>( - service, METHODID_UPDATE_ROOM))) - .addMethod( - getDeleteRoomMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.DeleteRoomRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_ROOM))) - .addMethod( - getListRoomsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.ListRoomsRequest, - com.google.showcase.v1beta1.ListRoomsResponse>( - service, METHODID_LIST_ROOMS))) - .addMethod( - getCreateBlurbMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.CreateBlurbRequest, - com.google.showcase.v1beta1.Blurb>( - service, METHODID_CREATE_BLURB))) - .addMethod( - getGetBlurbMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.GetBlurbRequest, - com.google.showcase.v1beta1.Blurb>( - service, METHODID_GET_BLURB))) - .addMethod( - getUpdateBlurbMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.UpdateBlurbRequest, - com.google.showcase.v1beta1.Blurb>( - service, METHODID_UPDATE_BLURB))) - .addMethod( - getDeleteBlurbMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.DeleteBlurbRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_BLURB))) - .addMethod( - getListBlurbsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.ListBlurbsRequest, - com.google.showcase.v1beta1.ListBlurbsResponse>( - service, METHODID_LIST_BLURBS))) - .addMethod( - getSearchBlurbsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.SearchBlurbsRequest, - com.google.longrunning.Operation>( - service, METHODID_SEARCH_BLURBS))) - .addMethod( - getStreamBlurbsMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.showcase.v1beta1.StreamBlurbsRequest, - com.google.showcase.v1beta1.StreamBlurbsResponse>( - service, METHODID_STREAM_BLURBS))) - .addMethod( - getSendBlurbsMethod(), - io.grpc.stub.ServerCalls.asyncClientStreamingCall( - new MethodHandlers< - com.google.showcase.v1beta1.CreateBlurbRequest, - com.google.showcase.v1beta1.SendBlurbsResponse>( - service, METHODID_SEND_BLURBS))) - .addMethod( - getConnectMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.showcase.v1beta1.ConnectRequest, - com.google.showcase.v1beta1.StreamBlurbsResponse>( - service, METHODID_CONNECT))) - .build(); - } - - private static abstract class MessagingBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MessagingBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.showcase.v1beta1.MessagingOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Messaging"); - } - } - - private static final class MessagingFileDescriptorSupplier - extends MessagingBaseDescriptorSupplier { - MessagingFileDescriptorSupplier() {} - } - - private static final class MessagingMethodDescriptorSupplier - extends MessagingBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - MessagingMethodDescriptorSupplier(java.lang.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 (MessagingGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MessagingFileDescriptorSupplier()) - .addMethod(getCreateRoomMethod()) - .addMethod(getGetRoomMethod()) - .addMethod(getUpdateRoomMethod()) - .addMethod(getDeleteRoomMethod()) - .addMethod(getListRoomsMethod()) - .addMethod(getCreateBlurbMethod()) - .addMethod(getGetBlurbMethod()) - .addMethod(getUpdateBlurbMethod()) - .addMethod(getDeleteBlurbMethod()) - .addMethod(getListBlurbsMethod()) - .addMethod(getSearchBlurbsMethod()) - .addMethod(getStreamBlurbsMethod()) - .addMethod(getSendBlurbsMethod()) - .addMethod(getConnectMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceServiceGrpc.java b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceServiceGrpc.java deleted file mode 100644 index 5512a820dc..0000000000 --- a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceServiceGrpc.java +++ /dev/null @@ -1,725 +0,0 @@ -package com.google.showcase.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: schema/google/showcase/v1beta1/sequence.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SequenceServiceGrpc { - - private SequenceServiceGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.showcase.v1beta1.SequenceService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateSequenceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSequence", - requestType = com.google.showcase.v1beta1.CreateSequenceRequest.class, - responseType = com.google.showcase.v1beta1.Sequence.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSequenceMethod() { - io.grpc.MethodDescriptor getCreateSequenceMethod; - if ((getCreateSequenceMethod = SequenceServiceGrpc.getCreateSequenceMethod) == null) { - synchronized (SequenceServiceGrpc.class) { - if ((getCreateSequenceMethod = SequenceServiceGrpc.getCreateSequenceMethod) == null) { - SequenceServiceGrpc.getCreateSequenceMethod = getCreateSequenceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSequence")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.CreateSequenceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.Sequence.getDefaultInstance())) - .setSchemaDescriptor(new SequenceServiceMethodDescriptorSupplier("CreateSequence")) - .build(); - } - } - } - return getCreateSequenceMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateStreamingSequenceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateStreamingSequence", - requestType = com.google.showcase.v1beta1.CreateStreamingSequenceRequest.class, - responseType = com.google.showcase.v1beta1.StreamingSequence.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateStreamingSequenceMethod() { - io.grpc.MethodDescriptor getCreateStreamingSequenceMethod; - if ((getCreateStreamingSequenceMethod = SequenceServiceGrpc.getCreateStreamingSequenceMethod) == null) { - synchronized (SequenceServiceGrpc.class) { - if ((getCreateStreamingSequenceMethod = SequenceServiceGrpc.getCreateStreamingSequenceMethod) == null) { - SequenceServiceGrpc.getCreateStreamingSequenceMethod = getCreateStreamingSequenceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateStreamingSequence")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.CreateStreamingSequenceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance())) - .setSchemaDescriptor(new SequenceServiceMethodDescriptorSupplier("CreateStreamingSequence")) - .build(); - } - } - } - return getCreateStreamingSequenceMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSequenceReportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSequenceReport", - requestType = com.google.showcase.v1beta1.GetSequenceReportRequest.class, - responseType = com.google.showcase.v1beta1.SequenceReport.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSequenceReportMethod() { - io.grpc.MethodDescriptor getGetSequenceReportMethod; - if ((getGetSequenceReportMethod = SequenceServiceGrpc.getGetSequenceReportMethod) == null) { - synchronized (SequenceServiceGrpc.class) { - if ((getGetSequenceReportMethod = SequenceServiceGrpc.getGetSequenceReportMethod) == null) { - SequenceServiceGrpc.getGetSequenceReportMethod = getGetSequenceReportMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSequenceReport")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.GetSequenceReportRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.SequenceReport.getDefaultInstance())) - .setSchemaDescriptor(new SequenceServiceMethodDescriptorSupplier("GetSequenceReport")) - .build(); - } - } - } - return getGetSequenceReportMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetStreamingSequenceReportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetStreamingSequenceReport", - requestType = com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.class, - responseType = com.google.showcase.v1beta1.StreamingSequenceReport.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetStreamingSequenceReportMethod() { - io.grpc.MethodDescriptor getGetStreamingSequenceReportMethod; - if ((getGetStreamingSequenceReportMethod = SequenceServiceGrpc.getGetStreamingSequenceReportMethod) == null) { - synchronized (SequenceServiceGrpc.class) { - if ((getGetStreamingSequenceReportMethod = SequenceServiceGrpc.getGetStreamingSequenceReportMethod) == null) { - SequenceServiceGrpc.getGetStreamingSequenceReportMethod = getGetStreamingSequenceReportMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStreamingSequenceReport")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.GetStreamingSequenceReportRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.StreamingSequenceReport.getDefaultInstance())) - .setSchemaDescriptor(new SequenceServiceMethodDescriptorSupplier("GetStreamingSequenceReport")) - .build(); - } - } - } - return getGetStreamingSequenceReportMethod; - } - - private static volatile io.grpc.MethodDescriptor getAttemptSequenceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AttemptSequence", - requestType = com.google.showcase.v1beta1.AttemptSequenceRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAttemptSequenceMethod() { - io.grpc.MethodDescriptor getAttemptSequenceMethod; - if ((getAttemptSequenceMethod = SequenceServiceGrpc.getAttemptSequenceMethod) == null) { - synchronized (SequenceServiceGrpc.class) { - if ((getAttemptSequenceMethod = SequenceServiceGrpc.getAttemptSequenceMethod) == null) { - SequenceServiceGrpc.getAttemptSequenceMethod = getAttemptSequenceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AttemptSequence")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.AttemptSequenceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new SequenceServiceMethodDescriptorSupplier("AttemptSequence")) - .build(); - } - } - } - return getAttemptSequenceMethod; - } - - private static volatile io.grpc.MethodDescriptor getAttemptStreamingSequenceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AttemptStreamingSequence", - requestType = com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.class, - responseType = com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getAttemptStreamingSequenceMethod() { - io.grpc.MethodDescriptor getAttemptStreamingSequenceMethod; - if ((getAttemptStreamingSequenceMethod = SequenceServiceGrpc.getAttemptStreamingSequenceMethod) == null) { - synchronized (SequenceServiceGrpc.class) { - if ((getAttemptStreamingSequenceMethod = SequenceServiceGrpc.getAttemptStreamingSequenceMethod) == null) { - SequenceServiceGrpc.getAttemptStreamingSequenceMethod = getAttemptStreamingSequenceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AttemptStreamingSequence")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.AttemptStreamingSequenceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.AttemptStreamingSequenceResponse.getDefaultInstance())) - .setSchemaDescriptor(new SequenceServiceMethodDescriptorSupplier("AttemptStreamingSequence")) - .build(); - } - } - } - return getAttemptStreamingSequenceMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static SequenceServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SequenceServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SequenceServiceStub(channel, callOptions); - } - }; - return SequenceServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SequenceServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SequenceServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SequenceServiceBlockingStub(channel, callOptions); - } - }; - return SequenceServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static SequenceServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SequenceServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SequenceServiceFutureStub(channel, callOptions); - } - }; - return SequenceServiceFutureStub.newStub(factory, channel); - } - - /** - */ - public interface AsyncService { - - /** - *
-     * Creates a sequence.
-     * 
- */ - default void createSequence(com.google.showcase.v1beta1.CreateSequenceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSequenceMethod(), responseObserver); - } - - /** - *
-     * Creates a sequence.
-     * 
- */ - default void createStreamingSequence(com.google.showcase.v1beta1.CreateStreamingSequenceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateStreamingSequenceMethod(), responseObserver); - } - - /** - *
-     * Retrieves a sequence.
-     * 
- */ - default void getSequenceReport(com.google.showcase.v1beta1.GetSequenceReportRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSequenceReportMethod(), responseObserver); - } - - /** - *
-     * Retrieves a sequence.
-     * 
- */ - default void getStreamingSequenceReport(com.google.showcase.v1beta1.GetStreamingSequenceReportRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStreamingSequenceReportMethod(), responseObserver); - } - - /** - *
-     * Attempts a sequence.
-     * 
- */ - default void attemptSequence(com.google.showcase.v1beta1.AttemptSequenceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAttemptSequenceMethod(), responseObserver); - } - - /** - *
-     * Attempts a streaming sequence.
-     * 
- */ - default void attemptStreamingSequence(com.google.showcase.v1beta1.AttemptStreamingSequenceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAttemptStreamingSequenceMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service SequenceService. - */ - public static abstract class SequenceServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return SequenceServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service SequenceService. - */ - public static final class SequenceServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private SequenceServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SequenceServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SequenceServiceStub(channel, callOptions); - } - - /** - *
-     * Creates a sequence.
-     * 
- */ - public void createSequence(com.google.showcase.v1beta1.CreateSequenceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSequenceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a sequence.
-     * 
- */ - public void createStreamingSequence(com.google.showcase.v1beta1.CreateStreamingSequenceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateStreamingSequenceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieves a sequence.
-     * 
- */ - public void getSequenceReport(com.google.showcase.v1beta1.GetSequenceReportRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSequenceReportMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieves a sequence.
-     * 
- */ - public void getStreamingSequenceReport(com.google.showcase.v1beta1.GetStreamingSequenceReportRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetStreamingSequenceReportMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Attempts a sequence.
-     * 
- */ - public void attemptSequence(com.google.showcase.v1beta1.AttemptSequenceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAttemptSequenceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Attempts a streaming sequence.
-     * 
- */ - public void attemptStreamingSequence(com.google.showcase.v1beta1.AttemptStreamingSequenceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getAttemptStreamingSequenceMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service SequenceService. - */ - public static final class SequenceServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SequenceServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SequenceServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SequenceServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a sequence.
-     * 
- */ - public com.google.showcase.v1beta1.Sequence createSequence(com.google.showcase.v1beta1.CreateSequenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSequenceMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a sequence.
-     * 
- */ - public com.google.showcase.v1beta1.StreamingSequence createStreamingSequence(com.google.showcase.v1beta1.CreateStreamingSequenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateStreamingSequenceMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieves a sequence.
-     * 
- */ - public com.google.showcase.v1beta1.SequenceReport getSequenceReport(com.google.showcase.v1beta1.GetSequenceReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSequenceReportMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieves a sequence.
-     * 
- */ - public com.google.showcase.v1beta1.StreamingSequenceReport getStreamingSequenceReport(com.google.showcase.v1beta1.GetStreamingSequenceReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetStreamingSequenceReportMethod(), getCallOptions(), request); - } - - /** - *
-     * Attempts a sequence.
-     * 
- */ - public com.google.protobuf.Empty attemptSequence(com.google.showcase.v1beta1.AttemptSequenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAttemptSequenceMethod(), getCallOptions(), request); - } - - /** - *
-     * Attempts a streaming sequence.
-     * 
- */ - public java.util.Iterator attemptStreamingSequence( - com.google.showcase.v1beta1.AttemptStreamingSequenceRequest request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getAttemptStreamingSequenceMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service SequenceService. - */ - public static final class SequenceServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SequenceServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SequenceServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SequenceServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a sequence.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSequence( - com.google.showcase.v1beta1.CreateSequenceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSequenceMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a sequence.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createStreamingSequence( - com.google.showcase.v1beta1.CreateStreamingSequenceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateStreamingSequenceMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieves a sequence.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSequenceReport( - com.google.showcase.v1beta1.GetSequenceReportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSequenceReportMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieves a sequence.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getStreamingSequenceReport( - com.google.showcase.v1beta1.GetStreamingSequenceReportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetStreamingSequenceReportMethod(), getCallOptions()), request); - } - - /** - *
-     * Attempts a sequence.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture attemptSequence( - com.google.showcase.v1beta1.AttemptSequenceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAttemptSequenceMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SEQUENCE = 0; - private static final int METHODID_CREATE_STREAMING_SEQUENCE = 1; - private static final int METHODID_GET_SEQUENCE_REPORT = 2; - private static final int METHODID_GET_STREAMING_SEQUENCE_REPORT = 3; - private static final int METHODID_ATTEMPT_SEQUENCE = 4; - private static final int METHODID_ATTEMPT_STREAMING_SEQUENCE = 5; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_CREATE_SEQUENCE: - serviceImpl.createSequence((com.google.showcase.v1beta1.CreateSequenceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_STREAMING_SEQUENCE: - serviceImpl.createStreamingSequence((com.google.showcase.v1beta1.CreateStreamingSequenceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SEQUENCE_REPORT: - serviceImpl.getSequenceReport((com.google.showcase.v1beta1.GetSequenceReportRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_STREAMING_SEQUENCE_REPORT: - serviceImpl.getStreamingSequenceReport((com.google.showcase.v1beta1.GetStreamingSequenceReportRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ATTEMPT_SEQUENCE: - serviceImpl.attemptSequence((com.google.showcase.v1beta1.AttemptSequenceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ATTEMPT_STREAMING_SEQUENCE: - serviceImpl.attemptStreamingSequence((com.google.showcase.v1beta1.AttemptStreamingSequenceRequest) 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateSequenceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.CreateSequenceRequest, - com.google.showcase.v1beta1.Sequence>( - service, METHODID_CREATE_SEQUENCE))) - .addMethod( - getCreateStreamingSequenceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.CreateStreamingSequenceRequest, - com.google.showcase.v1beta1.StreamingSequence>( - service, METHODID_CREATE_STREAMING_SEQUENCE))) - .addMethod( - getGetSequenceReportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.GetSequenceReportRequest, - com.google.showcase.v1beta1.SequenceReport>( - service, METHODID_GET_SEQUENCE_REPORT))) - .addMethod( - getGetStreamingSequenceReportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.GetStreamingSequenceReportRequest, - com.google.showcase.v1beta1.StreamingSequenceReport>( - service, METHODID_GET_STREAMING_SEQUENCE_REPORT))) - .addMethod( - getAttemptSequenceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.AttemptSequenceRequest, - com.google.protobuf.Empty>( - service, METHODID_ATTEMPT_SEQUENCE))) - .addMethod( - getAttemptStreamingSequenceMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.showcase.v1beta1.AttemptStreamingSequenceRequest, - com.google.showcase.v1beta1.AttemptStreamingSequenceResponse>( - service, METHODID_ATTEMPT_STREAMING_SEQUENCE))) - .build(); - } - - private static abstract class SequenceServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SequenceServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.showcase.v1beta1.SequenceOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SequenceService"); - } - } - - private static final class SequenceServiceFileDescriptorSupplier - extends SequenceServiceBaseDescriptorSupplier { - SequenceServiceFileDescriptorSupplier() {} - } - - private static final class SequenceServiceMethodDescriptorSupplier - extends SequenceServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - SequenceServiceMethodDescriptorSupplier(java.lang.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 (SequenceServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SequenceServiceFileDescriptorSupplier()) - .addMethod(getCreateSequenceMethod()) - .addMethod(getCreateStreamingSequenceMethod()) - .addMethod(getGetSequenceReportMethod()) - .addMethod(getGetStreamingSequenceReportMethod()) - .addMethod(getAttemptSequenceMethod()) - .addMethod(getAttemptStreamingSequenceMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestingGrpc.java b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestingGrpc.java deleted file mode 100644 index 61c3d974e4..0000000000 --- a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestingGrpc.java +++ /dev/null @@ -1,989 +0,0 @@ -package com.google.showcase.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * A service to facilitate running discrete sets of tests
- * against Showcase.
- * Adding this comment with special characters for comment formatting tests:
- * 1. (abra->kadabra->alakazam)
- * 2) [Nonsense][]: `pokemon/*/psychic/*`
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: schema/google/showcase/v1beta1/testing.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TestingGrpc { - - private TestingGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.showcase.v1beta1.Testing"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateSessionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSession", - requestType = com.google.showcase.v1beta1.CreateSessionRequest.class, - responseType = com.google.showcase.v1beta1.Session.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSessionMethod() { - io.grpc.MethodDescriptor getCreateSessionMethod; - if ((getCreateSessionMethod = TestingGrpc.getCreateSessionMethod) == null) { - synchronized (TestingGrpc.class) { - if ((getCreateSessionMethod = TestingGrpc.getCreateSessionMethod) == null) { - TestingGrpc.getCreateSessionMethod = getCreateSessionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSession")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.CreateSessionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.Session.getDefaultInstance())) - .setSchemaDescriptor(new TestingMethodDescriptorSupplier("CreateSession")) - .build(); - } - } - } - return getCreateSessionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSessionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSession", - requestType = com.google.showcase.v1beta1.GetSessionRequest.class, - responseType = com.google.showcase.v1beta1.Session.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSessionMethod() { - io.grpc.MethodDescriptor getGetSessionMethod; - if ((getGetSessionMethod = TestingGrpc.getGetSessionMethod) == null) { - synchronized (TestingGrpc.class) { - if ((getGetSessionMethod = TestingGrpc.getGetSessionMethod) == null) { - TestingGrpc.getGetSessionMethod = getGetSessionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSession")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.GetSessionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.Session.getDefaultInstance())) - .setSchemaDescriptor(new TestingMethodDescriptorSupplier("GetSession")) - .build(); - } - } - } - return getGetSessionMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSessionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSessions", - requestType = com.google.showcase.v1beta1.ListSessionsRequest.class, - responseType = com.google.showcase.v1beta1.ListSessionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSessionsMethod() { - io.grpc.MethodDescriptor getListSessionsMethod; - if ((getListSessionsMethod = TestingGrpc.getListSessionsMethod) == null) { - synchronized (TestingGrpc.class) { - if ((getListSessionsMethod = TestingGrpc.getListSessionsMethod) == null) { - TestingGrpc.getListSessionsMethod = getListSessionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSessions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.ListSessionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.ListSessionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TestingMethodDescriptorSupplier("ListSessions")) - .build(); - } - } - } - return getListSessionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteSessionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSession", - requestType = com.google.showcase.v1beta1.DeleteSessionRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSessionMethod() { - io.grpc.MethodDescriptor getDeleteSessionMethod; - if ((getDeleteSessionMethod = TestingGrpc.getDeleteSessionMethod) == null) { - synchronized (TestingGrpc.class) { - if ((getDeleteSessionMethod = TestingGrpc.getDeleteSessionMethod) == null) { - TestingGrpc.getDeleteSessionMethod = getDeleteSessionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSession")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.DeleteSessionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new TestingMethodDescriptorSupplier("DeleteSession")) - .build(); - } - } - } - return getDeleteSessionMethod; - } - - private static volatile io.grpc.MethodDescriptor getReportSessionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ReportSession", - requestType = com.google.showcase.v1beta1.ReportSessionRequest.class, - responseType = com.google.showcase.v1beta1.ReportSessionResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getReportSessionMethod() { - io.grpc.MethodDescriptor getReportSessionMethod; - if ((getReportSessionMethod = TestingGrpc.getReportSessionMethod) == null) { - synchronized (TestingGrpc.class) { - if ((getReportSessionMethod = TestingGrpc.getReportSessionMethod) == null) { - TestingGrpc.getReportSessionMethod = getReportSessionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReportSession")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.ReportSessionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.ReportSessionResponse.getDefaultInstance())) - .setSchemaDescriptor(new TestingMethodDescriptorSupplier("ReportSession")) - .build(); - } - } - } - return getReportSessionMethod; - } - - private static volatile io.grpc.MethodDescriptor getListTestsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTests", - requestType = com.google.showcase.v1beta1.ListTestsRequest.class, - responseType = com.google.showcase.v1beta1.ListTestsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListTestsMethod() { - io.grpc.MethodDescriptor getListTestsMethod; - if ((getListTestsMethod = TestingGrpc.getListTestsMethod) == null) { - synchronized (TestingGrpc.class) { - if ((getListTestsMethod = TestingGrpc.getListTestsMethod) == null) { - TestingGrpc.getListTestsMethod = getListTestsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTests")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.ListTestsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.ListTestsResponse.getDefaultInstance())) - .setSchemaDescriptor(new TestingMethodDescriptorSupplier("ListTests")) - .build(); - } - } - } - return getListTestsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteTestMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTest", - requestType = com.google.showcase.v1beta1.DeleteTestRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteTestMethod() { - io.grpc.MethodDescriptor getDeleteTestMethod; - if ((getDeleteTestMethod = TestingGrpc.getDeleteTestMethod) == null) { - synchronized (TestingGrpc.class) { - if ((getDeleteTestMethod = TestingGrpc.getDeleteTestMethod) == null) { - TestingGrpc.getDeleteTestMethod = getDeleteTestMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTest")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.DeleteTestRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new TestingMethodDescriptorSupplier("DeleteTest")) - .build(); - } - } - } - return getDeleteTestMethod; - } - - private static volatile io.grpc.MethodDescriptor getVerifyTestMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "VerifyTest", - requestType = com.google.showcase.v1beta1.VerifyTestRequest.class, - responseType = com.google.showcase.v1beta1.VerifyTestResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getVerifyTestMethod() { - io.grpc.MethodDescriptor getVerifyTestMethod; - if ((getVerifyTestMethod = TestingGrpc.getVerifyTestMethod) == null) { - synchronized (TestingGrpc.class) { - if ((getVerifyTestMethod = TestingGrpc.getVerifyTestMethod) == null) { - TestingGrpc.getVerifyTestMethod = getVerifyTestMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyTest")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.VerifyTestRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.showcase.v1beta1.VerifyTestResponse.getDefaultInstance())) - .setSchemaDescriptor(new TestingMethodDescriptorSupplier("VerifyTest")) - .build(); - } - } - } - return getVerifyTestMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static TestingStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TestingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TestingStub(channel, callOptions); - } - }; - return TestingStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TestingBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TestingBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TestingBlockingStub(channel, callOptions); - } - }; - return TestingBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static TestingFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TestingFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TestingFutureStub(channel, callOptions); - } - }; - return TestingFutureStub.newStub(factory, channel); - } - - /** - *
-   * A service to facilitate running discrete sets of tests
-   * against Showcase.
-   * Adding this comment with special characters for comment formatting tests:
-   * 1. (abra->kadabra->alakazam)
-   * 2) [Nonsense][]: `pokemon/*/psychic/*`
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Creates a new testing session.
-     * Adding this comment with special characters for comment formatting tests:
-     * 1. (abra->kadabra->alakazam)
-     * 2) [Nonsense][]: `pokemon/*/psychic/*`
-     * 
- */ - default void createSession(com.google.showcase.v1beta1.CreateSessionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSessionMethod(), responseObserver); - } - - /** - *
-     * Gets a testing session.
-     * 
- */ - default void getSession(com.google.showcase.v1beta1.GetSessionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSessionMethod(), responseObserver); - } - - /** - *
-     * Lists the current test sessions.
-     * 
- */ - default void listSessions(com.google.showcase.v1beta1.ListSessionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSessionsMethod(), responseObserver); - } - - /** - *
-     * Delete a test session.
-     * 
- */ - default void deleteSession(com.google.showcase.v1beta1.DeleteSessionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSessionMethod(), responseObserver); - } - - /** - *
-     * Report on the status of a session.
-     * This generates a report detailing which tests have been completed,
-     * and an overall rollup.
-     * 
- */ - default void reportSession(com.google.showcase.v1beta1.ReportSessionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReportSessionMethod(), responseObserver); - } - - /** - *
-     * List the tests of a sessesion.
-     * 
- */ - default void listTests(com.google.showcase.v1beta1.ListTestsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTestsMethod(), responseObserver); - } - - /** - *
-     * Explicitly decline to implement a test.
-     * This removes the test from subsequent `ListTests` calls, and
-     * attempting to do the test will error.
-     * This method will error if attempting to delete a required test.
-     * 
- */ - default void deleteTest(com.google.showcase.v1beta1.DeleteTestRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTestMethod(), responseObserver); - } - - /** - *
-     * Register a response to a test.
-     * In cases where a test involves registering a final answer at the
-     * end of the test, this method provides the means to do so.
-     * 
- */ - default void verifyTest(com.google.showcase.v1beta1.VerifyTestRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyTestMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Testing. - *
-   * A service to facilitate running discrete sets of tests
-   * against Showcase.
-   * Adding this comment with special characters for comment formatting tests:
-   * 1. (abra->kadabra->alakazam)
-   * 2) [Nonsense][]: `pokemon/*/psychic/*`
-   * 
- */ - public static abstract class TestingImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return TestingGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Testing. - *
-   * A service to facilitate running discrete sets of tests
-   * against Showcase.
-   * Adding this comment with special characters for comment formatting tests:
-   * 1. (abra->kadabra->alakazam)
-   * 2) [Nonsense][]: `pokemon/*/psychic/*`
-   * 
- */ - public static final class TestingStub - extends io.grpc.stub.AbstractAsyncStub { - private TestingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TestingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TestingStub(channel, callOptions); - } - - /** - *
-     * Creates a new testing session.
-     * Adding this comment with special characters for comment formatting tests:
-     * 1. (abra->kadabra->alakazam)
-     * 2) [Nonsense][]: `pokemon/*/psychic/*`
-     * 
- */ - public void createSession(com.google.showcase.v1beta1.CreateSessionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSessionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a testing session.
-     * 
- */ - public void getSession(com.google.showcase.v1beta1.GetSessionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSessionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists the current test sessions.
-     * 
- */ - public void listSessions(com.google.showcase.v1beta1.ListSessionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSessionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Delete a test session.
-     * 
- */ - public void deleteSession(com.google.showcase.v1beta1.DeleteSessionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSessionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Report on the status of a session.
-     * This generates a report detailing which tests have been completed,
-     * and an overall rollup.
-     * 
- */ - public void reportSession(com.google.showcase.v1beta1.ReportSessionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getReportSessionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List the tests of a sessesion.
-     * 
- */ - public void listTests(com.google.showcase.v1beta1.ListTestsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTestsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Explicitly decline to implement a test.
-     * This removes the test from subsequent `ListTests` calls, and
-     * attempting to do the test will error.
-     * This method will error if attempting to delete a required test.
-     * 
- */ - public void deleteTest(com.google.showcase.v1beta1.DeleteTestRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTestMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Register a response to a test.
-     * In cases where a test involves registering a final answer at the
-     * end of the test, this method provides the means to do so.
-     * 
- */ - public void verifyTest(com.google.showcase.v1beta1.VerifyTestRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getVerifyTestMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Testing. - *
-   * A service to facilitate running discrete sets of tests
-   * against Showcase.
-   * Adding this comment with special characters for comment formatting tests:
-   * 1. (abra->kadabra->alakazam)
-   * 2) [Nonsense][]: `pokemon/*/psychic/*`
-   * 
- */ - public static final class TestingBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private TestingBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TestingBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TestingBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a new testing session.
-     * Adding this comment with special characters for comment formatting tests:
-     * 1. (abra->kadabra->alakazam)
-     * 2) [Nonsense][]: `pokemon/*/psychic/*`
-     * 
- */ - public com.google.showcase.v1beta1.Session createSession(com.google.showcase.v1beta1.CreateSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSessionMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a testing session.
-     * 
- */ - public com.google.showcase.v1beta1.Session getSession(com.google.showcase.v1beta1.GetSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSessionMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists the current test sessions.
-     * 
- */ - public com.google.showcase.v1beta1.ListSessionsResponse listSessions(com.google.showcase.v1beta1.ListSessionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSessionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Delete a test session.
-     * 
- */ - public com.google.protobuf.Empty deleteSession(com.google.showcase.v1beta1.DeleteSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSessionMethod(), getCallOptions(), request); - } - - /** - *
-     * Report on the status of a session.
-     * This generates a report detailing which tests have been completed,
-     * and an overall rollup.
-     * 
- */ - public com.google.showcase.v1beta1.ReportSessionResponse reportSession(com.google.showcase.v1beta1.ReportSessionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getReportSessionMethod(), getCallOptions(), request); - } - - /** - *
-     * List the tests of a sessesion.
-     * 
- */ - public com.google.showcase.v1beta1.ListTestsResponse listTests(com.google.showcase.v1beta1.ListTestsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTestsMethod(), getCallOptions(), request); - } - - /** - *
-     * Explicitly decline to implement a test.
-     * This removes the test from subsequent `ListTests` calls, and
-     * attempting to do the test will error.
-     * This method will error if attempting to delete a required test.
-     * 
- */ - public com.google.protobuf.Empty deleteTest(com.google.showcase.v1beta1.DeleteTestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTestMethod(), getCallOptions(), request); - } - - /** - *
-     * Register a response to a test.
-     * In cases where a test involves registering a final answer at the
-     * end of the test, this method provides the means to do so.
-     * 
- */ - public com.google.showcase.v1beta1.VerifyTestResponse verifyTest(com.google.showcase.v1beta1.VerifyTestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getVerifyTestMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Testing. - *
-   * A service to facilitate running discrete sets of tests
-   * against Showcase.
-   * Adding this comment with special characters for comment formatting tests:
-   * 1. (abra->kadabra->alakazam)
-   * 2) [Nonsense][]: `pokemon/*/psychic/*`
-   * 
- */ - public static final class TestingFutureStub - extends io.grpc.stub.AbstractFutureStub { - private TestingFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TestingFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TestingFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a new testing session.
-     * Adding this comment with special characters for comment formatting tests:
-     * 1. (abra->kadabra->alakazam)
-     * 2) [Nonsense][]: `pokemon/*/psychic/*`
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSession( - com.google.showcase.v1beta1.CreateSessionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSessionMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a testing session.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSession( - com.google.showcase.v1beta1.GetSessionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSessionMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists the current test sessions.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSessions( - com.google.showcase.v1beta1.ListSessionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSessionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Delete a test session.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSession( - com.google.showcase.v1beta1.DeleteSessionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSessionMethod(), getCallOptions()), request); - } - - /** - *
-     * Report on the status of a session.
-     * This generates a report detailing which tests have been completed,
-     * and an overall rollup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture reportSession( - com.google.showcase.v1beta1.ReportSessionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getReportSessionMethod(), getCallOptions()), request); - } - - /** - *
-     * List the tests of a sessesion.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listTests( - com.google.showcase.v1beta1.ListTestsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTestsMethod(), getCallOptions()), request); - } - - /** - *
-     * Explicitly decline to implement a test.
-     * This removes the test from subsequent `ListTests` calls, and
-     * attempting to do the test will error.
-     * This method will error if attempting to delete a required test.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteTest( - com.google.showcase.v1beta1.DeleteTestRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTestMethod(), getCallOptions()), request); - } - - /** - *
-     * Register a response to a test.
-     * In cases where a test involves registering a final answer at the
-     * end of the test, this method provides the means to do so.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture verifyTest( - com.google.showcase.v1beta1.VerifyTestRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getVerifyTestMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SESSION = 0; - private static final int METHODID_GET_SESSION = 1; - private static final int METHODID_LIST_SESSIONS = 2; - private static final int METHODID_DELETE_SESSION = 3; - private static final int METHODID_REPORT_SESSION = 4; - private static final int METHODID_LIST_TESTS = 5; - private static final int METHODID_DELETE_TEST = 6; - private static final int METHODID_VERIFY_TEST = 7; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_CREATE_SESSION: - serviceImpl.createSession((com.google.showcase.v1beta1.CreateSessionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SESSION: - serviceImpl.getSession((com.google.showcase.v1beta1.GetSessionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SESSIONS: - serviceImpl.listSessions((com.google.showcase.v1beta1.ListSessionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SESSION: - serviceImpl.deleteSession((com.google.showcase.v1beta1.DeleteSessionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_REPORT_SESSION: - serviceImpl.reportSession((com.google.showcase.v1beta1.ReportSessionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_TESTS: - serviceImpl.listTests((com.google.showcase.v1beta1.ListTestsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_TEST: - serviceImpl.deleteTest((com.google.showcase.v1beta1.DeleteTestRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VERIFY_TEST: - serviceImpl.verifyTest((com.google.showcase.v1beta1.VerifyTestRequest) 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateSessionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.CreateSessionRequest, - com.google.showcase.v1beta1.Session>( - service, METHODID_CREATE_SESSION))) - .addMethod( - getGetSessionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.GetSessionRequest, - com.google.showcase.v1beta1.Session>( - service, METHODID_GET_SESSION))) - .addMethod( - getListSessionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.ListSessionsRequest, - com.google.showcase.v1beta1.ListSessionsResponse>( - service, METHODID_LIST_SESSIONS))) - .addMethod( - getDeleteSessionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.DeleteSessionRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_SESSION))) - .addMethod( - getReportSessionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.ReportSessionRequest, - com.google.showcase.v1beta1.ReportSessionResponse>( - service, METHODID_REPORT_SESSION))) - .addMethod( - getListTestsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.ListTestsRequest, - com.google.showcase.v1beta1.ListTestsResponse>( - service, METHODID_LIST_TESTS))) - .addMethod( - getDeleteTestMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.DeleteTestRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_TEST))) - .addMethod( - getVerifyTestMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.showcase.v1beta1.VerifyTestRequest, - com.google.showcase.v1beta1.VerifyTestResponse>( - service, METHODID_VERIFY_TEST))) - .build(); - } - - private static abstract class TestingBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TestingBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.showcase.v1beta1.TestingOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Testing"); - } - } - - private static final class TestingFileDescriptorSupplier - extends TestingBaseDescriptorSupplier { - TestingFileDescriptorSupplier() {} - } - - private static final class TestingMethodDescriptorSupplier - extends TestingBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - TestingMethodDescriptorSupplier(java.lang.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 (TestingGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TestingFileDescriptorSupplier()) - .addMethod(getCreateSessionMethod()) - .addMethod(getGetSessionMethod()) - .addMethod(getListSessionsMethod()) - .addMethod(getDeleteSessionMethod()) - .addMethod(getReportSessionMethod()) - .addMethod(getListTestsMethod()) - .addMethod(getDeleteTestMethod()) - .addMethod(getVerifyTestMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequestOrBuilder.java deleted file mode 100644 index 7e926d2f94..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequestOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/sequence.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface AttemptSequenceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.AttemptSequenceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequestOrBuilder.java deleted file mode 100644 index 2be7475975..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequestOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/sequence.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface AttemptStreamingSequenceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.AttemptStreamingSequenceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * used to send the index of the last failed message
-   * in the string "content" of an AttemptStreamingSequenceResponse
-   * needed for stream resumption logic testing
-   * 
- * - * int32 last_fail_index = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The lastFailIndex. - */ - int getLastFailIndex(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponseOrBuilder.java deleted file mode 100644 index 8968cc987f..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceResponseOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/sequence.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface AttemptStreamingSequenceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.AttemptStreamingSequenceResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The content specified in the request.
-   * 
- * - * string content = 1; - * @return The content. - */ - java.lang.String getContent(); - /** - *
-   * The content specified in the request.
-   * 
- * - * string content = 1; - * @return The bytes for content. - */ - com.google.protobuf.ByteString - getContentBytes(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchildOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchildOrBuilder.java deleted file mode 100644 index 3139f8f955..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceDataGrandchildOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/compliance.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface ComplianceDataGrandchildOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ComplianceDataGrandchild) - com.google.protobuf.MessageOrBuilder { - - /** - * string f_string = 1; - * @return The fString. - */ - java.lang.String getFString(); - /** - * string f_string = 1; - * @return The bytes for fString. - */ - com.google.protobuf.ByteString - getFStringBytes(); - - /** - * double f_double = 2; - * @return The fDouble. - */ - double getFDouble(); - - /** - * bool f_bool = 3; - * @return The fBool. - */ - boolean getFBool(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroupOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroupOrBuilder.java deleted file mode 100644 index b18d10b5a7..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGroupOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/compliance.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface ComplianceGroupOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ComplianceGroup) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * repeated string rpcs = 2; - * @return A list containing the rpcs. - */ - java.util.List - getRpcsList(); - /** - * repeated string rpcs = 2; - * @return The count of rpcs. - */ - int getRpcsCount(); - /** - * repeated string rpcs = 2; - * @param index The index of the element to return. - * @return The rpcs at the given index. - */ - java.lang.String getRpcs(int index); - /** - * repeated string rpcs = 2; - * @param index The index of the value to return. - * @return The bytes of the rpcs at the given index. - */ - com.google.protobuf.ByteString - getRpcsBytes(int index); - - /** - * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; - */ - java.util.List - getRequestsList(); - /** - * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; - */ - com.google.showcase.v1beta1.RepeatRequest getRequests(int index); - /** - * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; - */ - int getRequestsCount(); - /** - * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; - */ - java.util.List - getRequestsOrBuilderList(); - /** - * repeated .google.showcase.v1beta1.RepeatRequest requests = 3; - */ - com.google.showcase.v1beta1.RepeatRequestOrBuilder getRequestsOrBuilder( - int index); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceOuterClass.java deleted file mode 100644 index c4e5c8e4f3..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceOuterClass.java +++ /dev/null @@ -1,253 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/compliance.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public final class ComplianceOuterClass { - private ComplianceOuterClass() {} - 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_showcase_v1beta1_RepeatRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_RepeatRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_RepeatResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_RepeatResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_ComplianceSuite_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_ComplianceGroup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_ComplianceData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_ComplianceData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_ComplianceDataChild_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_EnumRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_EnumRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_EnumResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_EnumResponse_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/schema/google/showcase/v1beta1/complia" + - "nce.proto\022\027google.showcase.v1beta1\032\034goog" + - "le/api/annotations.proto\032\027google/api/cli" + - "ent.proto\"\303\002\n\rRepeatRequest\022\014\n\004name\030\001 \001(" + - "\t\0225\n\004info\030\002 \001(\0132\'.google.showcase.v1beta" + - "1.ComplianceData\022\025\n\rserver_verify\030\003 \001(\010\022" + - "!\n\024intended_binding_uri\030\n \001(\tH\000\210\001\001\022\017\n\007f_" + - "int32\030\004 \001(\005\022\017\n\007f_int64\030\005 \001(\003\022\020\n\010f_double" + - "\030\006 \001(\001\022\024\n\007p_int32\030\007 \001(\005H\001\210\001\001\022\024\n\007p_int64\030" + - "\010 \001(\003H\002\210\001\001\022\025\n\010p_double\030\t \001(\001H\003\210\001\001B\027\n\025_in" + - "tended_binding_uriB\n\n\010_p_int32B\n\n\010_p_int" + - "64B\013\n\t_p_double\"^\n\016RepeatResponse\0227\n\007req" + - "uest\030\001 \001(\0132&.google.showcase.v1beta1.Rep" + - "eatRequest\022\023\n\013binding_uri\030\002 \001(\t\"J\n\017Compl" + - "ianceSuite\0227\n\005group\030\001 \003(\0132(.google.showc" + - "ase.v1beta1.ComplianceGroup\"g\n\017Complianc" + - "eGroup\022\014\n\004name\030\001 \001(\t\022\014\n\004rpcs\030\002 \003(\t\0228\n\010re" + - "quests\030\003 \003(\0132&.google.showcase.v1beta1.R" + - "epeatRequest\"\340\006\n\016ComplianceData\022\020\n\010f_str" + - "ing\030\001 \001(\t\022\017\n\007f_int32\030\002 \001(\005\022\020\n\010f_sint32\030\003" + - " \001(\021\022\022\n\nf_sfixed32\030\004 \001(\017\022\020\n\010f_uint32\030\005 \001" + - "(\r\022\021\n\tf_fixed32\030\006 \001(\007\022\017\n\007f_int64\030\007 \001(\003\022\020" + - "\n\010f_sint64\030\010 \001(\022\022\022\n\nf_sfixed64\030\t \001(\020\022\020\n\010" + - "f_uint64\030\n \001(\004\022\021\n\tf_fixed64\030\013 \001(\006\022\020\n\010f_d" + - "ouble\030\014 \001(\001\022\017\n\007f_float\030\r \001(\002\022\016\n\006f_bool\030\016" + - " \001(\010\022\017\n\007f_bytes\030\017 \001(\014\022F\n\tf_kingdom\030\026 \001(\016" + - "23.google.showcase.v1beta1.ComplianceDat" + - "a.LifeKingdom\022=\n\007f_child\030\020 \001(\0132,.google." + - "showcase.v1beta1.ComplianceDataChild\022\025\n\010" + - "p_string\030\021 \001(\tH\000\210\001\001\022\024\n\007p_int32\030\022 \001(\005H\001\210\001" + - "\001\022\025\n\010p_double\030\023 \001(\001H\002\210\001\001\022\023\n\006p_bool\030\024 \001(\010" + - "H\003\210\001\001\022K\n\tp_kingdom\030\027 \001(\01623.google.showca" + - "se.v1beta1.ComplianceData.LifeKingdomH\004\210" + - "\001\001\022B\n\007p_child\030\025 \001(\0132,.google.showcase.v1" + - "beta1.ComplianceDataChildH\005\210\001\001\"\203\001\n\013LifeK" + - "ingdom\022\034\n\030LIFE_KINGDOM_UNSPECIFIED\020\000\022\022\n\016" + - "ARCHAEBACTERIA\020\001\022\016\n\nEUBACTERIA\020\002\022\014\n\010PROT" + - "ISTA\020\003\022\t\n\005FUNGI\020\004\022\013\n\007PLANTAE\020\005\022\014\n\010ANIMAL" + - "IA\020\006B\013\n\t_p_stringB\n\n\010_p_int32B\013\n\t_p_doub" + - "leB\t\n\007_p_boolB\014\n\n_p_kingdomB\n\n\010_p_child\"" + - "\357\003\n\023ComplianceDataChild\022\020\n\010f_string\030\001 \001(" + - "\t\022\017\n\007f_float\030\002 \001(\002\022\020\n\010f_double\030\003 \001(\001\022\016\n\006" + - "f_bool\030\004 \001(\010\0227\n\013f_continent\030\013 \001(\0162\".goog" + - "le.showcase.v1beta1.Continent\022B\n\007f_child" + - "\030\005 \001(\01321.google.showcase.v1beta1.Complia" + - "nceDataGrandchild\022\025\n\010p_string\030\006 \001(\tH\000\210\001\001" + - "\022\024\n\007p_float\030\007 \001(\002H\001\210\001\001\022\025\n\010p_double\030\010 \001(\001" + - "H\002\210\001\001\022\023\n\006p_bool\030\t \001(\010H\003\210\001\001\0227\n\013p_continen" + - "t\030\014 \001(\0162\".google.showcase.v1beta1.Contin" + - "ent\022G\n\007p_child\030\n \001(\01321.google.showcase.v" + - "1beta1.ComplianceDataGrandchildH\004\210\001\001B\013\n\t" + - "_p_stringB\n\n\010_p_floatB\013\n\t_p_doubleB\t\n\007_p" + - "_boolB\n\n\010_p_child\"N\n\030ComplianceDataGrand" + - "child\022\020\n\010f_string\030\001 \001(\t\022\020\n\010f_double\030\002 \001(" + - "\001\022\016\n\006f_bool\030\003 \001(\010\"#\n\013EnumRequest\022\024\n\014unkn" + - "own_enum\030\001 \001(\010\"|\n\014EnumResponse\0225\n\007reques" + - "t\030\001 \001(\0132$.google.showcase.v1beta1.EnumRe" + - "quest\0225\n\tcontinent\030\002 \001(\0162\".google.showca" + - "se.v1beta1.Continent*i\n\tContinent\022\031\n\025CON" + - "TINENT_UNSPECIFIED\020\000\022\n\n\006AFRICA\020\001\022\013\n\007AMER" + - "ICA\020\002\022\r\n\tANTARTICA\020\003\022\r\n\tAUSTRALIA\020\004\022\n\n\006E" + - "UROPE\020\0052\330\r\n\nCompliance\022\202\001\n\016RepeatDataBod" + - "y\022&.google.showcase.v1beta1.RepeatReques" + - "t\032\'.google.showcase.v1beta1.RepeatRespon" + - "se\"\037\202\323\344\223\002\031\"\024/v1beta1/repeat:body:\001*\022\215\001\n\022" + - "RepeatDataBodyInfo\022&.google.showcase.v1b" + - "eta1.RepeatRequest\032\'.google.showcase.v1b" + - "eta1.RepeatResponse\"&\202\323\344\223\002 \"\030/v1beta1/re" + - "peat:bodyinfo:\004info\022\201\001\n\017RepeatDataQuery\022" + - "&.google.showcase.v1beta1.RepeatRequest\032" + - "\'.google.showcase.v1beta1.RepeatResponse" + - "\"\035\202\323\344\223\002\027\022\025/v1beta1/repeat:query\022\331\001\n\024Repe" + - "atDataSimplePath\022&.google.showcase.v1bet" + - "a1.RepeatRequest\032\'.google.showcase.v1bet" + - "a1.RepeatResponse\"p\202\323\344\223\002j\022h/v1beta1/repe" + - "at/{info.f_string}/{info.f_int32}/{info." + - "f_double}/{info.f_bool}/{info.f_kingdom}" + - ":simplepath\022\323\002\n\026RepeatDataPathResource\022&" + - ".google.showcase.v1beta1.RepeatRequest\032\'" + - ".google.showcase.v1beta1.RepeatResponse\"" + - "\347\001\202\323\344\223\002\340\001\022h/v1beta1/repeat/{info.f_strin" + - "g=first/*}/{info.f_child.f_string=second" + - "/*}/bool/{info.f_bool}:pathresourceZt\022r/" + - "v1beta1/repeat/{info.f_child.f_string=fi" + - "rst/*}/{info.f_string=second/*}/bool/{in" + - "fo.f_bool}:childfirstpathresource\022\331\001\n\036Re" + - "peatDataPathTrailingResource\022&.google.sh" + - "owcase.v1beta1.RepeatRequest\032\'.google.sh" + - "owcase.v1beta1.RepeatResponse\"f\202\323\344\223\002`\022^/" + - "v1beta1/repeat/{info.f_string=first/*}/{" + - "info.f_child.f_string=second/**}:pathtra" + - "ilingresource\022\210\001\n\021RepeatDataBodyPut\022&.go" + - "ogle.showcase.v1beta1.RepeatRequest\032\'.go" + - "ogle.showcase.v1beta1.RepeatResponse\"\"\202\323" + - "\344\223\002\034\032\027/v1beta1/repeat:bodyput:\001*\022\214\001\n\023Rep" + - "eatDataBodyPatch\022&.google.showcase.v1bet" + - "a1.RepeatRequest\032\'.google.showcase.v1bet" + - "a1.RepeatResponse\"$\202\323\344\223\002\0362\031/v1beta1/repe" + - "at:bodypatch:\001*\022x\n\007GetEnum\022$.google.show" + - "case.v1beta1.EnumRequest\032%.google.showca" + - "se.v1beta1.EnumResponse\" \202\323\344\223\002\032\022\030/v1beta" + - "1/compliance/enum\022|\n\nVerifyEnum\022%.google" + - ".showcase.v1beta1.EnumResponse\032%.google." + - "showcase.v1beta1.EnumResponse\" \202\323\344\223\002\032\"\030/" + - "v1beta1/compliance/enum\032\021\312A\016localhost:74" + - "69Bq\n\033com.google.showcase.v1beta1P\001Z4git" + - "hub.com/googleapis/gapic-showcase/server" + - "/genproto\352\002\031Google::Showcase::V1beta1b\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }); - internal_static_google_showcase_v1beta1_RepeatRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_showcase_v1beta1_RepeatRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_RepeatRequest_descriptor, - new java.lang.String[] { "Name", "Info", "ServerVerify", "IntendedBindingUri", "FInt32", "FInt64", "FDouble", "PInt32", "PInt64", "PDouble", }); - internal_static_google_showcase_v1beta1_RepeatResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_showcase_v1beta1_RepeatResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_RepeatResponse_descriptor, - new java.lang.String[] { "Request", "BindingUri", }); - internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_showcase_v1beta1_ComplianceSuite_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_ComplianceSuite_descriptor, - new java.lang.String[] { "Group", }); - internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_showcase_v1beta1_ComplianceGroup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_ComplianceGroup_descriptor, - new java.lang.String[] { "Name", "Rpcs", "Requests", }); - internal_static_google_showcase_v1beta1_ComplianceData_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_showcase_v1beta1_ComplianceData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_ComplianceData_descriptor, - new java.lang.String[] { "FString", "FInt32", "FSint32", "FSfixed32", "FUint32", "FFixed32", "FInt64", "FSint64", "FSfixed64", "FUint64", "FFixed64", "FDouble", "FFloat", "FBool", "FBytes", "FKingdom", "FChild", "PString", "PInt32", "PDouble", "PBool", "PKingdom", "PChild", }); - internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_showcase_v1beta1_ComplianceDataChild_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_ComplianceDataChild_descriptor, - new java.lang.String[] { "FString", "FFloat", "FDouble", "FBool", "FContinent", "FChild", "PString", "PFloat", "PDouble", "PBool", "PContinent", "PChild", }); - internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_ComplianceDataGrandchild_descriptor, - new java.lang.String[] { "FString", "FDouble", "FBool", }); - internal_static_google_showcase_v1beta1_EnumRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_showcase_v1beta1_EnumRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_EnumRequest_descriptor, - new java.lang.String[] { "UnknownEnum", }); - internal_static_google_showcase_v1beta1_EnumResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_showcase_v1beta1_EnumResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_EnumResponse_descriptor, - new java.lang.String[] { "Request", "Continent", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuiteOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuiteOrBuilder.java deleted file mode 100644 index f8136a90dd..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceSuiteOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/compliance.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface ComplianceSuiteOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ComplianceSuite) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; - */ - java.util.List - getGroupList(); - /** - * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; - */ - com.google.showcase.v1beta1.ComplianceGroup getGroup(int index); - /** - * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; - */ - int getGroupCount(); - /** - * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; - */ - java.util.List - getGroupOrBuilderList(); - /** - * repeated .google.showcase.v1beta1.ComplianceGroup group = 1; - */ - com.google.showcase.v1beta1.ComplianceGroupOrBuilder getGroupOrBuilder( - int index); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequestOrBuilder.java deleted file mode 100644 index d1d27e1c35..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/CreateSequenceRequestOrBuilder.java +++ /dev/null @@ -1,25 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/sequence.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface CreateSequenceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.CreateSequenceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.showcase.v1beta1.Sequence sequence = 1; - * @return Whether the sequence field is set. - */ - boolean hasSequence(); - /** - * .google.showcase.v1beta1.Sequence sequence = 1; - * @return The sequence. - */ - com.google.showcase.v1beta1.Sequence getSequence(); - /** - * .google.showcase.v1beta1.Sequence sequence = 1; - */ - com.google.showcase.v1beta1.SequenceOrBuilder getSequenceOrBuilder(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequestOrBuilder.java deleted file mode 100644 index ab8d75684a..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteBlurbRequestOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/messaging.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface DeleteBlurbRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.DeleteBlurbRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The resource name of the requested blurb.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The resource name of the requested blurb.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequestOrBuilder.java deleted file mode 100644 index 5afa664608..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteRoomRequestOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/messaging.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface DeleteRoomRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.DeleteRoomRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The resource name of the requested room.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The resource name of the requested room.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequestOrBuilder.java deleted file mode 100644 index 72d1677479..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteSessionRequestOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/testing.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface DeleteSessionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.DeleteSessionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The session to be deleted.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The session to be deleted.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequestOrBuilder.java deleted file mode 100644 index ac444b4a94..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteTestRequestOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/testing.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface DeleteTestRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.DeleteTestRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The test to be deleted.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The test to be deleted.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequestOrBuilder.java deleted file mode 100644 index e1672cbb72..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/DeleteUserRequestOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/identity.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface DeleteUserRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.DeleteUserRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The resource name of the user to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The resource name of the user to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java deleted file mode 100644 index 0635c7049c..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java +++ /dev/null @@ -1,400 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/echo.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public final class EchoOuterClass { - private EchoOuterClass() {} - 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_showcase_v1beta1_EchoRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_EchoRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_EchoResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_EchoResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_ExpandRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_ExpandRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_PagedExpandRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_PagedExpandResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_PagedExpandResponseList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_WaitRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_WaitRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_WaitResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_WaitResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_WaitMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_WaitMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_BlockRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_BlockRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_BlockResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_BlockResponse_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)schema/google/showcase/v1beta1/echo.pr" + - "oto\022\027google.showcase.v1beta1\032\034google/api" + - "/annotations.proto\032\027google/api/client.pr" + - "oto\032\037google/api/field_behavior.proto\032\033go" + - "ogle/api/field_info.proto\032\030google/api/ro" + - "uting.proto\032#google/longrunning/operatio" + - "ns.proto\032\031google/protobuf/any.proto\032\036goo" + - "gle/protobuf/duration.proto\032\037google/prot" + - "obuf/timestamp.proto\032\027google/rpc/status." + - "proto\"\210\002\n\013EchoRequest\022\021\n\007content\030\001 \001(\tH\000" + - "\022#\n\005error\030\002 \001(\0132\022.google.rpc.StatusH\000\0223\n" + - "\010severity\030\003 \001(\0162!.google.showcase.v1beta" + - "1.Severity\022\016\n\006header\030\004 \001(\t\022\024\n\014other_head" + - "er\030\005 \001(\t\022\034\n\nrequest_id\030\007 \001(\tB\010\342\214\317\327\010\002\010\001\022\'" + - "\n\020other_request_id\030\010 \001(\tB\010\342\214\317\327\010\002\010\001H\001\210\001\001B" + - "\n\n\010responseB\023\n\021_other_request_id\"\202\001\n\014Ech" + - "oResponse\022\017\n\007content\030\001 \001(\t\0223\n\010severity\030\002" + - " \001(\0162!.google.showcase.v1beta1.Severity\022" + - "\022\n\nrequest_id\030\003 \001(\t\022\030\n\020other_request_id\030" + - "\004 \001(\t\"P\n\027EchoErrorDetailsRequest\022\032\n\022sing" + - "le_detail_text\030\001 \001(\t\022\031\n\021multi_detail_tex" + - "t\030\002 \003(\t\"\362\002\n\030EchoErrorDetailsResponse\022U\n\r" + - "single_detail\030\001 \001(\0132>.google.showcase.v1" + - "beta1.EchoErrorDetailsResponse.SingleDet" + - "ail\022[\n\020multiple_details\030\002 \001(\0132A.google.s" + - "howcase.v1beta1.EchoErrorDetailsResponse" + - ".MultipleDetails\032M\n\014SingleDetail\022=\n\005erro" + - "r\030\001 \001(\0132..google.showcase.v1beta1.ErrorW" + - "ithSingleDetail\032S\n\017MultipleDetails\022@\n\005er" + - "ror\030\001 \001(\01321.google.showcase.v1beta1.Erro" + - "rWithMultipleDetails\">\n\025ErrorWithSingleD" + - "etail\022%\n\007details\030\001 \001(\0132\024.google.protobuf" + - ".Any\"A\n\030ErrorWithMultipleDetails\022%\n\007deta" + - "ils\030\001 \003(\0132\024.google.protobuf.Any\"x\n\rExpan" + - "dRequest\022\017\n\007content\030\001 \001(\t\022!\n\005error\030\002 \001(\013" + - "2\022.google.rpc.Status\0223\n\020stream_wait_time" + - "\030\003 \001(\0132\031.google.protobuf.Duration\"Q\n\022Pag" + - "edExpandRequest\022\024\n\007content\030\001 \001(\tB\003\340A\002\022\021\n" + - "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"Y\n\030" + - "PagedExpandLegacyRequest\022\024\n\007content\030\001 \001(" + - "\tB\003\340A\002\022\023\n\013max_results\030\002 \001(\005\022\022\n\npage_toke" + - "n\030\003 \001(\t\"h\n\023PagedExpandResponse\0228\n\trespon" + - "ses\030\001 \003(\0132%.google.showcase.v1beta1.Echo" + - "Response\022\027\n\017next_page_token\030\002 \001(\t\"(\n\027Pag" + - "edExpandResponseList\022\r\n\005words\030\001 \003(\t\"\203\002\n\037" + - "PagedExpandLegacyMappedResponse\022`\n\014alpha" + - "betized\030\001 \003(\0132J.google.showcase.v1beta1." + - "PagedExpandLegacyMappedResponse.Alphabet" + - "izedEntry\022\027\n\017next_page_token\030\002 \001(\t\032e\n\021Al" + - "phabetizedEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 " + - "\001(\01320.google.showcase.v1beta1.PagedExpan" + - "dResponseList:\0028\001\"\331\001\n\013WaitRequest\022.\n\010end" + - "_time\030\001 \001(\0132\032.google.protobuf.TimestampH" + - "\000\022(\n\003ttl\030\004 \001(\0132\031.google.protobuf.Duratio" + - "nH\000\022#\n\005error\030\002 \001(\0132\022.google.rpc.StatusH\001" + - "\0228\n\007success\030\003 \001(\0132%.google.showcase.v1be" + - "ta1.WaitResponseH\001B\005\n\003endB\n\n\010response\"\037\n" + - "\014WaitResponse\022\017\n\007content\030\001 \001(\t\"<\n\014WaitMe" + - "tadata\022,\n\010end_time\030\001 \001(\0132\032.google.protob" + - "uf.Timestamp\"\255\001\n\014BlockRequest\0221\n\016respons" + - "e_delay\030\001 \001(\0132\031.google.protobuf.Duration" + - "\022#\n\005error\030\002 \001(\0132\022.google.rpc.StatusH\000\0229\n" + - "\007success\030\003 \001(\0132&.google.showcase.v1beta1" + - ".BlockResponseH\000B\n\n\010response\" \n\rBlockRes" + - "ponse\022\017\n\007content\030\001 \001(\t*D\n\010Severity\022\017\n\013UN" + - "NECESSARY\020\000\022\r\n\tNECESSARY\020\001\022\n\n\006URGENT\020\002\022\014" + - "\n\010CRITICAL\020\0032\262\r\n\004Echo\022\224\003\n\004Echo\022$.google." + - "showcase.v1beta1.EchoRequest\032%.google.sh" + - "owcase.v1beta1.EchoResponse\"\276\002\202\323\344\223\002\027\"\022/v" + - "1beta1/echo:echo:\001*\212\323\344\223\002\232\002\022\010\n\006header\022\031\n\006" + - "header\022\017{routing_id=**}\022+\n\006header\022!{tabl" + - "e_name=regions/*/zones/*/**}\022\"\n\006header\022\030" + - "{super_id=projects/*}/**\0220\n\006header\022&{tab" + - "le_name=projects/*/instances/*/**}\0221\n\006he" + - "ader\022\'projects/*/{instance_id=instances/" + - "*}/**\022\030\n\014other_header\022\010{baz=**}\022#\n\014other" + - "_header\022\023{qux=projects/*}/**\022\237\001\n\020EchoErr" + - "orDetails\0220.google.showcase.v1beta1.Echo" + - "ErrorDetailsRequest\0321.google.showcase.v1" + - "beta1.EchoErrorDetailsResponse\"&\202\323\344\223\002 \"\033" + - "/v1beta1/echo:error-details:\001*\022\212\001\n\006Expan" + - "d\022&.google.showcase.v1beta1.ExpandReques" + - "t\032%.google.showcase.v1beta1.EchoResponse" + - "\"/\332A\rcontent,error\202\323\344\223\002\031\"\024/v1beta1/echo:" + - "expand:\001*0\001\022z\n\007Collect\022$.google.showcase" + - ".v1beta1.EchoRequest\032%.google.showcase.v" + - "1beta1.EchoResponse\" \202\323\344\223\002\032\"\025/v1beta1/ec" + - "ho:collect:\001*(\001\022W\n\004Chat\022$.google.showcas" + - "e.v1beta1.EchoRequest\032%.google.showcase." + - "v1beta1.EchoResponse(\0010\001\022\216\001\n\013PagedExpand" + - "\022+.google.showcase.v1beta1.PagedExpandRe" + - "quest\032,.google.showcase.v1beta1.PagedExp" + - "andResponse\"$\202\323\344\223\002\036\"\031/v1beta1/echo:paged" + - "Expand:\001*\022\240\001\n\021PagedExpandLegacy\0221.google" + - ".showcase.v1beta1.PagedExpandLegacyReque" + - "st\032,.google.showcase.v1beta1.PagedExpand" + - "Response\"*\202\323\344\223\002$\"\037/v1beta1/echo:pagedExp" + - "andLegacy:\001*\022\262\001\n\027PagedExpandLegacyMapped" + - "\022+.google.showcase.v1beta1.PagedExpandRe" + - "quest\0328.google.showcase.v1beta1.PagedExp" + - "andLegacyMappedResponse\"0\202\323\344\223\002*\"%/v1beta" + - "1/echo:pagedExpandLegacyMapped:\001*\022\211\001\n\004Wa" + - "it\022$.google.showcase.v1beta1.WaitRequest" + - "\032\035.google.longrunning.Operation\"<\312A\034\n\014Wa" + - "itResponse\022\014WaitMetadata\202\323\344\223\002\027\"\022/v1beta1" + - "/echo:wait:\001*\022v\n\005Block\022%.google.showcase" + - ".v1beta1.BlockRequest\032&.google.showcase." + - "v1beta1.BlockResponse\"\036\202\323\344\223\002\030\"\023/v1beta1/" + - "echo:block:\001*\032\"\312A\016localhost:7469\212\324\333\322\017\013v1" + - "_20240408Bq\n\033com.google.showcase.v1beta1" + - "P\001Z4github.com/googleapis/gapic-showcase" + - "/server/genproto\352\002\031Google::Showcase::V1b" + - "eta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.FieldInfoProto.getDescriptor(), - com.google.api.RoutingProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_showcase_v1beta1_EchoRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_showcase_v1beta1_EchoRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_EchoRequest_descriptor, - new java.lang.String[] { "Content", "Error", "Severity", "Header", "OtherHeader", "RequestId", "OtherRequestId", "Response", }); - internal_static_google_showcase_v1beta1_EchoResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_showcase_v1beta1_EchoResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_EchoResponse_descriptor, - new java.lang.String[] { "Content", "Severity", "RequestId", "OtherRequestId", }); - internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_descriptor, - new java.lang.String[] { "SingleDetailText", "MultiDetailText", }); - internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor, - new java.lang.String[] { "SingleDetail", "MultipleDetails", }); - internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor = - internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor.getNestedTypes().get(0); - internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor, - new java.lang.String[] { "Error", }); - internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor = - internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor.getNestedTypes().get(1); - internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor, - new java.lang.String[] { "Error", }); - internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_descriptor, - new java.lang.String[] { "Details", }); - internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_descriptor, - new java.lang.String[] { "Details", }); - internal_static_google_showcase_v1beta1_ExpandRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_showcase_v1beta1_ExpandRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_ExpandRequest_descriptor, - new java.lang.String[] { "Content", "Error", "StreamWaitTime", }); - internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_showcase_v1beta1_PagedExpandRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor, - new java.lang.String[] { "Content", "PageSize", "PageToken", }); - internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor, - new java.lang.String[] { "Content", "MaxResults", "PageToken", }); - internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_showcase_v1beta1_PagedExpandResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor, - new java.lang.String[] { "Responses", "NextPageToken", }); - internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_showcase_v1beta1_PagedExpandResponseList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor, - new java.lang.String[] { "Words", }); - internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor, - new java.lang.String[] { "Alphabetized", "NextPageToken", }); - internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_descriptor = - internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor.getNestedTypes().get(0); - internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_showcase_v1beta1_WaitRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_showcase_v1beta1_WaitRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_WaitRequest_descriptor, - new java.lang.String[] { "EndTime", "Ttl", "Error", "Success", "End", "Response", }); - internal_static_google_showcase_v1beta1_WaitResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_showcase_v1beta1_WaitResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_WaitResponse_descriptor, - new java.lang.String[] { "Content", }); - internal_static_google_showcase_v1beta1_WaitMetadata_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_showcase_v1beta1_WaitMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_WaitMetadata_descriptor, - new java.lang.String[] { "EndTime", }); - internal_static_google_showcase_v1beta1_BlockRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_showcase_v1beta1_BlockRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_BlockRequest_descriptor, - new java.lang.String[] { "ResponseDelay", "Error", "Success", "Response", }); - internal_static_google_showcase_v1beta1_BlockResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_showcase_v1beta1_BlockResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_BlockResponse_descriptor, - new java.lang.String[] { "Content", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.apiVersion); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.FieldInfoProto.fieldInfo); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.RoutingProto.routing); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.FieldInfoProto.getDescriptor(); - com.google.api.RoutingProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequestOrBuilder.java deleted file mode 100644 index 957d41baee..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EnumRequestOrBuilder.java +++ /dev/null @@ -1,20 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/compliance.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface EnumRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EnumRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file.
-   * 
- * - * bool unknown_enum = 1; - * @return The unknownEnum. - */ - boolean getUnknownEnum(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithMultipleDetailsOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithMultipleDetailsOrBuilder.java deleted file mode 100644 index 8f79040f04..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithMultipleDetailsOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/echo.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface ErrorWithMultipleDetailsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ErrorWithMultipleDetails) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .google.protobuf.Any details = 1; - */ - java.util.List - getDetailsList(); - /** - * repeated .google.protobuf.Any details = 1; - */ - com.google.protobuf.Any getDetails(int index); - /** - * repeated .google.protobuf.Any details = 1; - */ - int getDetailsCount(); - /** - * repeated .google.protobuf.Any details = 1; - */ - java.util.List - getDetailsOrBuilderList(); - /** - * repeated .google.protobuf.Any details = 1; - */ - com.google.protobuf.AnyOrBuilder getDetailsOrBuilder( - int index); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithSingleDetailOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithSingleDetailOrBuilder.java deleted file mode 100644 index 8179c965a5..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithSingleDetailOrBuilder.java +++ /dev/null @@ -1,25 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/echo.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface ErrorWithSingleDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ErrorWithSingleDetail) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Any details = 1; - * @return Whether the details field is set. - */ - boolean hasDetails(); - /** - * .google.protobuf.Any details = 1; - * @return The details. - */ - com.google.protobuf.Any getDetails(); - /** - * .google.protobuf.Any details = 1; - */ - com.google.protobuf.AnyOrBuilder getDetailsOrBuilder(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequestOrBuilder.java deleted file mode 100644 index 13607f769d..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetBlurbRequestOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/messaging.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface GetBlurbRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.GetBlurbRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The resource name of the requested blurb.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The resource name of the requested blurb.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequestOrBuilder.java deleted file mode 100644 index 64f15d8e89..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetRoomRequestOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/messaging.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface GetRoomRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.GetRoomRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The resource name of the requested room.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The resource name of the requested room.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequestOrBuilder.java deleted file mode 100644 index 83d40f3fa4..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSequenceReportRequestOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/sequence.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface GetSequenceReportRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.GetSequenceReportRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequestOrBuilder.java deleted file mode 100644 index 231a74cd0e..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetSessionRequestOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/testing.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface GetSessionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.GetSessionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The session to be retrieved.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The session to be retrieved.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequestOrBuilder.java deleted file mode 100644 index bb13ba5330..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetStreamingSequenceReportRequestOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/sequence.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface GetStreamingSequenceReportRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.GetStreamingSequenceReportRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequestOrBuilder.java deleted file mode 100644 index b76dcb5164..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/GetUserRequestOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/identity.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface GetUserRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.GetUserRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The resource name of the requested user.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The resource name of the requested user.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityOuterClass.java deleted file mode 100644 index 09f6c836b1..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityOuterClass.java +++ /dev/null @@ -1,188 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/identity.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public final class IdentityOuterClass { - private IdentityOuterClass() {} - 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_showcase_v1beta1_User_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_User_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_CreateUserRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_GetUserRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_GetUserRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_UpdateUserRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_DeleteUserRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_ListUsersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_ListUsersResponse_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-schema/google/showcase/v1beta1/identit" + - "y.proto\022\027google.showcase.v1beta1\032\034google" + - "/api/annotations.proto\032\027google/api/clien" + - "t.proto\032\037google/api/field_behavior.proto" + - "\032\031google/api/resource.proto\032\033google/prot" + - "obuf/empty.proto\032 google/protobuf/field_" + - "mask.proto\032\037google/protobuf/timestamp.pr" + - "oto\"\204\003\n\004User\022\014\n\004name\030\001 \001(\t\022\031\n\014display_na" + - "me\030\002 \001(\tB\003\340A\002\022\022\n\005email\030\003 \001(\tB\003\340A\002\0224\n\013cre" + - "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" + - "mpB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google.pr" + - "otobuf.TimestampB\003\340A\003\022\020\n\003age\030\006 \001(\005H\000\210\001\001\022" + - "\030\n\013height_feet\030\007 \001(\001H\001\210\001\001\022\025\n\010nickname\030\010 " + - "\001(\tH\002\210\001\001\022!\n\024enable_notifications\030\t \001(\010H\003" + - "\210\001\001:/\352A,\n\034showcase.googleapis.com/User\022\014" + - "users/{user}B\006\n\004_ageB\016\n\014_height_feetB\013\n\t" + - "_nicknameB\027\n\025_enable_notifications\"@\n\021Cr" + - "eateUserRequest\022+\n\004user\030\001 \001(\0132\035.google.s" + - "howcase.v1beta1.User\"D\n\016GetUserRequest\0222" + - "\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034showcase.googleapi" + - "s.com/User\"q\n\021UpdateUserRequest\022+\n\004user\030" + - "\001 \001(\0132\035.google.showcase.v1beta1.User\022/\n\013" + - "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + - "dMask\"G\n\021DeleteUserRequest\0222\n\004name\030\001 \001(\t" + - "B$\340A\002\372A\036\n\034showcase.googleapis.com/User\"9" + - "\n\020ListUsersRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n" + - "\npage_token\030\002 \001(\t\"Z\n\021ListUsersResponse\022," + - "\n\005users\030\001 \003(\0132\035.google.showcase.v1beta1." + - "User\022\027\n\017next_page_token\030\002 \001(\t2\212\006\n\010Identi" + - "ty\022\363\001\n\nCreateUser\022*.google.showcase.v1be" + - "ta1.CreateUserRequest\032\035.google.showcase." + - "v1beta1.User\"\231\001\332A\034user.display_name,user" + - ".email\332A^user.display_name,user.email,us" + - "er.age,user.nickname,user.enable_notific" + - "ations,user.height_feet\202\323\344\223\002\023\"\016/v1beta1/" + - "users:\001*\022y\n\007GetUser\022\'.google.showcase.v1" + - "beta1.GetUserRequest\032\035.google.showcase.v" + - "1beta1.User\"&\332A\004name\202\323\344\223\002\031\022\027/v1beta1/{na" + - "me=users/*}\022\203\001\n\nUpdateUser\022*.google.show" + - "case.v1beta1.UpdateUserRequest\032\035.google." + - "showcase.v1beta1.User\"*\202\323\344\223\002$2\034/v1beta1/" + - "{user.name=users/*}:\004user\022x\n\nDeleteUser\022" + - "*.google.showcase.v1beta1.DeleteUserRequ" + - "est\032\026.google.protobuf.Empty\"&\332A\004name\202\323\344\223" + - "\002\031*\027/v1beta1/{name=users/*}\022z\n\tListUsers" + - "\022).google.showcase.v1beta1.ListUsersRequ" + - "est\032*.google.showcase.v1beta1.ListUsersR" + - "esponse\"\026\202\323\344\223\002\020\022\016/v1beta1/users\032\021\312A\016loca" + - "lhost:7469Bq\n\033com.google.showcase.v1beta" + - "1P\001Z4github.com/googleapis/gapic-showcas" + - "e/server/genproto\352\002\031Google::Showcase::V1" + - "beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_showcase_v1beta1_User_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_showcase_v1beta1_User_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_User_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Email", "CreateTime", "UpdateTime", "Age", "HeightFeet", "Nickname", "EnableNotifications", }); - internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_showcase_v1beta1_CreateUserRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_CreateUserRequest_descriptor, - new java.lang.String[] { "User", }); - internal_static_google_showcase_v1beta1_GetUserRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_showcase_v1beta1_GetUserRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_GetUserRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_showcase_v1beta1_UpdateUserRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_UpdateUserRequest_descriptor, - new java.lang.String[] { "User", "UpdateMask", }); - internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_showcase_v1beta1_DeleteUserRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_DeleteUserRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_showcase_v1beta1_ListUsersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_ListUsersRequest_descriptor, - new java.lang.String[] { "PageSize", "PageToken", }); - internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_showcase_v1beta1_ListUsersResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_ListUsersResponse_descriptor, - new java.lang.String[] { "Users", "NextPageToken", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingOuterClass.java deleted file mode 100644 index 706c7fd03d..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingOuterClass.java +++ /dev/null @@ -1,448 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/messaging.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public final class MessagingOuterClass { - private MessagingOuterClass() {} - 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_showcase_v1beta1_Room_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_Room_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_CreateRoomRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_GetRoomRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_UpdateRoomRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_DeleteRoomRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_ListRoomsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_ListRoomsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_Blurb_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_Blurb_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_CreateBlurbRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_GetBlurbRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_UpdateBlurbRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_DeleteBlurbRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_ListBlurbsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_ListBlurbsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_SearchBlurbsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_SearchBlurbsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_StreamBlurbsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_StreamBlurbsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_SendBlurbsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_ConnectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_ConnectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_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.schema/google/showcase/v1beta1/messagi" + - "ng.proto\022\027google.showcase.v1beta1\032\034googl" + - "e/api/annotations.proto\032\027google/api/clie" + - "nt.proto\032\037google/api/field_behavior.prot" + - "o\032\031google/api/resource.proto\032#google/lon" + - "grunning/operations.proto\032\033google/protob" + - "uf/empty.proto\032 google/protobuf/field_ma" + - "sk.proto\032\037google/protobuf/timestamp.prot" + - "o\032\036google/rpc/error_details.proto\"\341\001\n\004Ro" + - "om\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003" + - "\340A\002\022\023\n\013description\030\003 \001(\t\0224\n\013create_time\030" + - "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + - "\n\013update_time\030\005 \001(\0132\032.google.protobuf.Ti" + - "mestampB\003\340A\003:/\352A,\n\034showcase.googleapis.c" + - "om/Room\022\014rooms/{room}\"@\n\021CreateRoomReque" + - "st\022+\n\004room\030\001 \001(\0132\035.google.showcase.v1bet" + - "a1.Room\"D\n\016GetRoomRequest\0222\n\004name\030\001 \001(\tB" + - "$\340A\002\372A\036\n\034showcase.googleapis.com/Room\"q\n" + - "\021UpdateRoomRequest\022+\n\004room\030\001 \001(\0132\035.googl" + - "e.showcase.v1beta1.Room\022/\n\013update_mask\030\002" + - " \001(\0132\032.google.protobuf.FieldMask\"G\n\021Dele" + - "teRoomRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034sho" + - "wcase.googleapis.com/Room\"9\n\020ListRoomsRe" + - "quest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_token\030\002" + - " \001(\t\"Z\n\021ListRoomsResponse\022,\n\005rooms\030\001 \003(\013" + - "2\035.google.showcase.v1beta1.Room\022\027\n\017next_" + - "page_token\030\002 \001(\t\"\366\003\n\005Blurb\022\014\n\004name\030\001 \001(\t" + - "\0222\n\004user\030\002 \001(\tB$\340A\002\372A\036\n\034showcase.googlea" + - "pis.com/User\022\016\n\004text\030\003 \001(\tH\000\022\017\n\005image\030\004 " + - "\001(\014H\000\0224\n\013create_time\030\005 \001(\0132\032.google.prot" + - "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\006 \001(\013" + - "2\032.google.protobuf.TimestampB\003\340A\003\022\030\n\016leg" + - "acy_room_id\030\007 \001(\tH\001\022\030\n\016legacy_user_id\030\010 " + - "\001(\tH\001:\321\001\352A\315\001\n\035showcase.googleapis.com/Bl" + - "urb\0228users/{user}/profile/blurbs/legacy/" + - "{legacy_user}~{blurb}\022#users/{user}/prof" + - "ile/blurbs/{blurb}\022\033rooms/{room}/blurbs/" + - "{blurb}\0220rooms/{room}/blurbs/legacy/{leg" + - "acy_room}.{blurb}B\t\n\007contentB\013\n\tlegacy_i" + - "d\"z\n\022CreateBlurbRequest\0225\n\006parent\030\001 \001(\tB" + - "%\340A\002\372A\037\022\035showcase.googleapis.com/Blurb\022-" + - "\n\005blurb\030\002 \001(\0132\036.google.showcase.v1beta1." + - "Blurb\"F\n\017GetBlurbRequest\0223\n\004name\030\001 \001(\tB%" + - "\340A\002\372A\037\n\035showcase.googleapis.com/Blurb\"t\n" + - "\022UpdateBlurbRequest\022-\n\005blurb\030\001 \001(\0132\036.goo" + - "gle.showcase.v1beta1.Blurb\022/\n\013update_mas" + - "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"I\n\022D" + - "eleteBlurbRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n" + - "\035showcase.googleapis.com/Blurb\"q\n\021ListBl" + - "urbsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035sho" + - "wcase.googleapis.com/Blurb\022\021\n\tpage_size\030" + - "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"]\n\022ListBlurbsR" + - "esponse\022.\n\006blurbs\030\001 \003(\0132\036.google.showcas" + - "e.v1beta1.Blurb\022\027\n\017next_page_token\030\002 \001(\t" + - "\"\204\001\n\023SearchBlurbsRequest\022\022\n\005query\030\001 \001(\tB" + - "\003\340A\002\0222\n\006parent\030\002 \001(\tB\"\372A\037\022\035showcase.goog" + - "leapis.com/Blurb\022\021\n\tpage_size\030\003 \001(\005\022\022\n\np" + - "age_token\030\004 \001(\t\"A\n\024SearchBlurbsMetadata\022" + - ")\n\nretry_info\030\001 \001(\0132\025.google.rpc.RetryIn" + - "fo\"_\n\024SearchBlurbsResponse\022.\n\006blurbs\030\001 \003" + - "(\0132\036.google.showcase.v1beta1.Blurb\022\027\n\017ne" + - "xt_page_token\030\002 \001(\t\"\200\001\n\023StreamBlurbsRequ" + - "est\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\022\035showcase.goog" + - "leapis.com/Blurb\0224\n\013expire_time\030\002 \001(\0132\032." + - "google.protobuf.TimestampB\003\340A\002\"\321\001\n\024Strea" + - "mBlurbsResponse\022-\n\005blurb\030\001 \001(\0132\036.google." + - "showcase.v1beta1.Blurb\022D\n\006action\030\002 \001(\01624" + - ".google.showcase.v1beta1.StreamBlurbsRes" + - "ponse.Action\"D\n\006Action\022\026\n\022ACTION_UNSPECI" + - "FIED\020\000\022\n\n\006CREATE\020\001\022\n\n\006UPDATE\020\002\022\n\n\006DELETE" + - "\020\003\"#\n\022SendBlurbsResponse\022\r\n\005names\030\001 \003(\t\"" + - "\332\001\n\016ConnectRequest\022G\n\006config\030\001 \001(\01325.goo" + - "gle.showcase.v1beta1.ConnectRequest.Conn" + - "ectConfigH\000\022/\n\005blurb\030\002 \001(\0132\036.google.show" + - "case.v1beta1.BlurbH\000\032C\n\rConnectConfig\0222\n" + - "\006parent\030\001 \001(\tB\"\372A\037\022\035showcase.googleapis." + - "com/BlurbB\t\n\007request2\264\023\n\tMessaging\022\227\001\n\nC" + - "reateRoom\022*.google.showcase.v1beta1.Crea" + - "teRoomRequest\032\035.google.showcase.v1beta1." + - "Room\">\332A\"room.display_name,room.descript" + - "ion\202\323\344\223\002\023\"\016/v1beta1/rooms:\001*\022y\n\007GetRoom\022" + - "\'.google.showcase.v1beta1.GetRoomRequest" + - "\032\035.google.showcase.v1beta1.Room\"&\332A\004name" + - "\202\323\344\223\002\031\022\027/v1beta1/{name=rooms/*}\022\203\001\n\nUpda" + - "teRoom\022*.google.showcase.v1beta1.UpdateR" + - "oomRequest\032\035.google.showcase.v1beta1.Roo" + - "m\"*\202\323\344\223\002$2\034/v1beta1/{room.name=rooms/*}:" + - "\004room\022x\n\nDeleteRoom\022*.google.showcase.v1" + - "beta1.DeleteRoomRequest\032\026.google.protobu" + - "f.Empty\"&\332A\004name\202\323\344\223\002\031*\027/v1beta1/{name=r" + - "ooms/*}\022z\n\tListRooms\022).google.showcase.v" + - "1beta1.ListRoomsRequest\032*.google.showcas" + - "e.v1beta1.ListRoomsResponse\"\026\202\323\344\223\002\020\022\016/v1" + - "beta1/rooms\022\366\001\n\013CreateBlurb\022+.google.sho" + - "wcase.v1beta1.CreateBlurbRequest\032\036.googl" + - "e.showcase.v1beta1.Blurb\"\231\001\332A\034parent,blu" + - "rb.user,blurb.text\332A\035parent,blurb.user,b" + - "lurb.image\202\323\344\223\002T\" /v1beta1/{parent=rooms" + - "/*}/blurbs:\001*Z-\"(/v1beta1/{parent=users/" + - "*/profile}/blurbs:\001*\022\261\001\n\010GetBlurb\022(.goog" + - "le.showcase.v1beta1.GetBlurbRequest\032\036.go" + - "ogle.showcase.v1beta1.Blurb\"[\332A\004name\202\323\344\223" + - "\002N\022 /v1beta1/{name=rooms/*/blurbs/*}Z*\022(" + - "/v1beta1/{name=users/*/profile/blurbs/*}" + - "\022\312\001\n\013UpdateBlurb\022+.google.showcase.v1bet" + - "a1.UpdateBlurbRequest\032\036.google.showcase." + - "v1beta1.Blurb\"n\202\323\344\223\002h2&/v1beta1/{blurb.n" + - "ame=rooms/*/blurbs/*}:\005blurbZ72./v1beta1" + - "/{blurb.name=users/*/profile/blurbs/*}:\005" + - "blurb\022\257\001\n\013DeleteBlurb\022+.google.showcase." + - "v1beta1.DeleteBlurbRequest\032\026.google.prot" + - "obuf.Empty\"[\332A\004name\202\323\344\223\002N* /v1beta1/{nam" + - "e=rooms/*/blurbs/*}Z**(/v1beta1/{name=us" + - "ers/*/profile/blurbs/*}\022\304\001\n\nListBlurbs\022*" + - ".google.showcase.v1beta1.ListBlurbsReque" + - "st\032+.google.showcase.v1beta1.ListBlurbsR" + - "esponse\"]\332A\006parent\202\323\344\223\002N\022 /v1beta1/{pare" + - "nt=rooms/*}/blurbsZ*\022(/v1beta1/{parent=u" + - "sers/*/profile}/blurbs\022\201\002\n\014SearchBlurbs\022" + - ",.google.showcase.v1beta1.SearchBlurbsRe" + - "quest\032\035.google.longrunning.Operation\"\243\001\312" + - "A,\n\024SearchBlurbsResponse\022\024SearchBlurbsMe" + - "tadata\332A\014parent,query\202\323\344\223\002_\"\'/v1beta1/{p" + - "arent=rooms/*}/blurbs:search:\001*Z1\"//v1be" + - "ta1/{parent=users/*/profile}/blurbs:sear" + - "ch\022\323\001\n\014StreamBlurbs\022,.google.showcase.v1" + - "beta1.StreamBlurbsRequest\032-.google.showc" + - "ase.v1beta1.StreamBlurbsResponse\"d\202\323\344\223\002^" + - "\"%/v1beta1/{name=rooms/*}/blurbs:stream:" + - "\001*Z2\"-/v1beta1/{name=users/*/profile}/bl" + - "urbs:stream:\001*0\001\022\316\001\n\nSendBlurbs\022+.google" + - ".showcase.v1beta1.CreateBlurbRequest\032+.g" + - "oogle.showcase.v1beta1.SendBlurbsRespons" + - "e\"d\202\323\344\223\002^\"%/v1beta1/{parent=rooms/*}/blu" + - "rbs:send:\001*Z2\"-/v1beta1/{parent=users/*/" + - "profile}/blurbs:send:\001*(\001\022e\n\007Connect\022\'.g" + - "oogle.showcase.v1beta1.ConnectRequest\032-." + - "google.showcase.v1beta1.StreamBlurbsResp" + - "onse(\0010\001\032\021\312A\016localhost:7469Bq\n\033com.googl" + - "e.showcase.v1beta1P\001Z4github.com/googlea" + - "pis/gapic-showcase/server/genproto\352\002\031Goo" + - "gle::Showcase::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.ErrorDetailsProto.getDescriptor(), - }); - internal_static_google_showcase_v1beta1_Room_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_showcase_v1beta1_Room_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_Room_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", "CreateTime", "UpdateTime", }); - internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_showcase_v1beta1_CreateRoomRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_CreateRoomRequest_descriptor, - new java.lang.String[] { "Room", }); - internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_showcase_v1beta1_GetRoomRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_GetRoomRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_showcase_v1beta1_UpdateRoomRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_UpdateRoomRequest_descriptor, - new java.lang.String[] { "Room", "UpdateMask", }); - internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_showcase_v1beta1_DeleteRoomRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_DeleteRoomRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_showcase_v1beta1_ListRoomsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_ListRoomsRequest_descriptor, - new java.lang.String[] { "PageSize", "PageToken", }); - internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_showcase_v1beta1_ListRoomsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_ListRoomsResponse_descriptor, - new java.lang.String[] { "Rooms", "NextPageToken", }); - internal_static_google_showcase_v1beta1_Blurb_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_showcase_v1beta1_Blurb_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_Blurb_descriptor, - new java.lang.String[] { "Name", "User", "Text", "Image", "CreateTime", "UpdateTime", "LegacyRoomId", "LegacyUserId", "Content", "LegacyId", }); - internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_showcase_v1beta1_CreateBlurbRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_CreateBlurbRequest_descriptor, - new java.lang.String[] { "Parent", "Blurb", }); - internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_showcase_v1beta1_GetBlurbRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_GetBlurbRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_showcase_v1beta1_UpdateBlurbRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_UpdateBlurbRequest_descriptor, - new java.lang.String[] { "Blurb", "UpdateMask", }); - internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_showcase_v1beta1_DeleteBlurbRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_DeleteBlurbRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_showcase_v1beta1_ListBlurbsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_ListBlurbsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_showcase_v1beta1_ListBlurbsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_ListBlurbsResponse_descriptor, - new java.lang.String[] { "Blurbs", "NextPageToken", }); - internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_showcase_v1beta1_SearchBlurbsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_SearchBlurbsRequest_descriptor, - new java.lang.String[] { "Query", "Parent", "PageSize", "PageToken", }); - internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_SearchBlurbsMetadata_descriptor, - new java.lang.String[] { "RetryInfo", }); - internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_showcase_v1beta1_SearchBlurbsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_SearchBlurbsResponse_descriptor, - new java.lang.String[] { "Blurbs", "NextPageToken", }); - internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_showcase_v1beta1_StreamBlurbsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_StreamBlurbsRequest_descriptor, - new java.lang.String[] { "Name", "ExpireTime", }); - internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_showcase_v1beta1_StreamBlurbsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_StreamBlurbsResponse_descriptor, - new java.lang.String[] { "Blurb", "Action", }); - internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_showcase_v1beta1_SendBlurbsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_SendBlurbsResponse_descriptor, - new java.lang.String[] { "Names", }); - internal_static_google_showcase_v1beta1_ConnectRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_showcase_v1beta1_ConnectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_ConnectRequest_descriptor, - new java.lang.String[] { "Config", "Blurb", "Request", }); - internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor = - internal_static_google_showcase_v1beta1_ConnectRequest_descriptor.getNestedTypes().get(0); - internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_showcase_v1beta1_ConnectRequest_ConnectConfig_descriptor, - new java.lang.String[] { "Parent", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.ErrorDetailsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequestOrBuilder.java deleted file mode 100644 index dda5042984..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ReportSessionRequestOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/testing.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public interface ReportSessionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ReportSessionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The session to be reported on.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The session to be reported on.
-   * 
- * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java deleted file mode 100644 index 48e407a82a..0000000000 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java +++ /dev/null @@ -1,318 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/google/showcase/v1beta1/sequence.proto - -// Protobuf Java Version: 3.25.5 -package com.google.showcase.v1beta1; - -public final class SequenceOuterClass { - private SequenceOuterClass() {} - 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_showcase_v1beta1_Sequence_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_Sequence_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_Sequence_Response_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_Sequence_Response_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_StreamingSequence_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_StreamingSequence_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_StreamingSequence_Response_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_StreamingSequence_Response_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_StreamingSequenceReport_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_StreamingSequenceReport_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_SequenceReport_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_SequenceReport_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_SequenceReport_Attempt_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_SequenceReport_Attempt_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_CreateSequenceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_CreateSequenceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_CreateStreamingSequenceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_AttemptSequenceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_AttemptSequenceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_AttemptStreamingSequenceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_AttemptStreamingSequenceResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_GetSequenceReportRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_GetSequenceReportRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_showcase_v1beta1_GetStreamingSequenceReportRequest_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-schema/google/showcase/v1beta1/sequenc" + - "e.proto\022\027google.showcase.v1beta1\032\034google" + - "/api/annotations.proto\032\027google/api/clien" + - "t.proto\032\037google/api/field_behavior.proto" + - "\032\031google/api/resource.proto\032\036google/prot" + - "obuf/duration.proto\032\033google/protobuf/emp" + - "ty.proto\032\037google/protobuf/timestamp.prot" + - "o\032\027google/rpc/status.proto\"\363\001\n\010Sequence\022" + - "\021\n\004name\030\001 \001(\tB\003\340A\003\022=\n\tresponses\030\002 \003(\0132*." + - "google.showcase.v1beta1.Sequence.Respons" + - "e\032X\n\010Response\022\"\n\006status\030\001 \001(\0132\022.google.r" + - "pc.Status\022(\n\005delay\030\002 \001(\0132\031.google.protob" + - "uf.Duration:;\352A8\n showcase.googleapis.co" + - "m/Sequence\022\024sequences/{sequence}\"\312\002\n\021Str" + - "eamingSequence\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\017\n\007con" + - "tent\030\002 \001(\t\022F\n\tresponses\030\003 \003(\01323.google.s" + - "howcase.v1beta1.StreamingSequence.Respon" + - "se\032p\n\010Response\022\"\n\006status\030\001 \001(\0132\022.google." + - "rpc.Status\022(\n\005delay\030\002 \001(\0132\031.google.proto" + - "buf.Duration\022\026\n\016response_index\030\003 \001(\005:W\352A" + - "T\n)showcase.googleapis.com/StreamingSequ" + - "ence\022\'streamingSequences/{streaming_sequ" + - "ence}\"\322\003\n\027StreamingSequenceReport\022\021\n\004nam" + - "e\030\001 \001(\tB\003\340A\003\022J\n\010attempts\030\002 \003(\01328.google." + - "showcase.v1beta1.StreamingSequenceReport" + - ".Attempt\032\340\001\n\007Attempt\022\026\n\016attempt_number\030\001" + - " \001(\005\0224\n\020attempt_deadline\030\002 \001(\0132\032.google." + - "protobuf.Timestamp\0221\n\rresponse_time\030\003 \001(" + - "\0132\032.google.protobuf.Timestamp\0220\n\rattempt" + - "_delay\030\004 \001(\0132\031.google.protobuf.Duration\022" + - "\"\n\006status\030\005 \001(\0132\022.google.rpc.Status:u\352Ar" + - "\n/showcase.googleapis.com/StreamingSeque" + - "nceReport\022?streamingSequences/{streaming" + - "_sequence}/streamingSequenceReport\"\233\003\n\016S" + - "equenceReport\022\021\n\004name\030\001 \001(\tB\003\340A\003\022A\n\010atte" + - "mpts\030\002 \003(\0132/.google.showcase.v1beta1.Seq" + - "uenceReport.Attempt\032\340\001\n\007Attempt\022\026\n\016attem" + - "pt_number\030\001 \001(\005\0224\n\020attempt_deadline\030\002 \001(" + - "\0132\032.google.protobuf.Timestamp\0221\n\rrespons" + - "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + - "\0220\n\rattempt_delay\030\004 \001(\0132\031.google.protobu" + - "f.Duration\022\"\n\006status\030\005 \001(\0132\022.google.rpc." + - "Status:P\352AM\n&showcase.googleapis.com/Seq" + - "uenceReport\022#sequences/{sequence}/sequen" + - "ceReport\"L\n\025CreateSequenceRequest\0223\n\010seq" + - "uence\030\001 \001(\0132!.google.showcase.v1beta1.Se" + - "quence\"h\n\036CreateStreamingSequenceRequest" + - "\022F\n\022streaming_sequence\030\001 \001(\0132*.google.sh" + - "owcase.v1beta1.StreamingSequence\"P\n\026Atte" + - "mptSequenceRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"" + - "\n showcase.googleapis.com/Sequence\"\200\001\n\037A" + - "ttemptStreamingSequenceRequest\022?\n\004name\030\001" + - " \001(\tB1\340A\002\372A+\n)showcase.googleapis.com/St" + - "reamingSequence\022\034\n\017last_fail_index\030\002 \001(\005" + - "B\003\340A\001\"3\n AttemptStreamingSequenceRespons" + - "e\022\017\n\007content\030\001 \001(\t\"X\n\030GetSequenceReportR" + - "equest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&showcase.g" + - "oogleapis.com/SequenceReport\"j\n!GetStrea" + - "mingSequenceReportRequest\022E\n\004name\030\001 \001(\tB" + - "7\340A\002\372A1\n/showcase.googleapis.com/Streami" + - "ngSequenceReport2\360\010\n\017SequenceService\022\224\001\n" + - "\016CreateSequence\022..google.showcase.v1beta" + - "1.CreateSequenceRequest\032!.google.showcas" + - "e.v1beta1.Sequence\"/\332A\010sequence\202\323\344\223\002\036\"\022/" + - "v1beta1/sequences:\010sequence\022\314\001\n\027CreateSt" + - "reamingSequence\0227.google.showcase.v1beta" + - "1.CreateStreamingSequenceRequest\032*.googl" + - "e.showcase.v1beta1.StreamingSequence\"L\332A" + - "\022streaming_sequence\202\323\344\223\0021\"\033/v1beta1/stre" + - "amingSequences:\022streaming_sequence\022\252\001\n\021G" + - "etSequenceReport\0221.google.showcase.v1bet" + - "a1.GetSequenceReportRequest\032\'.google.sho" + - "wcase.v1beta1.SequenceReport\"9\332A\004name\202\323\344" + - "\223\002,\022*/v1beta1/{name=sequences/*/sequence" + - "Report}\022\327\001\n\032GetStreamingSequenceReport\022:" + - ".google.showcase.v1beta1.GetStreamingSeq" + - "uenceReportRequest\0320.google.showcase.v1b" + - "eta1.StreamingSequenceReport\"K\332A\004name\202\323\344" + - "\223\002>\022 - * This content of the result. - *
- * - * string content = 1; - * @return The content. - */ - java.lang.String getContent(); - /** - *
-   * This content of the result.
-   * 
- * - * string content = 1; - * @return The bytes for content. - */ - com.google.protobuf.ByteString - getContentBytes(); -} diff --git a/showcase/scripts/generate_components.sh b/showcase/scripts/generate_components.sh deleted file mode 100755 index 86d176c8b4..0000000000 --- a/showcase/scripts/generate_components.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash -# -# Generates the three components of the showcase library: -# If $1 (replace) is "true" then the output of the generation will be written as -# the new showcase source code -# If $2 (perform_cleanup) is "true" then the generated library will be deleted -# along with the necessary tools to generate it -set -xe -replace=$1 -perform_cleanup=$2 -if [ -z "${replace}" ]; then - replace="false" -fi -readonly SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) -source "${SCRIPT_DIR}/showcase_utilities.sh" - -if [ ! -d "${SCRIPT_DIR}/showcase-output" ]; then - bash "${SCRIPT_DIR}/generate_showcase.sh" -fi - -if [ "${replace}" == "true" ]; then - showcase_folder="${SCRIPT_DIR}/.." - - # replace contents of gapic library - gapic_component_dir="${showcase_folder}/gapic-showcase/src/main" - rm -rdf "${gapic_component_dir}/*" - cp -r "${SCRIPT_DIR}/output/showcase-output/gapic-showcase-output/src/main"/* "${gapic_component_dir}/" - - # replace contents of proto library - proto_component_dir="${showcase_folder}/proto-gapic-showcase-v1beta1/src/main" - rm -rdf "${proto_component_dir}/*" - cp -r "${SCRIPT_DIR}/output/showcase-output/proto-showcase-output/src/main"/* "${proto_component_dir}/" - - # replace contents of grpc library - grpc_component_dir="${showcase_folder}/grpc-gapic-showcase-v1beta1/src/main" - rm -rdf "${grpc_component_dir}/*" - cp -r "${SCRIPT_DIR}/output/showcase-output/grpc-showcase-output/src/main"/* "${grpc_component_dir}/" -fi - -if [ "${perform_cleanup}" == 'true' ];then - cleanup "${SCRIPT_DIR}" -fi diff --git a/showcase/scripts/generate_showcase.sh b/showcase/scripts/generate_showcase.sh deleted file mode 100755 index 0c6cfe4eaf..0000000000 --- a/showcase/scripts/generate_showcase.sh +++ /dev/null @@ -1,129 +0,0 @@ -#!/bin/bash -# Generates showcase without post processing (i.e. raw gapic, grpc and proto -# libraries). It will compute the showcase version from -# `sdk-platform-java/showcase/gapic-showcase/pom.xml`. The generator version is -# inferred from versions.txt -set -ex - -readonly SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) -readonly LIB_GEN_SCRIPTS_DIR="${SCRIPT_DIR}/../../hermetic_build/library_generation/" -source "${LIB_GEN_SCRIPTS_DIR}/tests/test_utilities.sh" -source "${LIB_GEN_SCRIPTS_DIR}/utils/utilities.sh" -readonly perform_cleanup=$1 - -cd "${SCRIPT_DIR}" -mkdir -p "${SCRIPT_DIR}/output" - -get_version_from_pom() { - target_pom="$1" - key="$2" - # prints the result to stdout - grep -e "<${key}>" "${target_pom}" | cut -d'>' -f2 | cut -d'<' -f1 -} - -# gets the latest version of the specified artifact from versions.txt -get_version_from_versions_txt() { - readonly VERSIONS_TXT_PATH="${SCRIPT_DIR}/../../versions.txt" - target_artifact="$1" - # prints the result to stdout - grep -e "${target_artifact}" "${VERSIONS_TXT_PATH}" | cut -d: -f3 -} - -# clone gapic-showcase -if [ ! -d schema ]; then - if [ -d gapic-showcase ]; then - rm -rdf gapic-showcase - fi - # looks at sdk-platform-java/showcase/gapic-showcase/pom.xml to extract the - # version of gapic-showcase - # see https://github.com/googleapis/gapic-showcase/releases - showcase_version=$(get_version_from_pom \ - "${SCRIPT_DIR}/../gapic-showcase/pom.xml" "gapic-showcase.version" - ) - sparse_clone https://github.com/googleapis/gapic-showcase.git "schema/google/showcase/v1beta1" "v${showcase_version}" - cd gapic-showcase - mv schema ../output - cd .. - rm -rdf gapic-showcase -fi -if [ ! -d google ];then - if [ -d googleapis ]; then - rm -rdf googleapis - fi - sparse_clone https://github.com/googleapis/googleapis.git "WORKSPACE google/api google/rpc google/cloud/common_resources.proto google/longrunning google/iam/v1 google/cloud/location google/type" - mv googleapis/google output - rm -rdf googleapis -fi - -# copy the generator and formatter into its well-known location. -# For more details, -# refer to library_generation/DEVELOPMENT.md -java_formatter_name="google-java-format.jar" -java_formatter_version="1.7" -well_known_folder="${HOME}/.library_generation" -well_known_generator_jar_location="${well_known_folder}/gapic-generator-java.jar" -well_known_formatter_jar_location="${well_known_folder}/${java_formatter_name}" -if [[ ! -d "${well_known_folder}" ]]; then - mkdir "${well_known_folder}" -fi -if [[ -f "${well_known_generator_jar_location}" ]]; then - echo "replacing well-known generator jar with the latest one" - rm "${well_known_generator_jar_location}" -fi -if [[ -f "${well_known_formatter_jar_location}" ]]; then - echo "replacing well-known formatter jar with the latest one" - rm "${well_known_formatter_jar_location}" -fi -maven_repository="$(mvn help:evaluate -Dexpression=settings.localRepository -q -DforceStdout)" -generator_version=$(get_version_from_versions_txt "gapic-generator-java") -generator_jar_path="${maven_repository}/com/google/api/gapic-generator-java/${generator_version}/gapic-generator-java-${generator_version}.jar" - -if [[ ! -f "${generator_jar_path}" ]]; then - echo "generator jar not found in its assumed location" - echo "in the local repository: ${generator_jar_path}" - echo "(did you run mvn install in this repository's root?)" - exit 1 -fi -# transfer the snapshot jar into its well-known location -cp "${generator_jar_path}" "${well_known_generator_jar_location}" -# transfer java formatter to its well-known location -download_from \ - "https://maven-central.storage-download.googleapis.com/maven2/com/google/googlejavaformat/google-java-format/${java_formatter_version}/google-java-format-${java_formatter_version}-all-deps.jar" \ - "${java_formatter_name}" -cp "${java_formatter_name}" "${well_known_formatter_jar_location}" -gapic_additional_protos="google/iam/v1/iam_policy.proto google/cloud/location/locations.proto" - -path_to_generator_parent_pom="${SCRIPT_DIR}/../../gapic-generator-java-pom-parent/pom.xml" -protoc_version=$(get_version_from_pom "${path_to_generator_parent_pom}" "protobuf.version" \ - | cut -d. -f2-) -download_protoc "${protoc_version}" "linux-x86_64" -mv "bin" "include" "${well_known_folder}" -grpc_version=$(get_version_from_pom "${path_to_generator_parent_pom}" "grpc.version") -download_grpc_plugin "${grpc_version}" "linux-x86_64" -mv "protoc-gen-grpc-java.exe" "${well_known_folder}" -rest_numeric_enums="false" -transport="grpc+rest" -gapic_yaml="" -service_config="schema/google/showcase/v1beta1/showcase_grpc_service_config.json" -service_yaml="schema/google/showcase/v1beta1/showcase_v1beta1.yaml" -include_samples="false" -rm -rdf output/showcase-output -mkdir output/showcase-output -set +e -bash "${SCRIPT_DIR}/../../hermetic_build/library_generation/generate_library.sh" \ - --proto_path "schema/google/showcase/v1beta1" \ - --destination_path "showcase-output" \ - --gapic_additional_protos "${gapic_additional_protos}" \ - --rest_numeric_enums "${rest_numeric_enums}" \ - --gapic_yaml "${gapic_yaml}" \ - --service_config "${service_config}" \ - --service_yaml "${service_yaml}" \ - --include_samples "${include_samples}" \ - --transport "${transport}" - -exit_code=$? -if [ "${exit_code}" -ne 0 ]; then - rm -rdf output - exit "${exit_code}" -fi -set +x diff --git a/showcase/scripts/showcase_utilities.sh b/showcase/scripts/showcase_utilities.sh deleted file mode 100644 index 591486f753..0000000000 --- a/showcase/scripts/showcase_utilities.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -function cleanup { - script_dir=$1 - cd "${script_dir}" - rm -rdf output gapic-generator-java* -} diff --git a/showcase/scripts/verify.sh b/showcase/scripts/verify.sh deleted file mode 100755 index b45e18ecb7..0000000000 --- a/showcase/scripts/verify.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh -# This script generates showcase in a temporary/untracked folder and compares -# its contents with the actual showcase libraries. - -set -o errexit -SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) -source "${SCRIPT_DIR}/showcase_utilities.sh" -SHOWCASE_DIR="${SCRIPT_DIR}/.." - -# generate sources -readonly REPLACE_SOURCE='false' -readonly PERFORM_CLEANUP='false' -bash "${SCRIPT_DIR}/generate_components.sh" "${REPLACE_SOURCE}" "${PERFORM_CLEANUP}" - -PROTO_PROJECT_DIR='proto-gapic-showcase-v1beta1' -GRPC_PROJECT_DIR='grpc-gapic-showcase-v1beta1' -GAPIC_PROJECT_DIR='gapic-showcase' - -{ - # compare with proto library - (diff -ru "${SHOWCASE_DIR}/${PROTO_PROJECT_DIR}/src" "${SCRIPT_DIR}/output/showcase-output/proto-showcase-output/src") && - - # compare with grpc library - (diff -ru "${SHOWCASE_DIR}/${GRPC_PROJECT_DIR}/src/main/java/com" "${SCRIPT_DIR}/output/showcase-output/grpc-showcase-output/src/main/java/com") && - - # compare with gapic library - (diff -ru "${SHOWCASE_DIR}/${GAPIC_PROJECT_DIR}/src/main/java" "${SCRIPT_DIR}/output/showcase-output/gapic-showcase-output/src/main/java") -} || { - failure="true" -} - -cleanup $SCRIPT_DIR - -if [ "${failure}" == "true" ]; then - exit 1 -fi - diff --git a/versions.txt b/versions.txt index a6b56917a0..1b8a4a3337 100644 --- a/versions.txt +++ b/versions.txt @@ -17,3 +17,6 @@ proto-google-iam-v2:1.46.0:1.46.1-SNAPSHOT grpc-google-iam-v2:1.46.0:1.46.1-SNAPSHOT google-cloud-core:2.50.0:2.50.1-SNAPSHOT google-cloud-shared-dependencies:3.42.0:3.42.1-SNAPSHOT +gapic-showcase:0.0.0:0.0.1-SNAPSHOT +proto-gapic-showcase-v1beta1:0.0.0:0.0.1-SNAPSHOT +grpc-gapic-showcase-v1beta1:0.0.0:0.0.1-SNAPSHOT